ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <kevin.jack...@it.fts-vn.com>
Subject Re: regression in handling of <java> failures
Date Tue, 12 Apr 2005 10:23:33 GMT
Looks like it was there in Ant 1.5 final (Java.run()), but now it's missing

Here's a patch to fix this.

Kev

>
> I have it on reliable authority (chapter 5 of java development with 
> ant), that Ant1.5 would fail with a location error when you tried to 
> run <java> without a class on the classpath. But now I see a stack 
> trace and not a location:
>
>      [echo] running the diary program
>      [java] Could not find d1.core.DiaryMain. Make sure you have it in 
> your classpath
>      [java]     at 
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:178)
>      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:731)
>      [java]     at 
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:190)     
> [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:100)
>      [java]     at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>


Mime
View raw message