ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Mehner" <wom...@uni.de>
Subject sorry my fault ...
Date Wed, 12 Jul 2000 22:28:37 GMT
I didn't see that the changes were already in CVS ...

but with the current nightly build, when specifying a classname I get 
the exception : 

java.lang.StringIndexOutOfBoundsException: String index out of range: 
-1
        at java.lang.String.substring(Unknown Source)
        at 
org.apache.tools.ant.taskdefs.Rmic.shouldCompile(Rmic.java:326)
        at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:190)
        at org.apache.tools.ant.Target.execute(Target.java:127)
        at org.apache.tools.ant.Project.runTarget(Project.java:708)
        at 
org.apache.tools.ant.Project.executeTarget(Project.java:439)
        at 
org.apache.tools.ant.Project.executeTargets(Project.java:413)
        at org.apache.tools.ant.Main.runBuild(Main.java:278)
        at org.apache.tools.ant.Main.main(Main.java:107)

This is probably because shouldCompile() is called for a file, 
without the .class extension :

(line 190)
if (shouldCompile(new File(baseDir, classname.replace('.', 
File.separatorChar)))) {
     
Niklas

Mime
View raw message