public class BuildHMCScripts
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
BuildHMCScripts() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected java.lang.String |
readFromFile(java.io.File file)
read from file and put file content into a string
|
void |
setFiletype(java.lang.String type)
Sets the file type to process (in general js or css).
|
protected void |
writeToFile(java.io.File file,
java.lang.String string)
write String to file
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFiletype(java.lang.String type)
type - type to processpublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected java.lang.String readFromFile(java.io.File file)
throws java.io.IOException,
java.io.FileNotFoundException
file - the file to readjava.io.IOException - by IO Errorjava.io.FileNotFoundException - throws if file not foundprotected void writeToFile(java.io.File file,
java.lang.String string)
throws java.io.IOException
file - the filestring - the stringjava.io.IOException - IO ErrorCopyright © 2018 SAP SE. All Rights Reserved.