AW: core Task 'exec' start Invalid switch - /B

2009-05-07 Thread Jan.Materne
Is "start" really an executable? Maybe it is only a shell command. Then you have to execute the shell itself (cmd.exe, sh, ...). Redirecting the output in Ant is not done via shell options (1>, 2>, >&1, ...). You have to use nested s. Jan >-Ursprüngliche Nachricht- >Von: coonay [mailt

AW: AW: Comparison length for processing as a condition

2009-05-07 Thread Jan.Materne
Again: Where do you set ${HOST}? Have you checked its value? I tried an example and it works for me. Jan HOST: ${HOST} isValid : ${isValidHost} HOST: ${HOST} isValid : ${isValidHost} >-Ursprüngliche Nachricht- >Von: coonay [mailto:co

core Task 'exec' start Invalid switch - /B

2009-05-07 Thread coonay
/B is a valid switch for start ,but there is error using ant exec task,why is that ? BTW ,I want to redictor the inf

Re: AW: Comparison length for processing as a condition

2009-05-07 Thread coonay
the answer is that isValidHost is not set iflen of ${HOST} is not gt >100. i suppose ant should set it to false,but it doesn't Jan.Materne wrote: > > Where do you set ${HOST}? > Have you checked its value? > > Jan > >>-Ursprüngliche Nachricht- >>Von: coonay [mailt

Configure an ANT project in Java

2009-05-07 Thread Cole, Derek E
Hello all. I am trying to configure an Ant project from a Java class using the API. I have set up my Project like so antproject.init(); ProjectHelper helper = ProjectHelper.getProjectHelper(); antproject.addReference("ant.projectHelper", helper);

Re: Logging for apply task

2009-05-07 Thread Francis Galiegue
Le Friday 08 May 2009 00:06:03 David Raich, vous avez écrit : > Does anyone have a way to make log a one-line summary for > each file it applies its command to? > Using ant-contrib's , this is easy:

Logging for apply task

2009-05-07 Thread David Raich
Does anyone have a way to make log a one-line summary for each file it applies its command to? I'd like either the actual command issued, or at least the filename. This would help greatly for interpreting the error and operation logs which, unfortunately, do not usually show the file name i

Re: Reset BuildNumber

2009-05-07 Thread Michael Ludwig
Francis Galiegue schrieb am 07.05.2009 um 23:03:44 (+0200): > Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit : Thank you all for your quick response. > > * http://ant-contrib.sourceforge.net/ > > The download link points to sources for cpptasks.jar. On http://sourceforge.net/

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit : > Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > > > > > > > I've become curious why one is supposed to write so many lines of code > to generate a number, and how it all works, so I copied this script to

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
Download Antcontrib here: http://sourceforge.net/project/showfiles.php?group_id=36177 Install it and then: Copy ant-contrib-1.0b3.jar from ant-contrib\lib to \lib The reason I use so much code to change build numbers is that I have major, minor, hotfix, revision, and sometimes continuous build

RE: Reset BuildNumber

2009-05-07 Thread Martin Gainty
https://olex.openlogic.com/packages/ant-contrib Viel Gluck!! Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte

Re: Reset BuildNumber

2009-05-07 Thread Michael Ludwig
Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > I've become curious why one is supposed to write so many lines of code to generate a number, and how it all works, so I copied this script to my disk and started Ant on it. But the ant-contrib resource is missing. Looking

Configure an ANT project in Java

2009-05-07 Thread Cole, Derek E
Hello all. I am trying to configure an Ant project from a Java class using the API. I have set up my Project like so antproject.init(); ProjectHelper helper = ProjectHelper.getProjectHelper(); antproject.addReference("ant.projectHelper", helper);

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
Thanks for all the help Francis!  I'm feeling a bit better about my Ant coding skills.  Ant is much more evolved than NAnt, and thus, has a lot more functionality to choose from.  Loads of fun... From: Francis Galiegue To: Ant Users List Sent: Thursday, May

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 17:50:34 Eric Fetzer, vous avez écrit : > So what do you think about this? > Even better than what I came up with to my eyes ;) I'd still have used the macro, though. It also tells me that you have the choice to your input parameters, since you changed the whole "xxIncre

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 17:08:13 Eric Fetzer, vous avez écrit : > Why do you use  for one line of code?  Basically, you're creating > a subset of with .  Is that standard among the Ant > community? > I don't know, since I can't really describe myself as being a member of the ant community ;) I l

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
So what do you think about this?                                                                                         ${full.buil

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
Why do you use  for one line of code?  Basically, you're creating a subset of with .  Is that standard among the Ant community? From: Francis Galiegue To: Ant Users List Sent: Wednesday, May 6, 2009 3:23:37 PM Subject: Re: Reset BuildNumber Le Wednesday 06

Re: Reset BuildNumber

2009-05-07 Thread Eric Fetzer
Francis, Very interesting how you nest all the way in and "done" your way out.  Is that faster than my if then else if's?  Took me a bit to follow it, but that's because I'm not adept yet at using depends.  In NAnt, they aren't used as commonly.  For this particular application, it would be ide

AW: Ant deploy: Replace parameters

2009-05-07 Thread Jan.Materne
I think the focus of the task is to bring the archive into the server, not to change files. You could write the DD as template and use a for generating the 'real' DD. http://ant.apache.org/manual/CoreTypes/filterset.html Jan >-Ursprüngliche Nachricht- >Von: Cool The Breezer [mailto

AW: Ant copy file error: Only one of tofile and todir may be set

2009-05-07 Thread Jan.Materne
Change your buildfile. The tofile attribute is used as destination specification for copying one file. Maybe with renaming. The todir attribute is used as destination specifiation for copying multiple files. maybe with renaming but then you dont specify the 'tofile'. Jan

AW: Comparison length for processing as a condition

2009-05-07 Thread Jan.Materne
Where do you set ${HOST}? Have you checked its value? Jan >-Ursprüngliche Nachricht- >Von: coonay [mailto:coo...@yahoo.com] >Gesendet: Donnerstag, 7. Mai 2009 10:59 >An: user@ant.apache.org >Betreff: Comparison length for processing as a condition > > >i want to test if a string is long

Ant deploy: Replace parameters

2009-05-07 Thread Cool The Breezer
Hi, The deployment descriptor contains dynamic values and looks like All the parameters are defined in build.properties but deploy task does not change the values, which results bad deployment. The ant deploy task is Any suggestion to achieve the same --

Ant copy file error: Only one of tofile and todir may be set

2009-05-07 Thread Nafter
I'm using maven with included ANT tasks to copy files. However I receive the following error. In an other step during the maven build process I use ant copy as well in which I have to set the toDir. But this step is not using the todir at all. But it seems it complains about the fact that now bot

Re: Ant sql task fails while executing insert statement containg string description with "--"

2009-05-07 Thread AcO6
Hi Pradeep, Pradeep.C wrote: > > Hi There, > I am trying to execute *.sql file containing insert statements using ant > task onto the DB2 database. The build is failing for me as one of > the insert statement in *.sql has a string description with "--" charters > init. > > My insert statement

Comparison length for processing as a condition

2009-05-07 Thread coonay
i want to test if a string is longer than a number,in the build.xml file: isValidHost is always not set when the ant runing,what's the problem ? is there any other way i can get it done?thanks so much -- View this message in context: http://www.nabble.com/Comparison-length-fo