ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "eboy.test" <kchin...@edu.uni-klu.ac.at>
Subject Re: Running Ant target from a jar
Date Wed, 01 Dec 2010 09:50:58 GMT


David Weintraub wrote:
> 
> On Tue, Nov 30, 2010 at 6:39 AM, eboy.test <kchintal@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


Mime
View raw message