The OASIS SCA Spec Tests are designed to run in a OSGi environment and below are some configuration necessary to properly import/run/debug the tests in Eclipse PDE environment
Generate Eclipse IDE project files
Code Block |
---|
mvn -Peclipse |
To facilitate debug, use the following commands:
1) To generate sources for the Tuscany 2.x modules
Code Block |
---|
mvn source:jar under sca-java-2.x/trunk/modules |
2)To download source files, please use the following command
Code Block |
---|
mvn -Peclipse -DdownloadSources=true |
Configure TUSCANY_HOME pointing to where Tuscany distribution is available
Code Block |
---|
export TUSCANY_HOME=<tuscany checkout>/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT |
Optionally, you could also configure this as an VM argument on the Eclipse run configuration
-DTUSCANY_HOME=/Users/lresende/opensource/apache/tuscany/java-sca-2.x/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT
Configure contribution location
There are various files containing the contribution location necessary to run the tests, these files are:
sca-assembly/Test_Client/src/main/resources/oasis-sca-tests.properties
sca-java-caa/Test_Client_JavaCAA/src/main/resources/oasis-sca-tests.properties
sca-java-ci/Test_Client_JavaPOJO/src/main/resources/oasis-sca-tests.properties
sca-policy/Test_Client/src/main/resources/oasis-sca-tests.properties
although it's currently configured with a relative path, you might need to configure the location based on your system
Code Block |
---|
org.oasis.sca.tests.assembly.contribution.location=../%1/target/%1.zip |