Re: removing trailing whitespaces reading properties files

2009-01-26 Thread Blaine Simpson
Trimming leading spaces in properties files would break line-continuation. However, the same tactic can easily be handled by just using a replaceregex filter instead of a trim filter, like Brian Stephenson wrote: > I believe something like this should work: > > > > >

Re: Ant and rpm_mode

2009-01-22 Thread Blaine Simpson
I'm sure that others will have differing opionions. What I say here is just mine. I've never seen a Linux distribution with Ant, Tomcat, etc. packaged in a convenient and scalable way. I install manually (i.e. without the package management software that I use for everything other than third par

Re: Gunzip error

2009-01-22 Thread Blaine Simpson
Does /users/build/main/release reside on a network drive? If so, what type of network drive? Faded-Maximus wrote: > I really appreciate the help! > > Added the few lines you requested, it appears the GZ_EXISTS variable isn't > set, so apparently the gzipped file isn't "available." > > But I don't

Re: AW: Call a target with parameter?

2009-01-22 Thread Blaine Simpson
You don't need ant-contrib for this. Just use antcall with nested param elements. norken76 wrote: > Hi there, > Has anyone tried to pass in params to a called target via 'calltarget' of > antcontrib (without creating new project) OR maybe a different way to > achieve this goal (pass param to a ca

Re: Using new Junit 4.1 with ANT

2009-01-21 Thread Blaine Simpson
The combination JUnit 4.5 + Ant 1.7.1 works fine for me. I make sure my library classpath is clean. If it doesn't work for you with JUnit 4.5 + Ant 1.7.1, I'd say you have an environment problem. Shawn Castrianni wrote: > How can I use the new JUnit 4.1 with ANT 1.7.X? If I put the new junit.j

Re: AW: Modify xml file

2009-01-21 Thread Blaine Simpson
My favorite way is to use unicode escapes. Not only does it work for every character you will need (visible or not visible), but unicode escapes work for all XML, properties, and even Java source files (using different syntax, as explained below). For Ant build files: "&#" + 2_DIGIT_DECIMAL_NUMBE

Ant/Docbook HOWTO

2009-01-20 Thread Blaine Simpson
I've written a document covering the neglected (and challenging) topic of DocBook in Ant / pure Java environments. http://pub.admc.com/howtos/ant-docbook-howto/ - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For a

Re: Can't find tools.jar when invoking ant programatically

2009-01-16 Thread Blaine Simpson
java and javac will fork or not as described in the Manual for those tasks. As described there, they will not fork unless you use the fork attribute to turn on forking. Using fork="false" (the default) is more efficient, but makes the execution tightly bound to your Ant environment, and doesn't al