org.appfuse.mojo.installer
Class InstallSourceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.appfuse.mojo.installer.InstallSourceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InstallSourceMojo
extends org.apache.maven.plugin.AbstractMojo

This mojo is used to "install" source artifacts from Subversion into an AppFuse project. If you get an OutOfMemoryError when running this plugin, you should be able to fix it by setting your MAVEN_OPTS environment variable to "-Xms128M -Xmx256M".

Author:
Matt Raible

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InstallSourceMojo()
           
 
Method Summary
protected  org.apache.tools.ant.taskdefs.LoadFile createLoadFileTask(String inFile, String propName)
          This method will create an ANT based LoadFile task based on an infile and a property name.
 void execute()
           
protected  void moveFiles(String inSourceDirectory, String inDestinationDirectory, String inPattern)
          This method will movie files from the source directory to the destination directory based on the pattern.
 
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
 

Constructor Detail

InstallSourceMojo

public InstallSourceMojo()
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

createLoadFileTask

protected org.apache.tools.ant.taskdefs.LoadFile createLoadFileTask(String inFile,
                                                                    String propName)
This method will create an ANT based LoadFile task based on an infile and a property name. The property will be loaded with the infile for use later by the Replace task.

Parameters:
inFile - The file to process
propName - the name to assign it to
Returns:
The ANT LoadFile task that loads a property with a file

moveFiles

protected void moveFiles(String inSourceDirectory,
                         String inDestinationDirectory,
                         String inPattern)
This method will movie files from the source directory to the destination directory based on the pattern.

Parameters:
inSourceDirectory - The source directory to copy from.
inDestinationDirectory - The destination directory to copy to.
inPattern - The file pattern to match to locate files to copy.


Copyright © 2003-2012. All Rights Reserved.