Re: Capture Javac output

2005-03-02 Thread OpenLDAP User
You may want to look at the Record task as well. You could probably start one of those off programmatically. This will log to a file. > > Hi, > > I'm compiling some java files using an Ant project: > > Project project = createProject(); > Javac javac = (Javac) project.createTask("javac"); > ja

Re: Writing out classpath from element

2005-03-01 Thread OpenLDAP User
Make the classpath a path reference that is declared at the top of the build file. Then, create a property that has the value as the classpath. This will cause the property to be set with a string representation of the path. You can then echo that property. > I want to know if there is anyway I c

Re: Sub-Target

2005-03-01 Thread OpenLDAP User
You can use antcall Or, better, you can do this with dependencies. If target2 depends on target1 being executed first, then add target1 to the depends list attribute of target2. > Hi, > How can I call a target in a target? > Example: > > ... > > > ---> how c

task slow when copying *FROM* a mapped drive

2005-03-01 Thread OpenLDAP User
Hello, There was a recent post about using the selector when copying *TO* a mapped drive, to speed up the task. However, I have the reverse situation - I'm building *FROM* a mapped drive, and copying the files to a local directory if they've changed. This operation is incredibly slow. I'm trying

tstamp task - does not update property

2005-02-25 Thread OpenLDAP User
Once you call tstamp and set it to a property, you can not update that property again. What I'm trying to do is echo timestamps at various points in my build to optimize the performance of the build. However, if I use the tstamp task, set the time to a property x, then if I call tstamp again on pr