org.codehaus.mojo.appassembler
Class AssembleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.appassembler.AbstractAppAssemblerMojo
          extended by org.codehaus.mojo.appassembler.AssembleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class AssembleMojo
extends AbstractAppAssemblerMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Assembles the artifacts and generates bin scripts for the configured applications

Version:
$Id: AssembleMojo.java 17472 2012-09-09 08:29:42Z dennisl $
Author:
Kristian Nordal

Field Summary
protected  Map binFileExtensions
          The file extensions to use for bin files.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AssembleMojo()
           
 
Method Summary
 void contextualize(org.codehaus.plexus.context.Context context)
          
 void execute()
           
 boolean isProjectArtifactFirstInClassPath()
          Be the project the first artifact in classpath or not.
 boolean isUseAllDependencies()
          Deprecated. use isUseAllProjectDependencies() instead.
 boolean isUseAllProjectDependencies()
          Should all project dependencies be used incl.
 boolean isUseAsterikClassPath()
          Deprecated. use isUseWildcardClassPath() instead.
 boolean isUseWildcardClassPath()
          Should the /* part for the classpath be used or not.
static List parseTokens(String arg)
          This will tokenize the given argument or give the extraJvmArguments back if the given argument is empty.
 void setProjectArtifactFirstInClassPath(boolean projectArtifactFirstInClassPath)
          Set if the project should be the artifact at first position or not.
 void setUseAllDependencies(boolean useAllDependencies)
          Deprecated. use setUseAllProjectDependencies(boolean) instead.
 void setUseAllProjectDependencies(boolean useAllProjectDependencies)
          Define if all project dependencies should be used or not.
 void setUseAsterikClassPath(boolean useAsterikClassPath)
          Deprecated. use setUseWildcardClassPath(boolean) instead.
 void setUseWildcardClassPath(boolean useWildcardClassPath)
          Use wildcard classpath or not.
 
Methods inherited from class org.codehaus.mojo.appassembler.AbstractAppAssemblerMojo
installArtifact, installArtifact
 
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
 

Field Detail

binFileExtensions

protected Map binFileExtensions
The file extensions to use for bin files. The file extensions are stored in a Map that uses the platform name as key. To change the file extension for Unix bin files to ".sh" use this configuration:
          <binFileExtensions>
            <unix>.sh</unix>
          </binFileExtensions>
 

Since:
1.1
Constructor Detail

AssembleMojo

public AssembleMojo()
Method Detail

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException

Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

parseTokens

public static List parseTokens(String arg)
This will tokenize the given argument or give the extraJvmArguments back if the given argument is empty.

Parameters:
arg - The argument to parse.
Returns:
List of arguments.

isProjectArtifactFirstInClassPath

public boolean isProjectArtifactFirstInClassPath()
Be the project the first artifact in classpath or not.

Returns:
true if the project should be the first artifact in classpath false otherwise.

setProjectArtifactFirstInClassPath

public void setProjectArtifactFirstInClassPath(boolean projectArtifactFirstInClassPath)
Set if the project should be the artifact at first position or not.

Parameters:
projectArtifactFirstInClassPath - true if the project artifact will be first false otherwise.

isUseAllDependencies

public boolean isUseAllDependencies()
Deprecated. use isUseAllProjectDependencies() instead.

Should all dependencies be used incl. system scoped.

Returns:
true if set to yes false otherwise.

setUseAllDependencies

public void setUseAllDependencies(boolean useAllDependencies)
Deprecated. use setUseAllProjectDependencies(boolean) instead.

Define if all dependencies should be used or not.

Parameters:
useAllDependencies - true to activate false otherwise.

isUseAllProjectDependencies

public boolean isUseAllProjectDependencies()
Should all project dependencies be used incl. system scoped.

Returns:
true if we will use all project dependencies false otherwise.

setUseAllProjectDependencies

public void setUseAllProjectDependencies(boolean useAllProjectDependencies)
Define if all project dependencies should be used or not.

Parameters:
useAllProjectDependencies - true to activate false otherwise.

isUseAsterikClassPath

public boolean isUseAsterikClassPath()
Deprecated. use isUseWildcardClassPath() instead.

Should the /* part for the classpath be used or not.

Returns:
true if the asterik-classpath will be used false otherwise.

setUseAsterikClassPath

public void setUseAsterikClassPath(boolean useAsterikClassPath)
Deprecated. use setUseWildcardClassPath(boolean) instead.

Use asterik-classpath or not.

Parameters:
useAsterikClassPath - true to use asterik classpath false otherwise.

isUseWildcardClassPath

public boolean isUseWildcardClassPath()
Should the /* part for the classpath be used or not.

Returns:
true if the wild card class path will be used false otherwise.

setUseWildcardClassPath

public void setUseWildcardClassPath(boolean useWildcardClassPath)
Use wildcard classpath or not.

Parameters:
useWildcardClassPath - true to use wildcard classpath false otherwise.


Copyright © 2006-2012 Codehaus. All Rights Reserved.