Well, there are several ways to do what you want. I'll show you just one of
these ways, I'm using it:
It's my build.xml, it's only a sample, okay ?
<?xml version="1.0"?>
<project name="Prova" basedir=".">
<target name="run">
<antcall>
<target name="taskServer"/>
<target name="taskClient"/>
</antcall>
</target>
<target name="taskServer">
<exec executable="java" spawn="true">
<arg line="-jar"/>
<arg value="EmployeeServer.jar"/>
</exec>
</target>
<target name="taskClient">
<exec executable="java" spawn="true">
<arg line="-jar"/>
<arg value="EmployeeClient.jar"/>
</exec>
</target>
</project>
You can use a lot of options and parameters to customize the behaviors of this
sample build.xml.
I hope this can give you some hints
Bye
Virgilio
-----Messaggio originale-----
Da: Nam Truong Le [mailto:[email protected]]
Inviato: martedì 13 novembre 2012 11.09
A: Ant Users List
Oggetto: Re: R: [newbie] excute multiple jar files
Hi,
Yes. That is what I want to do
Von meinem iPad gesendet
Am 13.11.2012 um 10:13 schrieb Ravagli Virgilio
<[email protected]>:
> Hi,
> Can you make an example of what you're willing to do, please ?
> i.e. given A.jar and B.jar, you want to execute java -jar A.jar and
> java -jar B.jar from the same build.xml ?
>
> Regards,
> Virgilio
>
> -----Messaggio originale-----
> Da: [email protected] [mailto:[email protected]]
> Inviato: venerdì 9 novembre 2012 21.49
> A: [email protected]
> Oggetto: [newbie] excute multiple jar files
>
> Hi,
>
> do you know how to excute multiple jar files using just only one ant
> build.xml?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For additional
> commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional
commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]