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

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] http://logging.apache.org/log4j/docs/api/org/apache/

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
It worked!! I used: > > > instead of > > 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 P. Floess wrote: > Oops - my bad...no line

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] Fo

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 bu

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 . - 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 start. Eve

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 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" i

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 instead of I think the problem is you need to use the

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. > > location="./build-tests:.:../java/build:../thirdParty/si

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: 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

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 Propertie

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Scot P. Floess
Looks like you need to put ./build-tests in your path element. Alasdair Young wrote: I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? -

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. > > H

Re: "java.lang.ClassNotFoundException" when running junit task

2007-01-02 Thread Alasdair Young
I should also mention that ./build-tests/com/vigilos/apps/setup/TestScheduledtlTableModel.class exists and is the class I wish to run. Hmm... could it be an issue with not looking in the right directory? - alasdair Alasdair Young wrote: > Hi! > > I'm trying to set up some automated builds for th

"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 following:

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 wrot

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 proper

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 = props.getProperty("

Re: Odd Behavior

2007-01-02 Thread Res Pons
Thanks for your reply. I was using AnthillOS for a while but I gave up in frustration. It's a kiddy tool for starters but very easy to use, however, the developers of it were so agonizingly slow to implement features, I gave up. Now I'm reading on CruiseControl. I read a bit about Maven but

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

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 proce

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. -

AW: Compiling Apache-ant

2007-01-02 Thread Jan.Materne
Place in ANT\lib\optional or build with -lib path-to-you-junit-directory option. See: http://ant.apache.org/manual/running.html#libs Jan >-Ursprüngliche Nachricht- >Von: Hussam Al-Tayeb [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 1. Januar 2007 16:07 >An: user@ant.apache.org >B

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 >Betre

Re: Build fails with Ant 1.7.0

2007-01-02 Thread Petar Tahchiev
On 02/01/07, Peter Reilly <[EMAIL PROTECTED]> wrote: I have committed a fix, should be in the next nightly build. Peter On 1/1/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > On 1/1/07, Petar Tahchiev <[EMAIL PROTECTED]> wrote: > > Hi guys, > > > > First of all Happy New Year to all of you. > > >