You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by co...@apache.org on 2010/03/10 20:59:00 UTC
[CONF] Apache Tuscany Docs 2.x > Running OASIS Spec Tests in a OSGi
environment
Space: Apache Tuscany Docs 2.x (http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x)
Page: Running OASIS Spec Tests in a OSGi environment (http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Running+OASIS+Spec+Tests+in+a+OSGi+environment)
Edited by Luciano Resende:
---------------------------------------------------------------------
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}
mvn -Peclipse
{code}
To facilitate debug, use the following commands:
1) To generate sources for the Tuscany 2.x modules
{code}
mvn source:jar under sca-java-2.x/trunk/modules
{code}
2)To download source files, please use the following command
{code}
mvn -Peclipse -DdownloadSources=true
{code}
*Configure TUSCANY_HOME pointing to where Tuscany distribution is available*
{code}
export TUSCANY_HOME=<tuscany checkout>/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.dir/tuscany-sca-2.0-SNAPSHOT
{code}
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
!eclipse_tuscany_home.jpg!
*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}
org.oasis.sca.tests.assembly.contribution.location=../%1/target/%1.zip
{code}
Change your notification preferences: http://cwiki.apache.org/confluence/users/viewnotifications.action