Re: getting filename from dir listing

2007-09-21 Thread Mario Madunic
> str=File.basename(Dir["J:/test/*.xml"].sort[0]).gsub(/(\w{8}).+/, $1) > $project.setProperty "myproperty", str > ]]> > > ... > > $${myproperty} == ${myproperty} > > > will give you = > ${myprop

Re: getting filename from dir listing

2007-09-21 Thread Gilbert Rebhan
ct.setProperty "myproperty", str ]]> ... $${myproperty} == ${myproperty} will give you = ${myproperty} == 20070921 Regards, Gilbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Anderson, Rob (Global Trade)
Why have the wrapper target at all? Add the if condition to the "_pmd" target itself. -Rob Anderson > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Friday, September 21, 2007 6:18 AM > To: Ant Users List > Subject: Best way to perform this type of conditonal t

getting filename from dir listing

2007-09-21 Thread Mario Madunic
I would like to get the filename of the first file in a directory and then get a particular part of the filename. The files all basically follow this format: 20070921_0001.xml. Currently I'm using a combination of windows command line and ant. It looks like the following in a bat file (I know it c

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
I thought that was the way that runtarget worked so I think that you are correct, there must be something else. I will check further to see. I will also look at the use of macros. Sometimes it is hard for me to think of things in the "ant" way. I appreciate you help. Eric -Original Messag

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
The "ant" way is not to think in terms of calling targets, it is more in-terms of invoking a target, and the target reads it's dependences. In ant 1.6 the unit of reuse/encapsulation/block would be a macro. I would use a macro instead of each of your pmd targets, and call them directly from the p

Re: Loading files into concat in a certain order

2007-09-21 Thread NeilWolfman
Is there a way to do this in version 1.6.5? eggie5 wrote: > > I need to load some CSS files into the concat task, but they need to be a > certain order. How should I do this? Maybe number the file names? Is there > any build in fileset functionality for this? > Alex > > -- View this messa

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Martin Gainty
Hi Eric If you look athttp://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html you can use java jar with fork=false (if you dont want to spawn a new JVM) Does this help?Martin Gainty__Disclaimer and confidentiality noteEverything in this e-mail a

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
Thanks, I have created a bunch of targets for PMD that I would like to keep, so the question is how do I call these targets from the "pmd" target while still keeping the conditional clause? I found that if I use antcall (or runtarget like in the code below), then properties that are set that I w

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
Opp, I hit send by accident, (gmail does not have the same key shortcuts as emacs). ... do pmd stuff On 9/21/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > > > > > > > > On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > > I want to only call a targe

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > I want to only call a target ( _pmd ) if the property "pmd.jar" is set. > > > > > > depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" /> > > > The problem I have with the code above is

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread David Kavanagh
Why not use instead of ? On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > > I want to only call a target ( _pmd ) if the property "pmd.jar" is set. > > > > > > depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" /> > > > The problem I have with the cod

Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
I want to only call a target ( _pmd ) if the property "pmd.jar" is set. The problem I have with the code above is that runtarget seems to run in its own JVM so properties that are set in there that I need to reference later are not available after it runs. Also, if I a

Re: AW: Classes directory is having old class file

2007-09-21 Thread Steve Loughran
Yasothamani wrote: Once by rebooting the machine we don't faced the problem, but when the cycle continues project 1.x and then project 2.x then the problem coming into picture. We are using clearcase and windows box for java compilation. *Doubt:* classes directory and it's class files are no

RE: Any Ant Task for Diff?

2007-09-21 Thread Rebhan, Gilbert
Hi, yet another xmldiff tool = https://xmldiff.dev.java.net/ project site says = "... xmldiff aims easy integration in automation tool such as Ant and maven. IDE integration is also planed. ..." so maybe it ships with an ant task. Regards, Gilbert --

Re: AW: Classes directory is having old class file

2007-09-21 Thread Yasothamani
Once by rebooting the machine we don't faced the problem, but when the cycle continues project 1.x and then project 2.x then the problem coming into picture. We are using clearcase and windows box for java compilation. *Doubt:* classes directory and it's class files are not part of clearcase vob

Re: AW: Classes directory is having old class file

2007-09-21 Thread Steve Loughran
Yasothamani wrote: Very thanks Steve. I don't know the exact meaning of having quiet. I will try without having quiet during the delete operation. > If there is any command so that it will forcibly delete the directory(classes). no, because if delete cant do it, it means you are on a window

Re: AW: Classes directory is having old class file

2007-09-21 Thread Yasothamani
Very thanks Steve. I don't know the exact meaning of having quiet. I will try without having quiet during the delete operation. If there is any command so that it will forcibly delete the directory(classes). Thanks & Regards YASOTHAMANI R Objectel Development India Comnet International Stev

Re: ant 1.7.1?

2007-09-21 Thread Peter Reilly
On 9/21/07, Hardy Grueneis <[EMAIL PROTECTED]> wrote: > hello, > > i want to ask if there will be an ant 1.7.1 release in the next time? No-one has volunteered to be the release-manager. When this happens, it will take 1 - 2 months to output a release as where will need to be a test release first

AW: ant 1.7.1?

2007-09-21 Thread Jan.Materne
>i want to ask if there will be an ant 1.7.1 release in the >next time? as we dont have a release manager, it will need time ;) >is there an easy way to get a bug-fixed version? compile yourself? Jan - To unsubscribe, e-

ant 1.7.1?

2007-09-21 Thread Hardy Grueneis
hello, i want to ask if there will be an ant 1.7.1 release in the next time? i want to use ant 1.7 but because it does not work with cactus 1.7 (with we are using for testing) i can't change to ant 1.7. is there an easy way to get a bug-fixed version? thanks & regards hardy grüneis

RE: Access server via alias ?!

2007-09-21 Thread Rebhan, Gilbert
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 11:30 AM To: user@ant.apache.org Subject: AW: Access server via alias ?! */ hmmm - that works for me. I tested with //computername/c$ Is there a net share "deploy"? Could you access

Re: AW: Classes directory is having old class file

2007-09-21 Thread Steve Loughran
Yasothamani wrote: Is clean build means to delete the classes directory, then we are doing that during java compilation. You can see the target clean in the attached build.xml where the directory is deleted. Thanks & Regards YASOTHAMANI R Objectel Development India Comnet International well

AW: Access server via alias ?!

2007-09-21 Thread Jan.Materne
hmmm - that works for me. I tested with //computername/c$ Is there a net share "deploy"? Could you access this UNC via Windows Explorer? Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 21. September 2007 10:34 >An: user@ant.apache.org >

Access server via alias ?!

2007-09-21 Thread Rebhan, Gilbert
Hi, i need to access a server via his aliasname, but the following snippet doesn't work = Files == ${toString:bla} BUILD FAILED ... \\cvsprod\deploy not found. Running Ant 1.6.5 on Win 2000 / 2003, jdk 1.4.2_08 Is there any cmd line tool for windows available ? Any ideas ? Regar

Re: Any Ant Task for Diff?

2007-09-21 Thread ulc <[EMAIL PROTECTED]>
There is also xmlunit at http://xmlunit.sf.net/ which compares xml files but not sure it has an ant task. -- Miroslav Venkateswarlu Gajulapalli napsal(a): > Hi ant users, > > > > I came across a Requirement, where in I need an Ant task for "Diff" ing > 2 xml files. > > I need to compare 2 xml f