Package org.apache.maven.plugin.ant
Class AntBuildWriter
- java.lang.Object
-
- org.apache.maven.plugin.ant.AntBuildWriter
-
public class AntBuildWriter extends Object
Write Ant build files fromMaven Projectfor Ant 1.6.2 or above:- build.xml
- maven-build.xml
- maven-build.properties
- Version:
- $Id: AntBuildWriter.java 1645084 2014-12-12 22:28:31Z khmarbaise $
- Author:
- Brett Porter, Vincent Siveton
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_BUILD_FILENAMEThe default build file name (build.xml)protected static intDEFAULT_INDENTATION_SIZEThe default line indenterprotected static StringDEFAULT_MAVEN_BUILD_FILENAMEThe default generated build file nameprotected static StringDEFAULT_MAVEN_PROPERTIES_FILENAMEThe default build properties file name
-
Constructor Summary
Constructors Constructor Description AntBuildWriter(org.apache.maven.project.MavenProject project, ArtifactResolverWrapper artifactResolverWrapper, org.apache.maven.settings.Settings settings, boolean overwrite, Properties executionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwriteBuildProperties()Generatemaven-build.propertiesonly for a non-POM projectprotected voidwriteBuildXmls()Generate Ant build XML files
-
-
-
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-MavenProjectartifactResolverWrapper-ArtifactResolverWrappersettings-Settingsoverwrite- true/false to overwrite or not.executionProperties-Properties
-
-
Method Detail
-
writeBuildXmls
protected void writeBuildXmls() throws IOExceptionGenerate Ant build XML files- Throws:
IOException- In case of an error.
-
writeBuildProperties
protected void writeBuildProperties() throws IOExceptionGeneratemaven-build.propertiesonly for a non-POM project- Throws:
IOException- In case of an failureIOException- See Also:
DEFAULT_MAVEN_PROPERTIES_FILENAME
-
-