ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitchell Ackermann" <mitchell.ackerm...@epsiia.com>
Subject Re: Accept Input Parameter During Execution Time
Date Tue, 21 Aug 2001 18:22:23 GMT
pretty simple...

commandline:
ant -Dfilename=<name of file>

build.xml:
<project name="x" default="delete-file" basedir=".">
  <target name="delete-file">
    <delete file="${filename}"/>
  </target>
</project>

Mitchell Ackermann

----- Original Message ----- 
From: <chris.chang@cendec.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, August 21, 2001 1:04 PM
Subject: Accept Input Parameter During Execution Time


Folks,

I would like to know if there is any way that I can pass in an input
parameter to ant during execution time (e.g. pass in the filename to be
deleted by ant,etc.).  I would think this question should already be asked
by someone.  However, I cannot find it from the archive 8(

Thanks in advance

Chris


Mime
View raw message