Correct some typos
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@946157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9528be2519
commit
9c9e5861c5
3 changed files with 20 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
|||
-->
|
||||
<project name="binding-ws-calculator" default="run">
|
||||
<property name="tuscany.home" value="../.."/>
|
||||
<property name="jar.name" value="sample-launcher-embedded-jse.jar" />
|
||||
<property name="jar.name" value="sample-launcher-embedded-osgi.jar" />
|
||||
<property name="main.class" value="launcher.SampleJSELauncher" />
|
||||
|
||||
<echo>${tuscany.home}</echo>
|
||||
|
|
@ -53,8 +53,22 @@
|
|||
<target name="run" depends="compile">
|
||||
<echo>Please use 'ant run-name-of-sample-contribution-to-run' </echo>
|
||||
</target>
|
||||
|
||||
<target name="run-contribution-binding-sca-calculator" depends="compile">
|
||||
<java classname="${main.class}"
|
||||
fork="true"
|
||||
failonerror="true">
|
||||
<classpath>
|
||||
<pathelement location="target/${jar.name}"/>
|
||||
<fileset dir="${tuscany.home}/features">
|
||||
<include name="tuscany-sca-manifest.jar" />
|
||||
</fileset>
|
||||
</classpath>
|
||||
<arg value="contribution-binding-sca-calculator"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="run-binding-ws-calculator" depends="compile">
|
||||
<target name="run-contribution-binding-ws-calculator" depends="compile">
|
||||
<java classname="${main.class}"
|
||||
fork="true"
|
||||
failonerror="true">
|
||||
|
|
@ -64,7 +78,7 @@
|
|||
<include name="tuscany-sca-manifest.jar" />
|
||||
</fileset>
|
||||
</classpath>
|
||||
<arg value="binding-ws-calculator"/>
|
||||
<arg value="contribution-binding-ws-calculator"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class SampleJSELauncher extends RuntimeIntegration {
|
|||
* that calls the CalculatorServiceComponent from an operation marked by @Init.
|
||||
*/
|
||||
public void launchBindingSCACalculator(){
|
||||
Node node = startNode(new Contribution("c1", "../contribution-binding-sca-calculator/target/classes"));
|
||||
Node node = startNode(new Contribution("c1", "../binding-sca/contribution-calculator/target/sample-contribution-binding-sca-calculator.jar"));
|
||||
|
||||
//CalculatorService calculator = node.getService(CalculatorService.class, "CalculatorServiceComponent");
|
||||
// TODO - could use JUnit assertions but don't want to have to handle JUnit dependency from Ant script
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ import org.junit.Test;
|
|||
public class LauncherTestCase {
|
||||
|
||||
@Test
|
||||
public void testCOntributionBindingSCACalculator() throws Exception {
|
||||
public void testContributionBindingSCACalculator() throws Exception {
|
||||
SampleJSELauncher.main(new String[] {"contribution-binding-sca-calculator"});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCOntributionBindingWSCalculator() throws Exception {
|
||||
public void testContributionBindingWSCalculator() throws Exception {
|
||||
SampleJSELauncher.main(new String[] {"contribution-binding-ws-calculator"});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue