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

public class AssembleMojo
extends AbstractAppAssemblerMojo

Assembles the artifacts and generates bin scripts for the configured applications

Version:
$Id: AssembleMojo.java 16492 2012-04-29 18:26:21Z khmarbaise $
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 execute()
           
 boolean isProjectArtifactFirstInClassPath()
          Be the project the first artifact in classpath or not.
 boolean isUseAllDependencies()
          Should all dependencies be used incl.
 boolean isUseAsterikClassPath()
          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 setAvailableRepositoryLayouts(Map availableRepositoryLayouts)
          Set the available repository layouts.
 void setProjectArtifactFirstInClassPath(boolean projectArtifactFirstInClassPath)
          Set if the project should be the artifact at first position or not.
 void setUseAllDependencies(boolean useAllDependencies)
          Define if all dependencies should be used or not.
 void setUseAsterikClassPath(boolean useAsterikClassPath)
          Use asterik-classpath or not.
 
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

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
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.

setAvailableRepositoryLayouts

public void setAvailableRepositoryLayouts(Map availableRepositoryLayouts)
Set the available repository layouts.

Parameters:
availableRepositoryLayouts - The repository layouts which are available.

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()
Should all dependencies be used incl. system scoped.

Returns:
true if set to yes false otherwise.

setUseAllDependencies

public void setUseAllDependencies(boolean useAllDependencies)
Define if all dependencies should be used or not.

Parameters:
useAllDependencies - true to activate false otherwise.

isUseAsterikClassPath

public boolean isUseAsterikClassPath()
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)
Use asterik-classpath or not.

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


Copyright © 2006-2012 Codehaus. All Rights Reserved.