org.apache.tools.ant.taskdefs.optional

Class PropertyFile

public class PropertyFile extends Task

Modifies settings in a property file.

The following is an example of its usage:

Nested Class Summary
static classPropertyFile.Entry
Instance of this class represents nested elements of a task propertyfile.
static classPropertyFile.Unit
Borrowed from Tstamp
Method Summary
PropertyFile.EntrycreateEntry()
voidexecute()
voidsetComment(String hdr)
optional header comment for the file
voidsetFile(File file)
Location of the property file to be edited; required.

Method Detail

createEntry

public PropertyFile.Entry createEntry()

execute

public void execute()

setComment

public void setComment(String hdr)
optional header comment for the file

setFile

public void setFile(File file)
Location of the property file to be edited; required.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.