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 Project
for 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 String
DEFAULT_BUILD_FILENAME
The default build file name (build.xml)protected static int
DEFAULT_INDENTATION_SIZE
The default line indenterprotected static String
DEFAULT_MAVEN_BUILD_FILENAME
The default generated build file nameprotected static String
DEFAULT_MAVEN_PROPERTIES_FILENAME
The 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 void
writeBuildProperties()
Generatemaven-build.properties
only for a non-POM projectprotected void
writeBuildXmls()
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
-MavenProject
artifactResolverWrapper
-ArtifactResolverWrapper
settings
-Settings
overwrite
- true/false to overwrite or not.executionProperties
-Properties
-
-
Method Detail
-
writeBuildXmls
protected void writeBuildXmls() throws IOException
Generate Ant build XML files- Throws:
IOException
- In case of an error.
-
writeBuildProperties
protected void writeBuildProperties() throws IOException
Generatemaven-build.properties
only for a non-POM project- Throws:
IOException
- In case of an failureIOException
- See Also:
DEFAULT_MAVEN_PROPERTIES_FILENAME
-
-