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:
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.
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
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
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 =
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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]
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
22 matches
Mail list logo