bugfix in url parsing for HTTP.java
[org.ibex.core.git] / src / org / ibex / util / NanoGoat.java
index ab0e361..2b5b772 100644 (file)
@@ -53,7 +53,10 @@ public class NanoGoat {
         NanoGoat bcp = new NanoGoat();
         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         for(String s = br.readLine(); s != null; s = br.readLine()) {
+            s = s.trim();
+            if (s.length() == 0) continue;
             try {
+                if (s.endsWith("$")) s = s.substring(0, s.length() - 1);
                 if (s.endsWith(".class")) {
                     bcp.visitJavaClass(repo.loadClass(s.substring(0, s.length() - 6)));
                 } else {