RE: Using 'exec' task with special characters in argument line.

2006-12-05 Thread Anderson, Rob (Global Trade)
XML is sensitive to quotes and ampersands. Try putting the arg line in a properties file, and using the property in your build.xml. This will save you the trouble of translating the quotes and ampersands into xml friendly entities. -Rob A > -Original Message- > From: Chon, Ae H [mailto:[E

Using 'exec' task with special characters in argument line.

2006-12-05 Thread Chon, Ae H
Need help! I'm having problems getting trying to run a command in windows using ant "exec" task: In windows, I would would the following command: cleartool find . -version "created_since(yesterday)&&!(created_since(now))" -print I tried to simulate this using 'exec' task...but it doesn't take

Re: Using 'exec' task with special characters in argument line.

2006-12-05 Thread Dominique Devienne
How do i get around this? I tried to used CDATA but i get the following message (see code below): Class org.apache.tools.ant.types.Commandline$Argument doesn't support the nested "line" element Please read the manual, and search the archive. It's . --DD --

Problems with upgrade to Ant 1.7.0 RC1 and Java 1.5

2006-12-05 Thread Thomas Voigt
Hi, we tried to upgrade our system to Java 1.5 (jdk1.5.0_09) and Ant 1.7.0 RC1. Sadly we ran into several problems. We also use svnant 1.1.0 RC2 and ant-contrib 1.0b2. I would like to know if any of you ran into similar problems - I'm moderately experienced with fiddling with ant, but not an e

Re: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread Jacob Kjome
Here's the official Xerces statement on JDK1.2 compatibility... They're supposed to be compatible with JDK 1.2 however no one has tested that so I can't say whether they actually are. The same is true for all of the previous releases starting from Xerces 2.6.0. These were only built and tested w

RE: list all targets in the build file

2006-12-05 Thread Anderson, Rob (Global Trade)
It may help to give an example. Your question is very specific, which is great. But I believe many are wondering why you would need this functionality. In Ant there is often many ways to accomplish the same thing. If you explain what you are trying to accomplish it may lead to a better option, o

RE: Using the '*' (wildcard)

2006-12-05 Thread Anderson, Rob (Global Trade)
Normally, the shell would expand the wildcard when using ls. This is not the case in Ant since ls is not being executed within a shell. Try using a fileset and the task. Of course, you could also try executing a shell, or shell script. -Rob Anderson > -Original Message- > From: Lloyd, E

Re: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread Stefan Bodewig
On Tue, 05 Dec 2006, James Abley <[EMAIL PROTECTED]> wrote: > > That works for me, although I noticed something slightly surprising > when I compiled using a 1.4 and 1.5 JDK. > > [javac] '-source' > [javac] '1.3' Ant magically upgraded the -source switch to 1.3 since most JDKs don't su

AW: Using the '*' (wildcard)

2006-12-05 Thread Jan.Materne
Ant does not resolve the wildcard. The called program does - or does not. Have you tried to specify the shell (sh,bsh,...) on your second example? see: http://ant.apache.org/faq.html#batch-shell-execute Jan >-Ursprüngliche Nachricht- >Von: Lloyd, Eric [mailto:[EMAIL PROTECTED] >Gese

Using the '*' (wildcard)

2006-12-05 Thread Lloyd, Eric
Hi, I'm new to Apache ant, and I'm trying to get a very simple to work. For some reason, wildcards ('*') work fine in some cases but not in others. For example, the following works fine: Note: In ./File/src/obj there is one file - File.o. And running "ls ./File/src/obj/*.o" from a terminal wor

AW: list all targets in the build file

2006-12-05 Thread Jan.Materne
I dont know any buildin way. But the targets are hold in a Hashtable on Project, so you could do

Re: list all targets in the build file

2006-12-05 Thread Narahari 'n' Savitha
Ok, thats not what I want. I want to be able to get this list of targets into a property, so it can be used to make other decisons later on. -Narahari On 12/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: With "ant -h" you'll get a list of all Ant's options ... Jan >-Ursprüngliche N

AW: AW: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread Jan.Materne
>OK, going with the empirical approach rather than theorising about it! > > > > > > > classpath="xercesImpl.jar" /> > > > > >public class X { > org.apache.xerces.parsers.XIncludeAwareParserConfiguration >conf = new org.apache.xerces.parsers.XIncludeAwar

Re: AW: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread James Abley
OK, going with the empirical approach rather than theorising about it! public class X { org.apache.xerces.parsers.XIncludeAwareParserConfiguration conf = new org.apache.xerces.parsers.XIncludeAwareParserConfiguration(); } That works for me, although I notic

AW: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread Jan.Materne
>Looks like it does... > >http://svn.apache.org/viewvc/xerces/java/trunk/build.xml?view=markup The compile target doesnt set a source and target level. >which uses an extended form of > >http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?vi ew=markup I cant see any implemen

RE : AW: RE : AW: how to retrieve ant command line arguments on LINUX

2006-12-05 Thread Bernard LUPIN
Yes, I can test the ${env.ant_exec_args} variable if it is exported. But the value is modified by the script (double quotes added), and the script will not be portable between unix and dos/windows. --- [EMAIL PROTECTED] a écrit : > Could you change the ant-script and export the > variable for tes

Re: AW: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-05 Thread James Abley
Looks like it does... http://svn.apache.org/viewvc/xerces/java/trunk/build.xml?view=markup which uses an extended form of http://svn.apache.org/viewvc/xerces/java/trunk/tools/src/XJavac.java?view=markup The class file version number (after pulling apart org.apache.xerces.impl.Version) is 45.