From cfc01b5ab6ef7729f9f16234637b3a481cfc09de Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Sun, 26 May 2013 14:47:00 -0700 Subject: [PATCH] fix up wala.core.testdata structure so things work from maven We put all the jar files (the testdata jar, JLex, etc.) in the root directory now, and set up the build.properties so that these jars get copied into the final plugin jar, making the tests work properly from maven. We also still copy the jars into the bin/ directory, so the Eclipse launchers still work. --- .gitignore | 2 +- com.ibm.wala.core.testdata/build.properties | 6 +++++- com.ibm.wala.core.testdata/build.xml | 15 ++++++++------- com.ibm.wala.core.tests/META-INF/MANIFEST.MF | 3 ++- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 1d84436da..e96c95664 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ com.ibm.wala.cast.java.test.data/src/JLex/ *~ com.ibm.wala.cast.js.test.data/examples-src/ajaxslt/ com.ibm.wala.core.testdata/@dot/ -com.ibm.wala.core.testdata/lib/ +com.ibm.wala.core.testdata/*.jar com.ibm.wala.core/dat/wala.properties com.ibm.wala.core.tests/dat/wala.examples.properties com.ibm.wala.cast.js.html.nu_validator/lib/ diff --git a/com.ibm.wala.core.testdata/build.properties b/com.ibm.wala.core.testdata/build.properties index 34d2e4d2d..894aadec0 100644 --- a/com.ibm.wala.core.testdata/build.properties +++ b/com.ibm.wala.core.testdata/build.properties @@ -1,4 +1,8 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ - . + .,\ + JLex.jar,\ + bcel-5.2.jar,\ + java-cup-11a.jar,\ + com.ibm.wala.core.testdata_1.0.0.jar diff --git a/com.ibm.wala.core.testdata/build.xml b/com.ibm.wala.core.testdata/build.xml index a489bada5..511f105a7 100644 --- a/com.ibm.wala.core.testdata/build.xml +++ b/com.ibm.wala.core.testdata/build.xml @@ -36,7 +36,7 @@ - + @@ -44,20 +44,20 @@ - + - + - + - + @@ -66,13 +66,13 @@ - + - + @@ -103,6 +103,7 @@ + diff --git a/com.ibm.wala.core.tests/META-INF/MANIFEST.MF b/com.ibm.wala.core.tests/META-INF/MANIFEST.MF index 313cdfd48..4e4f8cdb8 100644 --- a/com.ibm.wala.core.tests/META-INF/MANIFEST.MF +++ b/com.ibm.wala.core.tests/META-INF/MANIFEST.MF @@ -7,7 +7,8 @@ Bundle-Vendor: %providerName Require-Bundle: com.ibm.wala.shrike, com.ibm.wala.core, org.eclipse.core.runtime, - org.junit;bundle-version="4.3.1" + org.junit;bundle-version="4.3.1", + com.ibm.wala.core.testdata;bundle-version="1.3.4" Bundle-Localization: plugin Export-Package: com.ibm.wala.core.tests.basic, com.ibm.wala.core.tests.callGraph,