org.apache.maven.plugin.ant
Class AntBuildWriter

java.lang.Object
  extended by org.apache.maven.plugin.ant.AntBuildWriter

public class AntBuildWriter
extends Object

Write Ant build files from Maven Project for Ant 1.6.2 or above:

Version:
$Id: AntBuildWriter.java 831567 2009-10-31 17:14:41Z bentmann $
Author:
Brett Porter, Vincent Siveton

Field Summary
protected static String DEFAULT_BUILD_FILENAME
          The default build file name (build.xml)
protected static int DEFAULT_INDENTATION_SIZE
          The default line indenter
protected static String DEFAULT_MAVEN_BUILD_FILENAME
          The default generated build file name
protected static String DEFAULT_MAVEN_PROPERTIES_FILENAME
          The default build properties file name
 
Constructor Summary
AntBuildWriter(org.apache.maven.project.MavenProject project, ArtifactResolverWrapper artifactResolverWrapper, org.apache.maven.settings.Settings settings, boolean overwrite, Properties executionProperties)
           
 
Method Summary
protected  void writeBuildProperties()
          Generate maven-build.properties only for a non-POM project
protected  void writeBuildXmls()
          Generate Ant build XML files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INDENTATION_SIZE

protected static final int DEFAULT_INDENTATION_SIZE
The default line indenter

See Also:
Constant Field Values

DEFAULT_BUILD_FILENAME

protected static final String DEFAULT_BUILD_FILENAME
The default build file name (build.xml)

See Also:
Constant Field Values

DEFAULT_MAVEN_BUILD_FILENAME

protected static final String DEFAULT_MAVEN_BUILD_FILENAME
The default generated build file name

See Also:
Constant Field Values

DEFAULT_MAVEN_PROPERTIES_FILENAME

protected static final String DEFAULT_MAVEN_PROPERTIES_FILENAME
The default build properties file name

See Also:
Constant Field Values
Constructor Detail

AntBuildWriter

public AntBuildWriter(org.apache.maven.project.MavenProject project,
                      ArtifactResolverWrapper artifactResolverWrapper,
                      org.apache.maven.settings.Settings settings,
                      boolean overwrite,
                      Properties executionProperties)
Parameters:
project -
artifactResolverWrapper -
settings -
overwrite -
Method Detail

writeBuildXmls

protected void writeBuildXmls()
                       throws IOException
Generate Ant build XML files

Throws:
IOException

writeBuildProperties

protected void writeBuildProperties()
                             throws IOException
Generate maven-build.properties only for a non-POM project

Throws:
IOException
See Also:
DEFAULT_MAVEN_PROPERTIES_FILENAME


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.