Hi, I'm migrating an ant based build file to nant. One of the things I need to migrate is the invocation of the java vm passing a classpath as an argument, ant allows one to do it like this:

       <java classname="junit.textui.TestRunner">
           <classpath>
                   <fileset dir="jsunit/lib">
                       <include name="*.jar"/>
                   </fileset>
                   <fileset dir="jsunit/bin">
                       <include name="jsunit.jar"/>
                   </fileset>
           </classpath>
           <arg value="net.jsunit.StandaloneTest" />
       </java>

My question is how can I achieve the same effect with the exec task?

<exec program="java">
<!-- is there any way to get a filelist from a fileset and put it here? -->
<arg value="-cp ?????" />
<arg value="junit.textui.TestRunner" />
<arg value="net.jsunit.StandaloneTest" />
</exec>


I'm also considering implementing a java task just for the fun of it but I'd like to keep my life simple :)

Cheers,

--
bamboo
http://blogs.codehaus.org/people/bamboo/
"deleting void* is undefined"



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to