maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven Maven.java
Date Sat, 17 Apr 2004 15:18:21 GMT
jvanzyl     2004/04/17 08:18:21

  Modified:    maven-core/src/main/java/org/apache/maven Maven.java
  Removed:     maven-core project.properties
  Log:
  o adding another constructor to the POJO facade for the mevenide folks.
  
  Revision  Changes    Path
  1.10      +17 -1     maven-components/maven-core/src/main/java/org/apache/maven/Maven.java
  
  Index: Maven.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/Maven.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Maven.java	16 Apr 2004 13:56:09 -0000	1.9
  +++ Maven.java	17 Apr 2004 15:18:20 -0000	1.10
  @@ -40,7 +40,23 @@
   {
       private MavenCore maven;
   
  +    public Maven( String mavenHome )
  +        throws Exception
  +    {
  +        ClassWorld classWorld = new ClassWorld();
  +
  +        classWorld.newRealm( "root", Thread.currentThread().getContextClassLoader() );
  +
  +        initialize( mavenHome, classWorld );
  +    }
  +
       public Maven( String mavenHome, ClassWorld classWorld )
  +        throws Exception
  +    {
  +        initialize( mavenHome, classWorld );
  +    }
  +
  +    public void initialize( String mavenHome, ClassWorld classWorld )
           throws Exception
       {
           Embedder embedder = new Embedder();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message