|
@@ -23,7 +23,7 @@ import java.util.*;
|
|
|
*/
|
|
*/
|
|
|
@Component
|
|
@Component
|
|
|
public class WalaController {
|
|
public class WalaController {
|
|
|
- private static final String FILTER = "/Java60RegressionExclusions.txt";
|
|
|
|
|
|
|
+ private static final String FILTER = "Java60RegressionExclusions.txt";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* make wala analysis data
|
|
* make wala analysis data
|
|
@@ -32,7 +32,9 @@ public class WalaController {
|
|
|
* @param source the type of source, including java binary and java source
|
|
* @param source the type of source, including java binary and java source
|
|
|
*/
|
|
*/
|
|
|
public void makeData(String srcDir, String dstDir, Source source) throws CallGraphBuilderCancelException, IOException {
|
|
public void makeData(String srcDir, String dstDir, Source source) throws CallGraphBuilderCancelException, IOException {
|
|
|
- String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
|
|
+// String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
+ String filterPath = FILTER;
|
|
|
|
|
+
|
|
|
File f = new File(srcDir);
|
|
File f = new File(srcDir);
|
|
|
|
|
|
|
|
Wala wala;
|
|
Wala wala;
|
|
@@ -94,7 +96,8 @@ public class WalaController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Pair<Integer, Integer> countAbstractness(String srcDir, String packageName, Source source) {
|
|
public Pair<Integer, Integer> countAbstractness(String srcDir, String packageName, Source source) {
|
|
|
- String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
|
|
+ //String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
+ String filterPath = FILTER;
|
|
|
File f = new File(srcDir);
|
|
File f = new File(srcDir);
|
|
|
|
|
|
|
|
Wala wala;
|
|
Wala wala;
|
|
@@ -109,7 +112,8 @@ public class WalaController {
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<String> getAllJavaClasses(String srcDir) {
|
|
public List<String> getAllJavaClasses(String srcDir) {
|
|
|
- String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
|
|
+ //String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
+ String filterPath = FILTER;
|
|
|
File f = new File(srcDir);
|
|
File f = new File(srcDir);
|
|
|
Wala wala = new Wala(filterPath, f.getPath());
|
|
Wala wala = new Wala(filterPath, f.getPath());
|
|
|
ClassHierarchy cha = wala.getCha();
|
|
ClassHierarchy cha = wala.getCha();
|
|
@@ -129,7 +133,8 @@ public class WalaController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<String> getAllJavaPackages(String srcDir) {
|
|
public List<String> getAllJavaPackages(String srcDir) {
|
|
|
- String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
|
|
+ //String filterPath = getClass().getResource(FILTER).getFile();
|
|
|
|
|
+ String filterPath = FILTER;
|
|
|
File f = new File(srcDir);
|
|
File f = new File(srcDir);
|
|
|
Wala wala = new Wala(filterPath, f.getPath());
|
|
Wala wala = new Wala(filterPath, f.getPath());
|
|
|
ClassHierarchy cha = wala.getCha();
|
|
ClassHierarchy cha = wala.getCha();
|