Platform Explorer / Nuxeo Platform LTS 2016 8.10

Extension point environment

Documentation

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 Descriptors

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-commandline-executor-8.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">/Users/arnaud/Work/Nuxeo/distrib/nuxeo-server-8.10-tomcat/tmp</parameter>
            <parameter name="TMP">/Users/arnaud/Work/Nuxeo/distrib/nuxeo-server-8.10-tomcat/tmp</parameter>
            <parameter name="TEMP">/Users/arnaud/Work/Nuxeo/distrib/nuxeo-server-8.10-tomcat/tmp</parameter>
            <parameter name="TEMPDIR">/Users/arnaud/Work/Nuxeo/distrib/nuxeo-server-8.10-tomcat/tmp</parameter>
          </parameters>
        </environment>
      </extension>
  • nuxeo-binary-metadata-8.10.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">/Users/arnaud/Work/Nuxeo/distrib/nuxeo-server-8.10-tomcat/tmp</parameter>
            <!-- set PAR_CLEAN cleaning PAR_GLOBAL_TEMP after execution -->
            <!-- <parameter name="PAR_CLEAN">0</parameter> -->
          </parameters>
        </environment>
      </extension>