Class SetPlatformProperties

  • All Implemented Interfaces:
    java.lang.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 java.lang.String COREPLUS_EXTENSION_ENDPOINT  
      static java.lang.String COREPLUS_EXTENSION_MODE  
      static java.lang.String PRODUCTION_GENERATE_CONTEXTES  
      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      void execute()  
      static java.io.File getTargetProductionBinDir​(org.apache.tools.ant.Project project)  
      protected boolean isInCommandLine​(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
      • 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 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
    • Constructor Detail

      • SetPlatformProperties

        public SetPlatformProperties()
    • Method Detail

      • 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​(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 from
        toFileOrDir - the dir or file to go to
        Returns:
        the relative path