public class AntBuildWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILE_ENCODING |
protected static int |
DEFAULT_INDENTATION_SIZE
The default line indenter
|
| Constructor and Description |
|---|
AntBuildWriter() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String DEFAULT_FILE_ENCODING
protected static final int DEFAULT_INDENTATION_SIZE
public void openAntBuild(File dependenciesBuildFile, String name, String defaultTarget) throws IOException
buildFile - name - defaultTarget - IOExceptionpublic void closeAntBuild()
throws IOException
IOExceptionpublic void openTarget(String targetName) throws IOException
targetName - IOExceptionpublic void closeTarget()
throws IOException
IOExceptionpublic 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 - Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.