Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 69811 invoked from network); 16 Dec 2002 19:34:20 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 16 Dec 2002 19:34:20 -0000 Received: (qmail 26203 invoked by uid 97); 16 Dec 2002 19:35:22 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 26166 invoked by uid 97); 16 Dec 2002 19:35:20 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 26134 invoked by uid 98); 16 Dec 2002 19:35:20 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: How escaping '*'? (Solved) Date: Mon, 16 Dec 2002 13:34:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Make that 'cmd.exe' expands * in all Windows version I know (NT, 2K, = XP), and probably all of them. Did you know it has pipes and redirections = too? It's very pale compared to any unix shell, but it's a shell = nonetheless... And to keep nagging you, if you had used apply, Ant would have done the expansion... --DD -----Original Message----- From: Aubin Mah=E9 [mailto:aubin.mahe@wanadoo.fr]=20 Sent: Monday, December 16, 2002 1:15 PM To: 'Ant Users List' Subject: RE: How escaping '*'? (Solved) Thanks for your help! In fact under Windows XP, cmd.exe really expands the * with the = contents of the current directory. I'm very surprised of this "UNIX" behaviour. I have solved my problem by using quotes, specified in an XML way. The ant task become: If I write the quotes are removed, strange isn't it? -----Original Message----- From: Dominique Devienne [mailto:DDevienne@lgc.com]=20 Sent: lundi 16 d=E9cembre 2002 15:58 To: 'Ant Users List' Subject: RE: How escaping '*'? Run with 'ant -debug', and compare the command Ant reports running with what you receive in your program, since you apparently doesn't suit you. --DD -----Original Message----- From: Aubin Mah=E9 [mailto:aubin.mahe@wanadoo.fr]=20 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:DDevienne@lgc.com]=20 Sent: dimanche 15 d=E9cembre 2002 22:54 To: 'Ant Users List' Subject: RE: How escaping '*'? Ant never expands '*', except in '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 task. If you want the keep your current platform-specific '*' expansion, sh/cmd (see the FAQ) to run your command (see also vmlauncher attribute of and maybe ). Check out the doc and archive, and you'll find examples. Ciao, --DD -----Original Message----- From: Aubin Mah=E9 [mailto:aubin.mahe@wanadoo.fr] 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:DDevienne@lgc.com]=20 Sent: vendredi 13 d=E9cembre 2002 16:51 To: 'Ant Users List' Subject: RE: How escaping '*' ? The shell was doing the expansion of the '*'. The 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 converted to a property using . Sounds like would be the better solution to me. --DD -----Original Message----- From: Aubin Mah=E9 [mailto:aubin.mahe@wanadoo.fr]=20 Sent: Friday, December 13, 2002 7:45 AM To: 'Ant Users List' Subject: How escaping '*' ? I wish to run a jar with this 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: give the same result. Anybody has an idea? -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: