David Weintraub wrote: > > On Tue, Nov 30, 2010 at 6:39 AM, eboy.test <kchin...@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 > qazw...@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@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-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org