You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Niklas Mehner <wo...@uni.de> on 2000/07/13 00:28:37 UTC
sorry my fault ...
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