This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: fixed bug with testlet name extraction under Windows
- From: Fabien DUMINY <fduminy at jnode dot org>
- To: mauve-patches at sources dot redhat dot com
- Date: Tue, 11 Oct 2005 20:08:57 +0200
- Subject: FYI: fixed bug with testlet name extraction under Windows
2005-10-11 Fabien DUMINY <fduminy@jnode.org>
* gnu/testlet/runner/CreateTags.java : fixed bug with testlet name
extraction under Windows
Fabien.
Index: CreateTags.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/runner/CreateTags.java,v
retrieving revision 1.1
diff -u -r1.1 CreateTags.java
--- CreateTags.java 1 Jul 2005 18:33:43 -0000 1.1
+++ CreateTags.java 11 Oct 2005 18:03:36 -0000
@@ -130,7 +130,10 @@
tags = line;
}
else if(buf.indexOf("package ") == 0)
- pckage = buf.substring(8, buf.length()-1);
+ {
+ int idx = buf.lastIndexOf(";");
+ pckage = buf.substring(8, idx);
+ }
buf = new StringBuffer();
maxLines--;
}