You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by EP...@upstate.com on 2002/10/02 22:17:09 UTC

Neat Droplet Ant Trick for Windows...

Hi all,

Not sure if this is a well known thing, but I thought I might add it to the
FAQ or something.  Basically, on windows you can take a batch file with the
text: 

ant -f example-build.xml -Dsrc.file=%1

Then, if you drag a file on top of the batch file and let it go, it replaces
the %1 with the path of the file, allowing you to create Ant tasks that
behave as droplets!

Eric Pugh

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>