runnable jar

This commit is contained in:
Anil Koyuncu
2018-02-10 15:07:13 +01:00
parent 0192d84ae9
commit cce03be0b7
3 changed files with 37 additions and 11 deletions
+30 -5
View File
@@ -42,11 +42,11 @@
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>edu.lu.uni.serval</groupId>
<artifactId>SourceCodeParser</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!--<dependency>-->
<!--<groupId>edu.lu.uni.serval</groupId>-->
<!--<artifactId>SourceCodeParser</artifactId>-->
<!--<version>0.0.1-SNAPSHOT</version>-->
<!--</dependency>-->
<dependency>
<groupId>edu.lu.uni.serval</groupId>
@@ -73,6 +73,31 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>
edu.lu.uni.serval.MultipleThreadsParser.AkkaParser2
</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -31,16 +31,17 @@ public class AkkaParser2 {
*/
@SuppressWarnings("deprecation")
public static void main(String[] args) {
// String inputRootPath = args[0];
int numberOfWorkers = 10; //Integer.parseInt(args[1]);
int hunkThreshold = 5;
String inputRootPath = args[0];
int numberOfWorkers = Integer.parseInt(args[1]);
int hunkThreshold = Integer.parseInt(args[2]);
// try {
// hunkThreshold = Integer.parseInt(args[2]);
// } catch (NumberFormatException e1) {
// hunkThreshold = 10;
// }
// Configuration.ROOT_PATH = inputRootPath;
Configuration.ROOT_PATH = inputRootPath;
log.info(Configuration.ROOT_PATH);
Configuration.HUNK_SIZE = hunkThreshold;
@@ -51,7 +52,7 @@ public class AkkaParser2 {
// String GIT_REPOSITORY_PATH = "/Users/anilkoyuncu/bugLocalizationStudy/irblsensitivity/data/" + pjPath + "/" + pjName + "/gitrepo/.git";
log.info(pjName);
// input data
log.info("Get the input data...");
log.info("Get the input data..." + Configuration.GUM_TREE_INPUT +pjName +"/");
final List<MessageFile> msgFiles = getMessageFiles(Configuration.GUM_TREE_INPUT +pjName +"/");
log.info("MessageFiles: " + msgFiles.size());
@@ -2,7 +2,7 @@ package edu.lu.uni.serval.config;
public class Configuration {
public static final long SECONDS_TO_WAIT = 100L;
public static final long SECONDS_TO_WAIT = 300L;
// public static String ROOT_PATH = "/Volumes/data/bugStudy/dataset/"; // The root path of all output data.
public static String ROOT_PATH = "/Users/anilkoyuncu/bugStudy/dataset/"; // The root path of all output data.