ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Meakin" <geo...@isocra.com>
Subject RE: Command Line Arguments
Date Mon, 09 Sep 2002 10:57:30 GMT
Or this:

<echo message="Please type in the value for src"/>
<input addproperty="src"/>
<echo message="Please type in the value for build"/>
<input addproperty="build"/>
<echo message="Please type in the value for dist"/>
<input addproperty="dist"/>
<echo message="Please type in the value for doc"/>
<input addproperty="doc"/>

Note: I would use input@message, but there appears to be a bug in my version
of ANT and this doesnt do anything

Cheers
-Geoff


-----Original Message-----
From: William Gustave [mailto:wgustave@advanstar.com]
Sent: 06 September 2002 08:16 PM
To: ANT (E-mail)
Subject: Command Line Arguments


Is it possible to set the Global Variables from the command line in an Ant
build file. I am using the <input> tag and I just don't see how in the Ant
tutorial to do this.

I have pasted the code below.

<project name="ems" default="dist" basedir=".">
    <description>Enhanced Magazine Site build file</description>

<!-- set global properties for this build -->
  <property name="src" location="SourceCode"/>
  <property name="build" location="classes"/>
  <property name="dist"  location="dist"/>
  <property name="doc"  location="doc"/>

  <target name="init">
  <echo message="${src}"/>
  <input
    message="All data is going to be deleted from DB continue (y/n)?"
    validargs="americasnetwork,telecomplanet" />

    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

</project>

Thanks
William Gustave

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message