Class SetPlatformProperties

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.hybris.ant.taskdefs.SetPlatformProperties
All Implemented Interfaces:
Cloneable

public class SetPlatformProperties extends org.apache.tools.ant.Task
This 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 final String
     
    static final String
     
    static final String
     

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    buildRelativePath(File fromDir, File toFileOrDir)
    see UtilitiesTest.testBuildRelativePath computes the relative file path from the "fromDir" to the "toFileOrDir" argument.
    void
     
    static File
    getTargetProductionBinDir(org.apache.tools.ant.Project project)
     
    protected boolean
     

    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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SetPlatformProperties

      public SetPlatformProperties()
  • Method Details

    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • isInCommandLine

      protected boolean isInCommandLine(String arg)
    • getTargetProductionBinDir

      public static File getTargetProductionBinDir(org.apache.tools.ant.Project project)
    • buildRelativePath

      public static String buildRelativePath(File fromDir, File toFileOrDir)
      see UtilitiesTest.testBuildRelativePath computes the relative file path from the "fromDir" to the "toFileOrDir" argument.
      Parameters:
      fromDir - the dir to start from
      toFileOrDir - the dir or file to go to
      Returns:
      the relative path