RE: Unable to delete file

2009-08-18 Thread Cole, Derek E
Is the file being stored on an NFS? -Original Message- From: Greg Roodt [mailto:gro...@gmail.com] Sent: Tuesday, August 18, 2009 2:12 PM To: Ant Users List Subject: Re: Unable to delete file Im sure the intentions are good, but these suggestions are not solving the problem at hand. Jeff

RE: Problem with zip task

2009-07-29 Thread Cole, Derek E
77" file permission and correct owner user and group. - Alexey. Cole, Derek E wrote: > Has anyone encountered a problem when running a zip task, the log will > say something like > > [zip] Building zip: /path-to/some.war > > [zip] adding directory > > > &

RE: Problem with zip task

2009-07-29 Thread Cole, Derek E
. Floess wrote: > > I suppose if nothing else maybe exclude all .nfs* files from your > fileset??? > > > On Tue, 28 Jul 2009, Cole, Derek E wrote: > > Could this be something that is happening because zip, or some task, >> creates a temporary file...then that process d

RE: Problem with zip task

2009-07-28 Thread Cole, Derek E
x box the build is actually running from, I never can see any of these .nfs files..but this is the second time in two days this has happened to us. Usually we re-run the build, and it is successful the next time. Derek -Original Message- From: Cole, Derek E Sent: Tuesday, July 28, 2009

RE: Problem with zip task

2009-07-28 Thread Cole, Derek E
the build.xml? I know that a few Java File operations dont work very well across file systems. Renaming has given me problems in the past. On Tue, Jul 28, 2009 at 6:58 PM, Cole, Derek E wrote: > The mounts are persistent, and we are not doing anything like that as > part of the build. &

RE: Problem with zip task

2009-07-28 Thread Cole, Derek E
or anything? On Tue, 28 Jul 2009, Cole, Derek E wrote: > Has anyone encountered a problem when running a zip task, the log will > say something like > > [zip] Building zip: /path-to/some.war > > [zip] adding directory > > > > Then getting an exception that say

Problem with zip task

