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:lenamtru...@gmail.com]
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 
<virgilio.rava...@ansaldo-sts.com>:

> 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: lenamtru...@gmail.com [mailto:lenamtru...@gmail.com]
> Inviato: venerdì 9 novembre 2012 21.49
> A: user@ant.apache.org
> 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: user-unsubscr...@ant.apache.org For additional
> commands, e-mail: user-h...@ant.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to