public class AntBuildWriter extends Object
Maven Project
for Ant 1.6.2 or above:
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AntBuildWriter(MavenProject project,
ArtifactResolverWrapper artifactResolverWrapper,
Settings settings,
boolean overwrite,
Properties executionProperties) |
Modifier and Type | Method and Description |
---|---|
protected void |
writeBuildProperties()
Generate
maven-build.properties only for a non-POM project |
protected void |
writeBuildXmls()
Generate Ant build XML files
|
protected static final int DEFAULT_INDENTATION_SIZE
protected static final String DEFAULT_BUILD_FILENAME
protected static final String DEFAULT_MAVEN_BUILD_FILENAME
protected static final String DEFAULT_MAVEN_PROPERTIES_FILENAME
public AntBuildWriter(MavenProject project, ArtifactResolverWrapper artifactResolverWrapper, Settings settings, boolean overwrite, Properties executionProperties)
project
- MavenProject
artifactResolverWrapper
- ArtifactResolverWrapper
settings
- Settings
overwrite
- true/false to overwrite or not.executionProperties
- Properties
protected void writeBuildXmls() throws IOException
IOException
- In case of an error.protected void writeBuildProperties() throws IOException
maven-build.properties
only for a non-POM projectIOException
- In case of an failure IOException
DEFAULT_MAVEN_PROPERTIES_FILENAME
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.