This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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--;
                     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]