2009-07-28 Thread Cole, Derek E
Has anyone encountered a problem when running a zip task, the log will say something like [zip] Building zip: /path-to/some.war [zip] adding directory Then getting an exception that says Problem creating zip: /path-to/someotherdir/.nfs0001a121a0003ae (No such fil

task hanging

2009-07-22 Thread Cole, Derek E
I am having a problem with some build scripts I have written that have tasks to set a property based on whether a particular mount is available on the build box. It seems like if the mount is not available for whatever reason, the build hangs at this point. Has anyone seen this behavior before?

RE: property inheritance

2009-06-30 Thread Cole, Derek E
Ursprüngliche Nachricht----- >Von: Cole, Derek E [mailto:derek.e.c...@lmco.com] >Gesendet: Montag, 29. Juni 2009 23:09 >An: Ant Users List >Betreff: property inheritance > >Hi all. > > > >If I have a build script that makes an call to another build >script, for a

property inheritance

2009-06-29 Thread Cole, Derek E
Hi all. If I have a build script that makes an call to another build script, for a specific target in that build script, are the imports that the 2nd build script has initialized just the same as if I had called the 2nd build script's target from command line? I seem to have an issue where

RE: Replacing build.xml with Build.java - Doing Ant builds directly from Java

2009-06-11 Thread Cole, Derek E
You are correct that there is very little documentation on the subject, other than a few small, simple examples on the net. It seemed like one of the responders in that link you posted was implying that he spoofed the tasks he needed to use? That seems like quite a bit more work than would be n

Running multiple ant projects from threaded java project

2009-06-02 Thread Cole, Derek E
Hi All. I have a java project that is creating a thread for the purpose of creating and running an ant project in each thread so I can run multiple ant builds at the same time. The java program is using the ant API to set up the project, add a listener, etc. The problem is, if I add a logger to e

RE: Taskdef classloader issue

2009-05-29 Thread Cole, Derek E
Martin, I didn't have time to fully read over this, but this is the most comprehensive example I've seen in a while for setting up a project. I had a heck of a time trying to figure out how to set up a classpath in an ant project I was building a while back. Thanks for posting! -Original Me

wlappc runtimeflags

2009-05-21 Thread Cole, Derek E
I am not sure if this is the best place to be asking, but I am trying to run the task on some ear files, and I don't want it to use system TEMP for extracting out stuff into. It is my understanding it uses whatever java.io.tmpdir is set to, and so I was trying to invoke some runtime flags within

include path in

2009-05-19 Thread Cole, Derek E
Hello all, I am interested in passing in a reference to the tags of my call. How can this be done? CP:${toString:apache.beehive.classpath}

RE: Java in JDK but ANT can't find it!

2009-05-18 Thread Cole, Derek E
eption e) { > > if (e.toString().contains("Unable to find a javac > compiler;")){ > > db.insertBuildData(Integer.toString(revisionNumber), > "YES", "Unable to find a javac compiler"); > > } else{ > db.insertBuild

RE: Sending small mail when build is finished

2009-05-18 Thread Cole, Derek E
Create your own version of maillogger , put it on your classpath, and invoke it the same way you would the default maillogger. -Original Message- From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Sent: Monday, May 18, 2009 4:02 AM To: user@ant.apache.org Subject: Sending s

RE: Java in JDK but ANT can't find it!

2009-05-18 Thread Cole, Derek E
Here is how I have set this up to work: Project Antproject = new Project(); boolean t = true; Path path = null; AntClassLoader ACL = new AntClassLoader(Antproject, path, t); //this causes ant to use the system path classpath since I passed in a "true" value. To append //items, use something besi

Demux output when running ant programmatically

2009-05-14 Thread Cole, Derek E
Hello All! I am trying to capture ALL of the output that comes when I am running my build using the Ant API. I have associated a DefaultLogger with the ant project, but that seems to miss a lot of the output from javac errors and warnings. Any ideas how I can do this? I have tried to look into

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
k1.6.0_06/jre >> >> Seriously, try JAVA_HOME= /opt/jdk1.6.0_06 instead >> >> >> >> >> On 14 May 2009, at 15:28, Cole, Derek E wrote: >> >> When I had this problem, I KNOW that JAVA_HOME was set correctly. I >>> still ran into the problem. The OP

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
t: Re: Java in JDK but ANT can't find it! In your description you say that JAVA_HOME=/opt/jdk1.6.0_06/jre Seriously, try JAVA_HOME= /opt/jdk1.6.0_06 instead On 14 May 2009, at 15:28, Cole, Derek E wrote: > When I had this problem, I KNOW that JAVA_HOME was set correctly. I > still

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
When I had this problem, I KNOW that JAVA_HOME was set correctly. I still ran into the problem. The OP here also said JAVA_HOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use. -Original Message- From: Ashley Williams

RE: Java in JDK but ANT can't find it!

2009-05-14 Thread Cole, Derek E
So, I searched the internet for days trying to find out how to do this, and never could find a straight answer. If you or anyone else has a better way to do this, let me know, but I found two ways to make this work. The first way is to use the AntClassLoader API. I set up a Boolean true, a null pa

RE: Problem with Ant and MailLogger

2009-05-12 Thread Cole, Derek E
I am only slightly familiar with this, but don't you have to have a MailLogger.properties file defined and passed to the mail logger with -DMailLogger.properties.file= -Original Message- From: Richard, Troy [mailto:troy.rich...@blackhillscorp.com] Sent: Tuesday, May 12, 2009 4:09 PM To: u

RE: API for setting a property reference?

2009-05-12 Thread Cole, Derek E
Look at the property class in the Ant API. There is a setRefId method that might do what you're talking about. -Original Message- From: John Francis [mailto:jfran...@his.co.uk] Sent: Tuesday, May 12, 2009 11:21 AM To: user@ant.apache.org Subject: API for setting a property reference? H

Running ant programmatically using API

2009-05-11 Thread Cole, Derek E
Hi All. If I am creating an ANT project programmatically with the Java API, and I want my invoked instance of Ant to have the same classpath as my system, how can I do this? I have tried a few different things, but none seem to work. If there are any javac tasks in my build.xml files, it seems

Configure an ANT project in Java

2009-05-07 Thread Cole, Derek E
Hello all. I am trying to configure an Ant project from a Java class using the API. I have set up my Project like so antproject.init(); ProjectHelper helper = ProjectHelper.getProjectHelper(); antproject.addReference("ant.projectHelper", helper);

Configure an ANT project in Java

2009-05-07 Thread Cole, Derek E
Hello all. I am trying to configure an Ant project from a Java class using the API. I have set up my Project like so antproject.init(); ProjectHelper helper = ProjectHelper.getProjectHelper(); antproject.addReference("ant.projectHelper", helper);