Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.pmease.quickbuild.builder
Class MavenBuilder

    java.lang.Object
      com.pmease.quickbuild.builder.Builder
          com.pmease.quickbuild.builder.MavenBuilder

All Implemented Interfaces:
  java.io.Serializable

public class MavenBuilder
extends Builder

Maven builder implementation

Author:
  robin shine
See Also:
  Serialized Form

Constructor Summary
`MavenBuilder()`

Method Summary
`java.lang.String` | `constructBuildCmd(Build build)` Construct mavenExecutablePath to run ant
`java.lang.String` | `constructBuildCmdDir(Build build)` Constructs the directory to run build command in
`java.util.Map` | `getBuildProperties()` OGNL: Define build properties here to pass into Maven.
`java.lang.String` | `getDirToRunMaven()` OGNL: Specify the directory to run Maven in.
`java.lang.String` | `getExtraMavenOptions()` Optionally specify extra Maven options.
`java.lang.String` | `getGoals()` OGNL: Specify the goals to build.
`java.lang.String` | `getMavenExecutablePath()` OGNL: Specify command to run maven.
`void` | `setBuildProperties(java.util.Map buildProperties)`
`void` | `setDirToRunMaven(java.lang.String dirToRunMaven)`
`void` | `setExtraMavenOptions(java.lang.String extraMavenOptions)`
`void` | `setGoals(java.lang.String goals)`
`void` | `setMavenExecutablePath(java.lang.String mavenExecutablePath)`

Methods inherited from class com.pmease.quickbuild.builder.Builder
`equals, execute, getBuildSuccessCondition, getBuildSuccessConditionChoices, getEditor, getEnvironments, getName, getNameChoices, getResult, hashCode, logContainsLine, setBuildSuccessCondition, setEditor, setEnvironments, setName, validate`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MavenBuilder

    public MavenBuilder()

Method Detail

### getMavenExecutablePath

    public java.lang.String getMavenExecutablePath()

  OGNL: Specify command to run maven. For example, \"C:\\Program Files\\Apache Software Foundation\\Maven 1.0.2\\bin\\maven.bat\"
  NOTE: Command or arguement with spaces should be quoted.

  Returns:

### setMavenExecutablePath

    public void setMavenExecutablePath(java.lang.String mavenExecutablePath)

### getDirToRunMaven

    public java.lang.String getDirToRunMaven()

  OGNL: Specify the directory to run Maven in. If this path is not an absolute path, it is assumed to be relative to the current configuration's checkouts directory. Defaults to current configuration's checkouts directory if this property is left empty.

  Returns:

### setDirToRunMaven

    public void setDirToRunMaven(java.lang.String dirToRunMaven)

### getGoals

    public java.lang.String getGoals()

  OGNL: Specify the goals to build. Use space to separate different goals (goal name containing spaces should be quoted in order not to be interpreted as multiple goals). You can also use ${...} to pass OGNL variables as the goal name. For valid OGNL expressions in this context, please refer to user's guide.

  Returns:

### setGoals

    public void setGoals(java.lang.String goals)

### getBuildProperties

    public java.util.Map getBuildProperties()

  OGNL: Define build properties here to pass into Maven. For example:
  buildVersion=${build.version}
  configurationName=${name}
  You should set one variable per line. OGNL expression can be inserted to form the value provided they are enclosed by ${...}. For valid OGNL expressions in this context, please refer to the user's guide.

  Returns:

### setBuildProperties

    public void setBuildProperties(java.util.Map buildProperties)

### constructBuildCmd

    public java.lang.String constructBuildCmd(Build build)

  Construct mavenExecutablePath to run ant

  Specified by:
    `constructBuildCmd` in class `Builder`
  Returns:

### constructBuildCmdDir

    public java.lang.String constructBuildCmdDir(Build build)

  Description copied from class: `Builder`
  Constructs the directory to run build command in

  Specified by:
    `constructBuildCmdDir` in class `Builder`
  Returns:
    the directory to run build command in. Null if do not care where to run build command

### getExtraMavenOptions

    public java.lang.String getExtraMavenOptions()

  Optionally specify extra Maven options.

  Returns:

### setExtraMavenOptions

    public void setExtraMavenOptions(java.lang.String extraMavenOptions)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 PMEase Inc. All Rights Reserved.