ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <>
Subject how to add a single class (or a few classes) to the classpath
Date Mon, 24 Oct 2005 07:33:51 GMT
hi, trying to make the following fragment work

<target name="runusingjar" depends="jar" description="runusingjar">
         <java classname="Main">
                         <fileset file="${bin}/src/Main.class"/>
                         <fileset dir="${bin}/src" includes="Main.class"/>
                         <filelist dir="${bin}/src" files="Main.class"/>
                         <path refid="lib" />

the purpose of this is to just run the jar from main in the default 
package. but the class files are under bin/package and one wants to exclude 
them and use the stuff in the jar.

none of the obvious ways seem to work (see above fragment).

how does one specify a small set of class files (excluding stuff in sub 

is there a better way to do this? (i.e. compile the stuff in the default 
package into bin/default or something like that).

any pointers will be appreciated.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message