Hi Raymond,

I have a client that is referencing the services on these two composites. My
client pom file looks like this:

               <execution>
                   <id>test</id>
                   <goals>
                       <goal>test</goal>
                   </goals>
                   <configuration>
                       <includes>
                           <include>**/*ITest.java</include>
                       </includes>
                   </configuration>
               </execution>

So, how would the tuscany runtime know which composite jar files to load,
when started from within this iTest plugin in the above pom file. Because
the composites are not specified here. They are being built in two different
modules.

Thanks
Hasan

On 12/13/06, Raymond Feng <[EMAIL PROTECTED]> wrote:

Hi,

I have a question first: Why do you need to put the composite on your
classpath?

Then it's an answer for your question: You can add an element
<applicationScdl> under the <configuration> for the itest plugin in the
pom.xml to point to your application scdl.

            <plugin>
                <groupId>org.apache.tuscany.sca.plugins</groupId>
                <artifactId>tuscany-itest-plugin</artifactId>
                <executions>
                    <execution>
                        <id>start</id>
                        <goals>
                            <goal>start</goal>
                        </goals>

                        <configuration>
                            <applicationScdl>...</applicationScdl>
                        </configuration>
                    </execution>
                     ...

Thanks,
Raymond

----- Original Message -----
From: "Hasan Muhammad" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 13, 2006 10:05 AM
Subject: Can you rename the default.scdl file?


>I have two composites ( 2 jar files ) and a separate client jar file. I
am
> trying to invoke the client test cases through iTest plugin. It
complains
> with the following error.
>
> [INFO] Multiple SCDL files found on test classpath:
>
>
file:/C:/SDO2/Tuscany/java/testing/sca/itest/bindingsTest/bindingsclient/targe
> t/classes/META-INF/sca/default.scdl
>
>
jar:file:/C:/SDO2/Tuscany/java/testing/sca/itest/bindingsTest/bindingsutility/
> target/bindingsutility-SNAPSHOT.jar!/META-INF/sca/default.scdl
>
>
jar:file:/C:/SDO2/Tuscany/java/testing/sca/itest/bindingsTest/bindingscomposit
> e/target/bindingscomposite-SNAPSHOT.jar!/META-INF/sca/default.scdl
>
> Any ideas on how to go about this ? Can i rename the scdl files in the
two
> composites to something else ? If so how would Tuscany runtime find them
?
>
> Hasan
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to