Run with 'ant -debug', and compare the command Ant reports running with what you receive in your program, since you apparently <apply> doesn't suit you.
--DD -----Original Message----- From: Aubin Mahé [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 4:07 PM To: 'Ant Users List' Subject: RE: How escaping '*'? The OS used is Windows XP. cmd.exe doesn't expand *. Why my java program doesn't receive '*' as is? -----Original Message----- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: dimanche 15 décembre 2002 22:54 To: 'Ant Users List' Subject: RE: How escaping '*'? Ant never expands '*', except in <mapper>'s and a few other elements than explicitly deal with '*', which have nothing to do with shells '*' expansion. I was saying that you're shell/make use of '*' has an equivalent in Ant thru the <apply> task. If you want the keep your current platform-specific '*' expansion, <exec> sh/cmd (see the FAQ) to run your command (see also vmlauncher attribute of <exec> and maybe <java fork="yes"/>). Check out the doc and archive, and you'll find examples. Ciao, --DD -----Original Message----- From: Aubin Mahé [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 12:41 PM To: 'Ant Users List' Subject: RE: How escaping '*'? I don't want to expand the *... So my question is: how escape * in ANT to avoid the expansion? -----Original Message----- From: Dominique Devienne [mailto:[EMAIL PROTECTED]] Sent: vendredi 13 décembre 2002 16:51 To: 'Ant Users List' Subject: RE: How escaping '*' ? The shell was doing the expansion of the '*'. The <apply> task should work for you (you just need to start Java yourself, which is easy thanks to java.home), or you expand the '*' before using a <fileset> converted to a property using <pathconvert>. Sounds like <apply> would be the better solution to me. --DD -----Original Message----- From: Aubin Mahé [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 7:45 AM To: 'Ant Users List' Subject: How escaping '*' ? I wish to run a jar with this target: <target ... > <java ... fork = "true" > <arg line = "-l MainTrace -o 1 -select *" /> </java> </target> The '*' after 'select' will be expanded and replaced by the files in the current directory. Before, I used 'make': go: $(JAR_TARGET) $JAVA) -jar $(JAR_TARGET) -l MainTrace -o 1 -select '*' Info: <arg value="*" /> give the same result. Anybody has an idea? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>