org.codehaus.mojo.appassembler
Class AssembleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.appassembler.AssembleMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class AssembleMojo
extends AbstractMojo

Assembles the artifacts and generates bin scripts for the configured applications

Version:
$Id: AssembleMojo.java 12569 2010-09-15 20:26:27Z dennisl $
Author:
Kristian Nordal
Is defined by the goal name:
assemble
Is bound to the specified phase of the standard build lifecycle:
package
Requires the dependencies in this specified scope:
runtime

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()
           
static List parseTokens(String arg)
           
 void setAvailableRepositoryLayouts(Map availableRepositoryLayouts)
           
protected  void setBinFileExtensions()
          Set the extensions for bin files for the supported platforms.
 void validate(Set defaultPlatforms)
           
 
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
Is defined by:
Constructor Detail

AssembleMojo

public AssembleMojo()
Method Detail

validate

public void validate(Set defaultPlatforms)
              throws MojoFailureException,
                     MojoExecutionException
Throws:
MojoFailureException
MojoExecutionException

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Throws:
MojoExecutionException
MojoFailureException

parseTokens

public static List parseTokens(String arg)

setAvailableRepositoryLayouts

public void setAvailableRepositoryLayouts(Map availableRepositoryLayouts)

setBinFileExtensions

protected void setBinFileExtensions()
                             throws MojoFailureException
Set the extensions for bin files for the supported platforms. The values are taken from the Mojo's binFileExtensions parameter.

Throws:
MojoFailureException


Copyright © 2006-2011 Codehaus. All Rights Reserved.