BUILD FAILED messages in output when using tasks

2009-06-17 Thread 5dark
Hey all. I notice when using the task if a exception or error occurs in the Ant project then the error doesn't show up in the task's output file (in this example "mylog.txt"). EG: with ant code: The output is (ignore the line numbers):

Re: oddity

2009-06-17 Thread Gilbert Rebhan
Stefan Bodewig schrieb: > On 2009-06-17, Rebhan, Gilbert wrote: > >> It wasn't an issue with jdk, but the processNode Method in XmlProperty > >> if (nodeText.trim().length() != 0 || emptyNode) { >> addProperty(prefix, nodeText, id); >> } > >> when trim removes all whi

Re: delete directory structures older than X days

2009-06-17 Thread Dominique Devienne
On Tue, Jun 16, 2009 at 11:30 AM, Shawn Castrianni wrote: > I needed something similar.  Both of our requirements requires the age of a > file/directory to be determined.  Therefore, the easiest approach I found was > to write my own ANT condition.  By writing a condition, you can use it inside

Re: oddity

2009-06-17 Thread Stefan Bodewig
On 2009-06-17, Rebhan, Gilbert wrote: > It wasn't an issue with jdk, but the processNode Method in XmlProperty > if (nodeText.trim().length() != 0 || emptyNode) { > addProperty(prefix, nodeText, id); > } > when trim removes all white spaces, so it works with > if (n

Classpath issue with javac task

2009-06-17 Thread Zanzerkia, Robert
I am using Ant 1.6.5. The problem I am running into is that a wrong class is loaded. I have IBM RAD installed on the system and it is using the class from that directory tree. I have setup my own classpath in the build.xml and it does not include C:\IBM... entries. So how can I prevent javac pic

AW: delete directory structures older than X days

2009-06-17 Thread Sascha Ernst
Hello again, forget it. I'll write a small java program which does the stuff I want and call it directly from ant. It's less work and more flexible to me... Regards ///Sascha/// -Ursprüngliche Nachricht- Von: Sascha Ernst [mailto:sascha.er...@living-e.com] Gesendet: Mittwoch, 17. Ju

RE: oddity

2009-06-17 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert Sent: Wednesday, June 17, 2009 1:58 PM To: 'Ant Users List' Subject: RE: oddity /* Bugreport opened, Patch attached = https://issues.apache.org/bugzilla/show_bug.cgi?id=47381 [...] Works with ant 1.7.1, jdk 1.5.0_11 and jdk 1.6.0_07 on Windo

RE: oddity

2009-06-17 Thread Rebhan, Gilbert
-Original Message- From: Stefan Bodewig [mailto:bode...@apache.org] Sent: Wednesday, June 17, 2009 9:49 AM To: user@ant.apache.org Subject: Re: oddity /* On 2009-06-16, Rebhan, Gilbert wrote: > Conclusion = there seems to be a difference related to the handling > of txt- and xmlpr

AW: delete directory structures older than X days

2009-06-17 Thread Sascha Ernst
Hello again, thanks for this. Still I've got some question: The preset value of _age seems to be some kind of magic number which is only used to check out if it has been set to another value. Is this correct? What would be the best way to use this condition? My first idea looks like this: forea

AW: delete directory structures older than X days

2009-06-17 Thread Sascha Ernst
Hello, this tasks does not do what I want. 1) it builds a huuuge fileset (a complete building session ends with ~300K files and more than 10GB) 2) it leaves newer files (which might be touched during debugging of failed builds) 3) it deletes newer folders if the content is older than the date M

Re: replace version info in maven2 pom with ant

2009-06-17 Thread Michael Alsen
http://n2.nabble.com/transform-xml-to-xml-using-xslt-and-ant-tp3092022p3092022.html -- View this message in context: http://www.nabble.com/replace-version-info-in-maven2-pom-with-ant-tp24035984p24071514.html Sent from the Ant - Users mailing list archive at Nabble.com.

Re: oddity

2009-06-17 Thread Stefan Bodewig
On 2009-06-16, Rebhan, Gilbert wrote: > Conclusion = there seems to be a difference related to the handling > of txt- and xmlproperties on different platforms, maybe it's caused > by jdk/jre ? Looked like a Java5/Java6 difference, maybe inside the XML parser. > Should i open a bugreport ? Yes,

Re: about scriptdef

2009-06-17 Thread Avlesh Singh
This might help - http://www.sitepen.com/blog/2001/09/25/javascript-and-ant/ You can use simple javascript for control structure in your case. Cheers Avlesh 2009/6/16 China Creatxr > > > > >

about scriptdef

2009-06-17 Thread China Creatxr