Author: jvanzyl Date: Mon Sep 26 14:30:03 2005 New Revision: 291752 URL: http://svn.apache.org/viewcvs?rev=291752&view=rev Log: o sketch of how the code in here might be replaced with the embedder
Modified: maven/components/trunk/sandbox/maven-it-plugin/src/main/java/org/apache/maven/plugin/it/ForkMojo.java Modified: maven/components/trunk/sandbox/maven-it-plugin/src/main/java/org/apache/maven/plugin/it/ForkMojo.java URL: http://svn.apache.org/viewcvs/maven/components/trunk/sandbox/maven-it-plugin/src/main/java/org/apache/maven/plugin/it/ForkMojo.java?rev=291752&r1=291751&r2=291752&view=diff ============================================================================== --- maven/components/trunk/sandbox/maven-it-plugin/src/main/java/org/apache/maven/plugin/it/ForkMojo.java (original) +++ maven/components/trunk/sandbox/maven-it-plugin/src/main/java/org/apache/maven/plugin/it/ForkMojo.java Mon Sep 26 14:30:03 2005 @@ -1,7 +1,7 @@ package org.apache.maven.plugin.it; /* - * Copyright 2001-2004 The Apache Software Foundation. + * Copyright 2001-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.project.ProjectBuildingException; import org.apache.maven.settings.Settings; +import org.apache.maven.embedder.MavenEmbedder; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import org.codehaus.plexus.util.DirectoryScanner; import org.codehaus.plexus.util.dag.CycleDetectedException; @@ -84,6 +85,24 @@ public void execute() throws MojoExecutionException { + // ---------------------------------------------------------------------- + // Here we will try to use the embedder + // ---------------------------------------------------------------------- + // + // ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); + // + // MavenEmbedder maven = new MavenEmbedder(); + // + // maven.setClassLoader( classLoader ); + // + // maven.start(); + // + // List projects = maven.collectProjects( integrationTestsDirectory, includes, excludes ); + // + // maven.execute( projects, Collections.singletonList( "package" ), eventDispatcher, integrationTestsDirectory ); + // + + try { buildProjects(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]