accesssystempropertiesinscript
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| accesssystempropertiesinscript [2023/01/14 16:46] – wikiadmin | accesssystempropertiesinscript [2026/01/25 14:48] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Access and Use System Properties (-D defined properties) in a Script===== | =====Access and Use System Properties (-D defined properties) in a Script===== | ||
| + | |||
| + | < | ||
| This article shows you how to get the values of system properties which are defined on the command line using -Dpropertyname=value. There are other ways to set system parameters for MIX or TransSECS applications, | This article shows you how to get the values of system properties which are defined on the command line using -Dpropertyname=value. There are other ways to set system parameters for MIX or TransSECS applications, | ||
| Line 37: | Line 39: | ||
| </ | </ | ||
| + | |||
| + | ==== Store Parameters in a Variable ==== | ||
| + | |||
| + | If you are going to use this parameter in your project' | ||
| + | |||
| + | Add a " | ||
| + | |||
| + | <code javascript> | ||
| + | var System = Java.type(" | ||
| + | |||
| + | ipAddress=System.getProperty(" | ||
| + | |||
| + | if (ipAddress!=null) { | ||
| + | // | ||
| + | / | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | Any time after this in your scripts you can access the current value of " | ||
accesssystempropertiesinscript.1673732773.txt.gz · Last modified: by wikiadmin
