ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EP...@upstate.com
Subject Neat Droplet Ant Trick for Windows...
Date Wed, 02 Oct 2002 20:17:09 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message