runnable jar
This commit is contained in:
@@ -42,11 +42,11 @@
|
|||||||
<version>2.0.0-SNAPSHOT</version>
|
<version>2.0.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!--<dependency>-->
|
||||||
<groupId>edu.lu.uni.serval</groupId>
|
<!--<groupId>edu.lu.uni.serval</groupId>-->
|
||||||
<artifactId>SourceCodeParser</artifactId>
|
<!--<artifactId>SourceCodeParser</artifactId>-->
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<!--<version>0.0.1-SNAPSHOT</version>-->
|
||||||
</dependency>
|
<!--</dependency>-->
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>edu.lu.uni.serval</groupId>
|
<groupId>edu.lu.uni.serval</groupId>
|
||||||
@@ -73,6 +73,31 @@
|
|||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -31,16 +31,17 @@ public class AkkaParser2 {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// String inputRootPath = args[0];
|
String inputRootPath = args[0];
|
||||||
int numberOfWorkers = 10; //Integer.parseInt(args[1]);
|
int numberOfWorkers = Integer.parseInt(args[1]);
|
||||||
int hunkThreshold = 5;
|
int hunkThreshold = Integer.parseInt(args[2]);
|
||||||
// try {
|
// try {
|
||||||
// hunkThreshold = Integer.parseInt(args[2]);
|
// hunkThreshold = Integer.parseInt(args[2]);
|
||||||
// } catch (NumberFormatException e1) {
|
// } catch (NumberFormatException e1) {
|
||||||
// hunkThreshold = 10;
|
// hunkThreshold = 10;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// Configuration.ROOT_PATH = inputRootPath;
|
Configuration.ROOT_PATH = inputRootPath;
|
||||||
|
log.info(Configuration.ROOT_PATH);
|
||||||
Configuration.HUNK_SIZE = hunkThreshold;
|
Configuration.HUNK_SIZE = hunkThreshold;
|
||||||
|
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ public class AkkaParser2 {
|
|||||||
// String GIT_REPOSITORY_PATH = "/Users/anilkoyuncu/bugLocalizationStudy/irblsensitivity/data/" + pjPath + "/" + pjName + "/gitrepo/.git";
|
// String GIT_REPOSITORY_PATH = "/Users/anilkoyuncu/bugLocalizationStudy/irblsensitivity/data/" + pjPath + "/" + pjName + "/gitrepo/.git";
|
||||||
log.info(pjName);
|
log.info(pjName);
|
||||||
// input data
|
// 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 +"/");
|
final List<MessageFile> msgFiles = getMessageFiles(Configuration.GUM_TREE_INPUT +pjName +"/");
|
||||||
log.info("MessageFiles: " + msgFiles.size());
|
log.info("MessageFiles: " + msgFiles.size());
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package edu.lu.uni.serval.config;
|
|||||||
|
|
||||||
public class Configuration {
|
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 = "/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.
|
public static String ROOT_PATH = "/Users/anilkoyuncu/bugStudy/dataset/"; // The root path of all output data.
|
||||||
|
|||||||
Reference in New Issue
Block a user