|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.gwt.AbstractGwtMojo
public abstract class AbstractGwtMojo
Abstract Support class for all GWT-related operations.
Provide methods to build classpath for GWT SDK tools.
Field Summary | |
---|---|
protected ArtifactFactory |
artifactFactory
|
protected ClasspathBuilder |
classpathBuilder
|
static String |
GWT_GROUP_ID
GWT artifacts groupId |
protected boolean |
gwtSdkFirstInClasspath
The forked command line will use gwt sdk jars first in classpath. |
protected ArtifactRepository |
localRepository
|
protected List<ArtifactRepository> |
remoteRepositories
|
protected ArtifactResolver |
resolver
|
protected File |
warSourceDirectory
Location of the web application static resources (same as maven-war-plugin parameter) |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractGwtMojo()
|
Method Summary | |
---|---|
protected int |
addClasspathElements(Collection<?> elements,
URL[] urls,
int startPosition)
Add classpath elements to a classpath URL set |
protected void |
addCompileSourceRoot(File path)
|
Collection<File> |
getClasspath(String scope)
Build the GWT classpath for the specified scope |
File |
getGenerateDirectory()
|
protected File |
getGwtDevJar()
|
protected File |
getGwtUserJar()
|
ArtifactRepository |
getLocalRepository()
|
File |
getOutputDirectory()
|
MavenProject |
getProject()
|
Set<Artifact> |
getProjectArtifacts()
|
List<ArtifactRepository> |
getRemoteRepositories()
|
protected Artifact |
resolve(String groupId,
String artifactId,
String version,
String type,
String classifier)
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
public static final String GWT_GROUP_ID
protected ArtifactResolver resolver
protected ArtifactFactory artifactFactory
protected ClasspathBuilder classpathBuilder
protected ArtifactRepository localRepository
protected List<ArtifactRepository> remoteRepositories
protected File warSourceDirectory
protected boolean gwtSdkFirstInClasspath
Constructor Detail |
---|
public AbstractGwtMojo()
Method Detail |
---|
public File getOutputDirectory()
protected int addClasspathElements(Collection<?> elements, URL[] urls, int startPosition) throws MojoExecutionException
elements
- the initial URL seturls
- the urls to addstartPosition
- the position to insert URLS
MojoExecutionException
- some error occuredpublic Collection<File> getClasspath(String scope) throws MojoExecutionException
scope
- Artifact.SCOPE_COMPILE or Artifact.SCOPE_TEST
MojoExecutionException
- if classPath building failedprotected File getGwtDevJar() throws IOException
IOException
protected File getGwtUserJar() throws IOException
IOException
protected Artifact resolve(String groupId, String artifactId, String version, String type, String classifier) throws MojoExecutionException
MojoExecutionException
protected void addCompileSourceRoot(File path)
path
- file to add to the project compile directoriespublic MavenProject getProject()
public ArtifactRepository getLocalRepository()
public List<ArtifactRepository> getRemoteRepositories()
public File getGenerateDirectory()
public Set<Artifact> getProjectArtifacts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |