Package org.openbravo.modulescript
Class ModuleScriptHandler
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.openbravo.modulescript.ModuleScriptHandler
-
- All Implemented Interfaces:
Cloneable
public class ModuleScriptHandler extends org.apache.tools.ant.Task
-
-
Constructor Summary
Constructors Constructor Description ModuleScriptHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
File
getBasedir()
Returns a File with the base directoryString
getModuleJavaPackage()
Returns the java packageMap<String,OpenbravoVersion>
getModulesVersionMap()
Returns a map with the current module versionsvoid
setBasedir(File basedir)
Sets the base directoryvoid
setModuleJavaPackage(String moduleJavaPackage)
Sets the java packagevoid
setModulesVersionMap(Map<String,String> currentVersionsMap)
Creates the OpenbravoVersion map from a map of version strings-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute()
- Overrides:
execute
in classorg.apache.tools.ant.Task
-
getBasedir
public File getBasedir()
Returns a File with the base directory- Returns:
- a File with the base directory
-
setBasedir
public void setBasedir(File basedir)
Sets the base directory- Parameters:
basedir
- File used to set the base directory
-
getModuleJavaPackage
public String getModuleJavaPackage()
Returns the java package- Returns:
- a String with the module java package
-
setModuleJavaPackage
public void setModuleJavaPackage(String moduleJavaPackage)
Sets the java package- Parameters:
moduleJavaPackage
- String to set the java package
-
setModulesVersionMap
public void setModulesVersionMap(Map<String,String> currentVersionsMap)
Creates the OpenbravoVersion map from a map of version strings- Parameters:
currentVersionsMap
- A data structure that contains Strings with module versions mapped by module id
-
getModulesVersionMap
public Map<String,OpenbravoVersion> getModulesVersionMap()
Returns a map with the current module versions- Returns:
- A data structure that contains module versions mapped by module id
-
-