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:
sjfink 2006-12-09 13:44:00 +00:00
parent 9fc30f8c19
commit 9278cbf5d8
5 changed files with 15 additions and 8 deletions

View File

@ -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"));

View File

@ -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));

View File

@ -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"),

View File

@ -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"));

View File

@ -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) {