OpenWGA 7.10 - TMLScript reference

WGA » WGA.Server
Method :

resolveSystemFile(filePath)

On object WGA.Server
Usage Resolves an openwga system file on the servers file system
Description

This functionality can be used to find a file that is on the servers file system. It will resolve file paths that are either absolute or relative to the OpenWGA config folder.

The method is also able to resolve dirlink files and some variables in the file path:

  • ${wga.cfgdir} - The OpenWGA configuration directory
  • ${wga.datadir} - The OpenWGA data directory, normally folder "wgadata" in the configuration directory
  • ${wga.defaultpluginsdir} - An additional default plugins directory, optionally configured via sysproperty de.innovationgate.wga.defaultplugins
  • ${sys.<systemproperty>} - Any Java system property
  • ${env.<variable>} - Any operation system environment variable
The result is a Java file object of type java.util.File or null if no file exists at the given location.
Parameters

filePath (String):

The file path to resolve

Return value A Java object java.util.File representing the found file or null if none was found
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events