Changes

Jump to navigation Jump to search
1,257 bytes added ,  12:05, 21 September 2015
no edit summary
==proc:system==
 
{| width='100%'
|-
==proc:execute==
 
{| width='100%'
|-
* {{Code|proc:execute('dir', '\')}} returns the files of the root directory of a Windows system.
* {{Code|proc:execute('ls', ('-l', '-a'))}} executes the {{Code|ls -la}} command on Unix systems.
|}
 
==proc:property-names==
 
{{Mark|Introduced with Version 8.3:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|proc:property-names||xs:string*}}<br/>
|-
| '''Summary'''
|Returns the names of all Java system properties. For environment variables of the operating system, please use [https://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables fn:available-environment-variables].
|-
| '''Examples'''
|
* {{Code|proc:property('java.runtime.version')}} returns the version of the Java runtime engine.
|}
 
==proc:property==
 
{{Mark|Introduced with Version 8.3:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|proc:property|$name as xs:string|xs:string?}}<br/>
|-
| '''Summary'''
|Returns the Java system property specified by {{Code|$name}}. An empty sequence is returned if the property does not exist. For environment variables of the operating system, please use [https://www.w3.org/TR/xpath-functions-30/#func-environment-variable fn:environment-variable].
|-
| '''Examples'''
|
* {{Code|map:merge(proc:property-names() ! map:entry(., proc:property(.)))}} returns a map with all system properties.
|}
=Changelog=
 
;Version 8.3
 
* Added: [[#proc:property|proc:property]], [[#proc:property-names|proc:property-names]].
The module was introduced with Version 7.3.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu