maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r454770 - /maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java
Date Tue, 10 Oct 2006 15:03:16 GMT
Author: jvanzyl
Date: Tue Oct 10 08:03:15 2006
New Revision: 454770

URL: http://svn.apache.org/viewvc?view=rev&rev=454770
Log:
o Add a method that can be used with booting with a ClassWorld, we will just create one when
the standard main method is invoked. Work required for Dan's new rework of the bootstrap to
make it dead simple to understand.

Modified:
    maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java

Modified: maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java?view=diff&rev=454770&r1=454769&r2=454770
==============================================================================
--- maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java (original)
+++ maven/components/trunk/maven-cli/src/main/java/org/apache/maven/cli/MavenCli.java Tue
Oct 10 08:03:15 2006
@@ -43,6 +43,13 @@
  */
 public class MavenCli
 {
+    public static int main( String[] args )
+    {
+        ClassWorld classWorld = new ClassWorld( "plexus.core", Thread.currentThread().getContextClassLoader()
);
+        
+        return main( args, classWorld );
+    }
+
     /**
      * @noinspection ConfusingMainMethod
      */



Mime
View raw message