You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "eboy.test" <kc...@edu.uni-klu.ac.at> on 2010/12/01 10:50:58 UTC
Re: Running Ant target from a jar
David Weintraub wrote:
>
> On Tue, Nov 30, 2010 at 6:39 AM, eboy.test <kc...@edu.uni-klu.ac.at>
> wrote:
>>
>> I am using a ant build file to run targets (ant targets) in a Java API.
>> Now,
>> i want to make a jar out of the API and i want to know whether i will be
>> able to run the targets now with the jar.
>
> A jarfile is just like a directory in Java. You specify the JAR in
> your CLASSPATH, and the classfiles it contains are available for you
> to run.
>
> --
> David Weintraub
> qazwart@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
you mean with java ?
e.g. javaw - jar test.jar
I want something like
e.g. ant -jar test.jar rundemo
here rundemo is the ant target, which invokes a class from test package
--
View this message in context: http://ant.1045680.n5.nabble.com/Running-Ant-target-from-a-jar-tp3285943p3287407.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Running Ant target from a jar
Posted by Michael Ludwig <mi...@gmx.de>.
eboy.test schrieb am 01.12.2010 um 01:50 (-0800):
> I want something like
>
> e.g. ant -jar test.jar rundemo
>
> here rundemo is the ant target, which invokes a class from test
> package
Have you tried running ant -h ? It would point you to -lib.
--
Michael Ludwig
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org