Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point environment

Extension point to contribute environment configuration.

Available options are: - name: comma-separated string attribute used as the environment parameters scope. It can be empty to set environment parameters common to all commands, equal to a command name to set parameters for that command only, or equal to a command line to set parameters common to all commands using that command line. You can associate multiple commands using a comma as separator.

- workingDirectory: the Folder when command should be executed. Default is the system temporary folder.

- parameters/parameter

CommandLine contribution example:

    <environment name="aCommandName,aCommandLine">
        <parameters>
            <parameter name="SOME_VAR">some value</parameter>
        </parameters>
    </environment>

Contribution Descriptor

Existing Contributions

  • nuxeo-binary-metadata-7.10-HF03.jar /OSGI-INF/binary-metadata-default-contrib.xml
    <extension point="environment" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">
        <environment name="exiftool">
          <parameters>
            <!-- See http://search.cpan.org/dist/PAR/lib/PAR.pm#Notes -->
            <parameter name="PAR_GLOBAL_TMPDIR">/opt/tmp/tmp-explorer/nuxeo-cap-7.10-tomcat/tmp</parameter>
            <!-- set PAR_CLEAN cleaning PAR_GLOBAL_TEMP after execution -->
            <!-- <parameter name="PAR_CLEAN">0</parameter> -->
          </parameters>
        </environment>
      </extension>
  • nuxeo-platform-commandline-executor-7.10.jar /OSGI-INF/commandline-default-contrib.xml
    <extension point="environment" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">
        <documentation>Default environment parameters.</documentation>
        <environment>
          <parameters>
            <!-- TMPDIR is the canonical Unix environment variable specified in various Unix and similar standards -->
            <!-- TMP, TEMP and TEMPDIR are alternatively used by non-POSIX OS or non-standard programs -->
            <!-- Windows/DOS programs randomly use TMP or TEMP environment variables -->
            <parameter name="TMPDIR">/opt/tmp/tmp-explorer/nuxeo-cap-7.10-tomcat/tmp</parameter>
            <parameter name="TMP">/opt/tmp/tmp-explorer/nuxeo-cap-7.10-tomcat/tmp</parameter>
            <parameter name="TEMP">/opt/tmp/tmp-explorer/nuxeo-cap-7.10-tomcat/tmp</parameter>
            <parameter name="TEMPDIR">/opt/tmp/tmp-explorer/nuxeo-cap-7.10-tomcat/tmp</parameter>
          </parameters>
        </environment>
      </extension>