public class BuildHMCScripts
extends Task
| Constructor and Description |
|---|
BuildHMCScripts() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected String |
readFromFile(File file)
read from file and put file content into a string
|
void |
setFiletype(String type)
Sets the file type to process (in general js or css).
|
protected void |
writeToFile(File file,
String string)
write String to file
|
public void setFiletype(String type)
type - type to processpublic void execute()
throws BuildException
BuildExceptionprotected String readFromFile(File file) throws IOException, FileNotFoundException
file - the file to readIOException - by IO ErrorFileNotFoundException - throws if file not foundprotected void writeToFile(File file, String string) throws IOException
file - the filestring - the stringIOException - IO ErrorCopyright © 2017 SAP SE. All Rights Reserved.