harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r452205 - /incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
Date Mon, 02 Oct 2006 20:48:12 GMT
Author: geirm
Date: Mon Oct  2 13:48:12 2006
New Revision: 452205

URL: http://svn.apache.org/viewvc?view=rev&rev=452205
Log:
HARMONY-1622

Allow users to put a "/" separator in the MainClass entry in jars.



Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java?view=diff&rev=452205&r1=452204&r2=452205
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
(original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/org/apache/harmony/vm/JarRunner.java
Mon Oct  2 13:48:12 2006
@@ -60,6 +60,8 @@
         if (className == null || className.length() == 0) {
             throw new Exception ("Empty/Null Main-class specified in " + jarName);
         }
+
+        className = className.replace('/', '.');
         
         /*
          *  load class, copy the args (skipping the first that is the jarname)



Mime
View raw message