Use a combination of <input> and AntContribs <for>. Read a list of value with a defined separator (<input>) and let <for> do the iteration. Something like that:
<input message="... (separate multiple with ',')" addproperty="MAKE_FILE_NAMES"/> <for param="mfn" list="${MAKE_FILE_NAMES}" delimiter=","> <sequential> <ant antfile="@{mfn}" ... > Jan > -----Ursprüngliche Nachricht----- > Von: Deepthi Ramachandran Nair [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 22. Juli 2004 13:18 > An: [EMAIL PROTECTED] > Betreff: Entering more than one value through Input task > > Is it possible for the user to enter more than one parameter from the > command prompt using a single target executing the Input > task ? My make > file is coded as- > > <target name = "Input_component_name" > > <input message = "Enter the make file to be executed" > addproperty = "MAKE_FILE_NAME" /> > </target> > <target name = "Build" depends = "Input_component_name" > > <ant antfile = "${MAKE_FILE_NAME}" > inheritAll = "true" /> > </target> > > This allows me to specify the make file that I want to execute. What > should I be doing if I want to execute two files one after the other ? > Would I have to run the same target twice ? > > > Regards, > Deepthi R. Nair > ES-EAI Practice > Infosys Technologies Ltd. > Extn.: 54246, Direct : 51174246 > Mobile : 98863 49854 > >