You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Knuplesch, Juergen" <Ju...@icongmbh.de> on 2008/06/06 17:30:45 UTC
Current dir of ant-Build / Java-Task
Hello,
I want to start an application using the java-Task.
My application writes files relative to the path I start it from.
The application is starting fine and writing files relative to the path of my Batchfile, that starts the buildfile.
How can I set the working dir for my java-task, so that the output files go, where I want them to go?
I dont want to change this path for may whole build, just for this application I want to start.
Or do I have to change the working dir of my build before I start this task?
This is my task:
<java classname="de.Builder"
maxmemory="1024m"
fork="yes"
timeout="1000000">
<jvmarg value="-Djava.io.tmpdir=${cvs.exportboxbase}/temp/"/>
<classpath>
<path refid="classpath"/>
</classpath>
</java>
--
Jürgen Knuplesch
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: Current dir of ant-Build / Java-Task
Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
Thanks. I could not see it....
--
Jürgen Knuplesch
-----Ursprüngliche Nachricht-----
Von: Dominique Devienne [mailto:ddevienne@gmail.com]
Gesendet: Freitag, 6. Juni 2008 17:55
An: Ant Users List
Betreff: Re: Current dir of ant-Build / Java-Task
> Or do I have to change the working dir of my build before I start this task?
>From the doc for <java>:
dir The directory to invoke the VM in. (ignored if fork is disabled)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Current dir of ant-Build / Java-Task
Posted by Dominique Devienne <dd...@gmail.com>.
> Or do I have to change the working dir of my build before I start this task?
>From the doc for <java>:
dir The directory to invoke the VM in. (ignored if fork is disabled)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org