Package 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
@Component(role=ClasspathBuilder.class) public class ClasspathBuilder extends org.codehaus.plexus.logging.AbstractLogEnabled
Util to consolidate classpath manipulation stuff in one place.- Version:
- $Id$
- Author:
- ccollins
-
-
Constructor Summary
Constructors Constructor Description ClasspathBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourcesWithActiveProjects(org.apache.maven.project.MavenProject project, java.util.Collection<java.io.File> items, java.lang.String scope)Add all sources and resources also with active (maven reactor active) referenced project sources and resources.voidaddSourcesWithActiveProjects(org.apache.maven.project.MavenProject project, java.util.Collection<java.io.File> items, java.lang.String scope)Add all sources and resources also with active (maven reactor active) referenced project sources and resources.java.util.Collection<java.io.File>buildClasspathList(org.apache.maven.project.MavenProject project, java.lang.String scope, java.util.Set<org.apache.maven.artifact.Artifact> artifacts, boolean isGenerator)Build classpath list using either gwtHome (if present) or using *project* dependencies.
-
-
-
Method Detail
-
buildClasspathList
public java.util.Collection<java.io.File> buildClasspathList(org.apache.maven.project.MavenProject project, java.lang.String scope, java.util.Set<org.apache.maven.artifact.Artifact> artifacts, boolean isGenerator) throws ClasspathBuilderExceptionBuild 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 useisGenerator- whether to use processed resources and compiled classes (false), or raw resources (true).- Returns:
- file collection for classpath
- Throws:
ClasspathBuilderException
-
addSourcesWithActiveProjects
public void addSourcesWithActiveProjects(org.apache.maven.project.MavenProject project, java.util.Collection<java.io.File> items, java.lang.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(org.apache.maven.project.MavenProject project, java.util.Collection<java.io.File> items, java.lang.String scope)Add all sources and resources also with active (maven reactor active) referenced project sources and resources.- Parameters:
project-items-scope-
-
-