AW: using mapper element to make a file name proper case

2007-01-02 Thread Jan.Materne
And what will be helloworld.java ? HelloWorld.java, Helloworld.java I think that's difficult because of camelcase notation. Jan -Ursprüngliche Nachricht- Von: Sunil [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 27. Dezember 2006 23:29 An: user@ant.apache.org Betreff:

Re: Compiling Apache-ant

2007-01-02 Thread Antoine Levy-Lambert
Hello Hussam, you should place junit under lib/optional. Regards, Antoine On Jan 1, 2007, at 9:02 AM, Hussam Al-Tayeb wrote: I'm trying to build apache-ant with jdk1.6 It says it needs junit. where do I place junit? -- Regards, Hussam Al-Tayeb.

Re: Custom processor for Xslt task?

2007-01-02 Thread Dominique Devienne
On 12/30/06, Trevor Harmon [EMAIL PROTECTED] wrote: I'm trying to use Saxon instead of the built-in Xalan processor for the Xslt task. Supposedly, all I have to do is specify a classpath when calling the task [1], but I've never been able to get this to work. Ant always finds the built-in

JavaDocs for the new year?

2007-01-02 Thread Eric Crahen
Do you think that is would be possible to get the JavaDocs online for the new year? This link has been broken for so long... http://ant.apache.org/manual/api/index.html -- - Eric

ANT task to process properties-files into static class

2007-01-02 Thread Rapthor
Hi, I think this problem is very interesting. I have a web application that needs various configuration. I'm using a properties file that is loaded into a Properties-class. The problem arrises when runtime exceptions are thrown (NullPointerException) by using: String value =

Re: ANT task to process properties-files into static class

2007-01-02 Thread Scot P. Floess
If a property does not exist, why is a null pointer thrown? I assume you mean java.util.Properties? If so, that does not raise a null pointer exception. Rapthor wrote: Hi, I think this problem is very interesting. I have a web application that needs various configuration. I'm using a

Re: ANT task to process properties-files into static class

2007-01-02 Thread Donald McLean
Really? That sounds like a case of The cure is worse than the disease. I can't imagine a single case where something like that would be a better solution than the three or four techniques for providing static attributes that I'm already familiar with. However, of course, YMMV. Rapthor

java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Alasdair Young
Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to get junit to run my tests via ant, I get the

Re: ANT task to process properties-files into static class

2007-01-02 Thread Rapthor
Donald McLean wrote: Really? That sounds like a case of The cure is worse than the disease. I can't imagine a single case where something like that would be a better solution than the three or four techniques for providing static attributes that I'm already familiar with. However,

Re: ANT task to process properties-files into static class

2007-01-02 Thread Rapthor
Scot P. Floess wrote: If a property does not exist, why is a null pointer thrown? I assume you mean java.util.Properties? If so, that does not raise a null pointer exception. You are right ... the NullPointerException would be thrown if I relied on a value read from the Properties

Re: ANT task to process properties-files into static class

2007-01-02 Thread Rapthor
Rapthor wrote: Donald McLean wrote: Really? That sounds like a case of The cure is worse than the disease. I can't imagine a single case where something like that would be a better solution than the three or four techniques for providing static attributes that I'm already familiar

Re: ANT task to process properties-files into static class

2007-01-02 Thread Scot P. Floess
Sorry, I'm not sure I follow your problem... Do you mean Ant should somehow generate a properties file based upon your build.xml properties? Who sets the properties and how is this null pointer being raised? I am a wee bit confused ;) Rapthor wrote: Scot P. Floess wrote: If a property

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Alasdair Young
Thanks for the fast response! I don't think that's it - ./build-tests should be in there - 3rd from the end. any other ideas perhaps? - alasdair Scot P. Floess wrote: Looks like you need to put ./build-tests in your path element. pathelement

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Scot P. Floess
Oops - my bad...no line wrap :( Well something else to try, add the path to build-tests as part of the path... For instance if build-tests exists as /foo/bar/build-test, put /foo/bar/build-tests in as a path element... Or try using pathelement path = / instead of pathelement location

Re: ANT task to process properties-files into static class

2007-01-02 Thread Rapthor
Sorry, having confused you. I have a file named global.properties. This file is edited manually by me. The webapplication loads this file into a java.util.Properties-instance at start. Everywhere I use this Properties instance like props.getProperty(myProp) I have to check whether a null is

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Hussam Al-Tayeb
On 1/2/07, Alasdair Young [EMAIL PROTECTED] wrote: Hi! I'm trying to set up some automated builds for the first time here and I'm using a legacy ant build script that I've been hacking away at to get junit working. I am running ant 1.7, Junit 4.1 and java 1.5 on fedora core 5. When I try to

Re: ANT task to process properties-files into static class

2007-01-02 Thread Alexey N. Solofnenko
It seems a trivial task to generate a Java source file from a property with scripdef. - Alexey. Rapthor wrote: Sorry, having confused you. I have a file named global.properties. This file is edited manually by me. The webapplication loads this file into a java.util.Properties-instance at

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Alasdair Young
export CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar just out of interest, can my junit.jar file be called junit-4.1.jar? Or it MUST be called junit.jar? - alasdair Hussam Al-Tayeb wrote: On 1/2/07, Alasdair Young [EMAIL PROTECTED] wrote: Hi! I'm trying to set up some automated builds for

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Alasdair Young
Incidentally, this did _not_ work for me, but thank you anyway! - alasdair Hussam Al-Tayeb wrote: I solved this by doing export CLASSPATH=$CLASSPATH:$ANT_HOME/lib/junit.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: java.lang.ClassNotFoundException when running junit task

2007-01-02 Thread Alasdair Young
It worked!! I used: pathelement path = / instead of pathelement location = / and it worked! I have no idea why it worked (This is my first major reworking of an ant buildfile that someone other than myself wrote) but it worked! Thank you very much! - alasdair Alasdair Young Scot

Re: ANT task to process properties-files into static class

2007-01-02 Thread James Abley
If that's the sort of thing you're after, Log4J has a similar mechanism which can monitor the config file and polls to see if it needs to reload the configuration. [1] I think that would provide a template for you. YMMV. Cheers, James [1]

Re: Custom processor for Xslt task?

2007-01-02 Thread Trevor Harmon
On Jan 2, 2007, at 7:58 AM, Dominique Devienne wrote: On 12/30/06, Trevor Harmon [EMAIL PROTECTED] wrote: I'm trying to use Saxon instead of the built-in Xalan processor for the Xslt task. Supposedly, all I have to do is specify a classpath when calling the task [1], but I've never been able