| com.flexive.tools.ant.ApplicationDescriptorBuilderTask
ApplicationDescriptorBuilderTask | public class ApplicationDescriptorBuilderTask extends Task (Code) | | ANT task to build application.xml descriptors on the fly with descriptor entries
for drop-in applications
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
execute | public void execute() throws BuildException(Code) | | |
loadFile | public static String loadFile(File file)(Code) | | Load the contents of a file, returning it as a String.
This method should only be used when really necessary since no real error handling is performed!!!
Parameters: file - the File to load file contents |
loadFromInputStream | public static String loadFromInputStream(InputStream in, int length)(Code) | | Load a String from an InputStream (until end of stream)
Parameters: in - InputStream Parameters: length - length of the string if < -1 (NOT number of bytes to read!) String |
storeFile | public static boolean storeFile(String contents, File file)(Code) | | Rather primitive "write String to file" helper, returns false if failed
Parameters: contents - the String to store Parameters: file - the file, if existing it will be overwritten if successful |
|
|