minor changes to properties and command-line management
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@507 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
9fc30f8c19
commit
9278cbf5d8
|
@ -51,8 +51,9 @@ public class GVCallGraph {
|
|||
* be something like "c:/temp/testdata/java_cup.jar"
|
||||
*
|
||||
* @param args
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws WalaException {
|
||||
run(args);
|
||||
}
|
||||
|
||||
|
@ -61,8 +62,9 @@ public class GVCallGraph {
|
|||
* something like "c:/temp/testdata/java_cup.jar"
|
||||
*
|
||||
* @param args
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static Process run(String[] args) {
|
||||
public static Process run(String[] args) throws WalaException {
|
||||
Properties p = CommandLine.parse(args);
|
||||
validateCommandLine(p);
|
||||
return run(p.getProperty("appJar"));
|
||||
|
|
|
@ -62,14 +62,16 @@ public class GVSDG {
|
|||
* "c:/temp/testdata/java_cup.jar"
|
||||
*
|
||||
* @param args
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws WalaException {
|
||||
run(args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static Process run(String[] args) {
|
||||
public static Process run(String[] args) throws WalaException {
|
||||
Properties p = CommandLine.parse(args);
|
||||
validateCommandLine(p);
|
||||
return run(p.getProperty("appJar"), p.getProperty("mainClass"), getDataDependenceOptions(p), getControlDependenceOptions(p));
|
||||
|
|
|
@ -73,14 +73,16 @@ public class GVSlice {
|
|||
* "c:/temp/testdata/java_cup.jar"
|
||||
*
|
||||
* @param args
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws WalaException {
|
||||
run(args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static Process run(String[] args) {
|
||||
public static Process run(String[] args) throws WalaException {
|
||||
Properties p = CommandLine.parse(args);
|
||||
validateCommandLine(p);
|
||||
return run(p.getProperty("appJar"), p.getProperty("mainClass"), p.getProperty("srcCaller"), p.getProperty("srcCallee"),
|
||||
|
|
|
@ -45,8 +45,9 @@ public class SWTPointsTo {
|
|||
* something like "c:/temp/testdata/java_cup.jar"
|
||||
*
|
||||
* @param args
|
||||
* @throws WalaException
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) throws WalaException {
|
||||
Properties p = CommandLine.parse(args);
|
||||
GVCallGraph.validateCommandLine(p);
|
||||
run(p.getProperty("appJar"));
|
||||
|
|
|
@ -29,7 +29,7 @@ public final class WalaExamplesProperties {
|
|||
public static Properties loadProperties() throws WalaException {
|
||||
|
||||
try {
|
||||
Properties result = WalaProperties.loadPropertiesFromFile(PROPERTY_FILENAME);
|
||||
Properties result = WalaProperties.loadPropertiesFromFile(WalaExamplesProperties.class.getClassLoader(), PROPERTY_FILENAME);
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue