Package de.hybris.ant.taskdefs
Class SetPlatformProperties
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- de.hybris.ant.taskdefs.SetPlatformProperties
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SetPlatformProperties extends org.apache.tools.ant.TaskThis Task sets several platform properties ala '$ext.extensionname.path'. Therefore each extensioninfo.xml of each installed extension is parsed and evaluated.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOREPLUS_EXTENSION_ENDPOINTstatic java.lang.StringCOREPLUS_EXTENSION_MODEstatic java.lang.StringPRODUCTION_GENERATE_CONTEXTES
-
Constructor Summary
Constructors Constructor Description SetPlatformProperties()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildRelativePath(java.io.File fromDir, java.io.File toFileOrDir)see UtilitiesTest.testBuildRelativePath computes the relative file path from the "fromDir" to the "toFileOrDir" argument.voidexecute()static java.io.FilegetTargetProductionBinDir(org.apache.tools.ant.Project project)protected booleanisInCommandLine(java.lang.String arg)-
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
-
-
-
-
Field Detail
-
COREPLUS_EXTENSION_MODE
public static final java.lang.String COREPLUS_EXTENSION_MODE
- See Also:
- Constant Field Values
-
COREPLUS_EXTENSION_ENDPOINT
public static final java.lang.String COREPLUS_EXTENSION_ENDPOINT
- See Also:
- Constant Field Values
-
PRODUCTION_GENERATE_CONTEXTES
public static final java.lang.String PRODUCTION_GENERATE_CONTEXTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
isInCommandLine
protected boolean isInCommandLine(java.lang.String arg)
-
getTargetProductionBinDir
public static java.io.File getTargetProductionBinDir(org.apache.tools.ant.Project project)
-
buildRelativePath
public static java.lang.String buildRelativePath(java.io.File fromDir, java.io.File toFileOrDir)see UtilitiesTest.testBuildRelativePath computes the relative file path from the "fromDir" to the "toFileOrDir" argument.- Parameters:
fromDir- the dir to start fromtoFileOrDir- the dir or file to go to- Returns:
- the relative path
-
-