|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.artifact.ant.util.AntBuildWriter
public class AntBuildWriter
Utility class for writing an Ant build file.
Field Summary | |
---|---|
static String |
DEFAULT_FILE_ENCODING
|
protected static int |
DEFAULT_INDENTATION_SIZE
The default line indenter |
Constructor Summary | |
---|---|
AntBuildWriter()
|
Method Summary | |
---|---|
void |
closeAntBuild()
Close the ant build writer |
void |
closeTarget()
Close a tag. |
void |
openAntBuild(File dependenciesBuildFile,
String name,
String defaultTarget)
Open an Ant build file for writing. |
void |
openTarget(String targetName)
Open a target tag |
void |
writeEcho(String message)
Write an Ant echo task |
void |
writeFileList(org.apache.tools.ant.types.FileList fileList,
String id)
Write an Ant file list |
void |
writeFileSet(org.apache.tools.ant.types.FileSet fileSet,
String id)
Write an Ant fileset |
void |
writePath(org.apache.tools.ant.types.Path path,
String pathId)
Write a path. |
void |
writeProperty(String name,
String value)
Write an ant property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_FILE_ENCODING
protected static final int DEFAULT_INDENTATION_SIZE
Constructor Detail |
---|
public AntBuildWriter()
Method Detail |
---|
public void openAntBuild(File dependenciesBuildFile, String name, String defaultTarget) throws IOException
buildFile
- name
- defaultTarget
-
IOException
public void closeAntBuild() throws IOException
IOException
public void openTarget(String targetName) throws IOException
targetName
-
IOException
public void closeTarget() throws IOException
IOException
public void writeFileSet(org.apache.tools.ant.types.FileSet fileSet, String id)
fileSet
- id
- public void writeProperty(String name, String value)
name
- value
- public void writeEcho(String message)
message
- public void writeFileList(org.apache.tools.ant.types.FileList fileList, String id)
fileList
- id
- public void writePath(org.apache.tools.ant.types.Path path, String pathId)
path
- pathId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |