capturing exec output and massaging it

2006-08-18 Thread Mark Modrall
Hi... I'm using exec to perform an svn update for the build. I'm capturing the output from that and looking for the revision number in it, like below: My q

Re: get filename

2006-08-18 Thread Scot P. Floess
Wasn't this answered earlier this week...using the target? -Original Message- >From: "Benjamin H." <[EMAIL PROTECTED]> >Sent: Aug 17, 2006 7:58 AM >To: user@ant.apache.org >Subject: get filename > >Hi out there, > >is it possible to get only the name of a file without the whole path?? > >

get filename

2006-08-18 Thread Benjamin H.
Hi out there, is it possible to get only the name of a file without the whole path?? This is for path - but only need the filename: @{filename} The files are in a directory!! Regards ele

Re: classpath from external jars relative to environment variable

2006-08-18 Thread Robert La Ferla
On Aug 18, 2006, at 12:34 PM, Antoine Levy-Lambert wrote: Do you have a line reading in your build file ? This is a prerequisite to access env vars with the env. prefix. Yes. In fact, it was in my reply. ;-) I am still looking for / researching a solution. ---

Re: classpath from external jars relative to environment variable

2006-08-18 Thread Antoine Levy-Lambert
Do you have a line reading in your build file ? This is a prerequisite to access env vars with the env. prefix. Regards, Antoine > I actually had "." in their too. I think my problem may actually be > related to running ant under XCode (gui tool) because I was able to > run it fine fro

delivering environment properties to J2EE applications

2006-08-18 Thread Antoine Levy-Lambert
Hi, Slightly off topic or over topic question. I am looking for best practices in terms of delivering environment properties to J2EE applications. In the project where I am working the J2EE apps get most of their environment data from property files in the classpath. We do two different things

Re: classpath from external jars relative to environment variable

2006-08-18 Thread Robert La Ferla
On Aug 18, 2006, at 11:54 AM, Antoine Levy-Lambert wrote: Wrong, property values expand other property values (if the props are defined). e.g. You type env. MYPROJECT should be env.MYPROJECT without space between env. and MYPROJECT That was a typo. The problem still occurs with

Re: Ant Path Problems

2006-08-18 Thread Antoine Levy-Lambert
Maybe the environment variables with which ant gets kicked off by luntbuild are not what you believe. You could add something in your build file Path=${env.Path}" In the last Windows OS, the path env var is spelt Path, this is sometimes important to know. Does luntbuild have a facility to c

Re: classpath from external jars relative to environment variable

2006-08-18 Thread Antoine Levy-Lambert
Hi, Original-Nachricht Datum: Fri, 18 Aug 2006 11:18:40 -0400 Von: Robert La Ferla <[EMAIL PROTECTED]> An: Ant Users List Betreff: classpath from external jars relative to environment variable > I have several external jars that are located relative to a directory > specified

classpath from external jars relative to environment variable

2006-08-18 Thread Robert La Ferla
I have several external jars that are located relative to a directory specified by an environment variable $MYPROJECT. I need to construct a classpath within my build.xml so that javac can compile my project. It seemed pretty straightforward but I can't seem to get it to work. What's th

Re: Ant, C++ and Unit tests

2006-08-18 Thread James Abley
CppUnit or CppUnitLite are the two that I'm most immediately aware of, but Googling C++ and xUnit would doubtless turn up more. I haven't used them with ANT though; don't know if you could just the unit test framework, or do something more sophisticated than that. I suspect Dominique may have