Re: ant task output file differs in API from command line usage

2004-10-14 Thread Kelly Davis
Would you be able to offer any detailed instructions on accomplishing this. I have tried to redirect the output streams of a DefaultLogger to a file, but this still doesn't give the compile errors in the subproject. Quoting Conor MacNeill <[EMAIL PROTECTED]>: > > > > Why am I not getting the c

ant task output file differs in API from command line usage

2004-10-14 Thread Kelly Davis
I have the following code which executes a build file: Project project = new Project(); project.init(); project.setUserProperty( "base.dir", new File( rootDir ).getAbsolutePath() ); project.setUserProperty( "ant.file", new File( new File( rootDir ), buildFile ).getAbsolutePath() ); project.

Re: setErrorPrintStream on DefaultLogger not working

2004-10-14 Thread Kelly Davis
will use the api. Kelly Davis wrote: I am using ant 1.6.2 doing a build through the api. I am creating an instance of DefaultLogger. When I call setErrorPrintStream to a file for output, and then have a build with a compile error in it, the error output doesn't go to the file, but to my co

Re: Zip task doesn't create empty directories on Mac OSX

2004-10-14 Thread Kelly Davis
Antoine Yeah, your right. I am using 1.6.2 on the mac and 1.6.1 on linux. I should have included the versions in the post. thanks for the info. Kelly Antoine Levy-Lambert wrote: Hello, In ant 1.6.2, there is a bug [1] preventing empty directories from being zipped. This bug is fixed in CVS on the

Zip task doesn't create empty directories on Mac OSX

2004-10-13 Thread Kelly Davis
For some reason the zip task is not consisten between platforms. When I zip up a directory with some empty directories under it, in Linux, the empty directories get included in the zip. When I run the same task on OSX, the empty directories are not created. -

setErrorPrintStream on DefaultLogger not working

2004-10-13 Thread Kelly Davis
I am using ant 1.6.2 doing a build through the api. I am creating an instance of DefaultLogger. When I call setErrorPrintStream to a file for output, and then have a build with a compile error in it, the error output doesn't go to the file, but to my console. Any ideas on why this may be happeni

Re: buildStarted & buildFinished events not happening

2004-10-13 Thread Kelly Davis
In that case, how do I find out if there were any exceptions during the execution of the target? Stefan Bodewig wrote: On Tue, 12 Oct 2004, Kelly Davis <[EMAIL PROTECTED]> wrote: project.executeTarget( "build" ); For some reason the buildStarted & buildFinished metho

buildStarted & buildFinished events not happening

2004-10-12 Thread Kelly Davis
I have the following code running against Ant 1.6.2: Project project = new Project(); project.init(); project.setUserProperty( "base.dir", new File( rootDir ).getAbsolutePath() ); project.setUserProperty( "ant.file", new File( new File( rootDir ), buildFile ).getAbsolutePath() )