org.codehaus.mojo.gwt
Class ClasspathBuilder
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.gwt.ClasspathBuilder
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled
public class ClasspathBuilder
- extends org.codehaus.plexus.logging.AbstractLogEnabled
Util to consolidate classpath manipulation stuff in one place.
- Version:
- $Id: ClasspathBuilder.java 13196 2010-11-25 16:39:40Z olamy $
- Author:
- ccollins
- Plexus component:
- role:
- "org.codehaus.mojo.gwt.ClasspathBuilder"
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathBuilder
public ClasspathBuilder()
buildClasspathList
public Collection<File> buildClasspathList(MavenProject project,
String scope,
Set<Artifact> artifacts)
throws ClasspathBuilderException
- Build classpath list using either gwtHome (if present) or using *project* dependencies. Note that this is ONLY
used for the script/cmd writers (so the scopes are not for the compiler, or war plugins, etc). This is required
so that the script writers can get the dependencies they need regardless of the Maven scopes (still want to use
the Maven scopes for everything else Maven, but for GWT-Maven we need to access deps differently - directly at
times).
- Parameters:
project
- The maven project the Mojo is running forartifacts
- the project artifacts (all scopes)scope
- artifact scope to use
- Returns:
- file collection for classpath
- Throws:
MojoExecutionException
ClasspathBuilderException
addSourcesWithActiveProjects
public void addSourcesWithActiveProjects(MavenProject project,
Collection<File> items,
String scope)
- Add all sources and resources also with active (maven reactor active) referenced project sources and resources.
- Parameters:
project
- items
- scope
-
addResourcesWithActiveProjects
public void addResourcesWithActiveProjects(MavenProject project,
Collection<File> items,
String scope)
- Add all sources and resources also with active (maven reactor active) referenced project sources and resources.
- Parameters:
project
- items
- scope
-
Copyright © 2007-2012 Codehaus. All Rights Reserved.