Difference between revisions of "Parameter expressions"

From CCIL
Jump to: navigation, search
(Macros)
 
Line 30: Line 30:
 
== Links ==
 
== Links ==
  
* [http://ccil.sourceforge.net/releases/latest/apidocs/net/ccil/stages/generic/ExpandStringStage.html ExpandStringStage]
+
* [[How to provide parameter values from the command line?]]
 +
 
 +
* [[ExpandStringStage]]
 
* [http://ccil.sourceforge.net/releases/latest/apidocs/net/ccil/util/ContextUtils.html#expand-java.lang.String- ContextUtils.expand]
 
* [http://ccil.sourceforge.net/releases/latest/apidocs/net/ccil/util/ContextUtils.html#expand-java.lang.String- ContextUtils.expand]
 
* [http://ccil.sourceforge.net/releases/latest/apidocs/net/ccil/util/ContextUtils.html#resolveSettingValue-java.lang.String-java.lang.String-java.util.Map- ContextUtils.resolveSettingValue]
 
* [http://ccil.sourceforge.net/releases/latest/apidocs/net/ccil/util/ContextUtils.html#resolveSettingValue-java.lang.String-java.lang.String-java.util.Map- ContextUtils.resolveSettingValue]

Latest revision as of 14:36, 7 June 2017

Value

Expression of the type ${NAME} will be expanded with the runtime value of the NAME variable. This will alse work with references. You could use syntax in the form of ${@NAME} and expand the value of a variable the NAME reference points to,

Macros

  1. {SPACE} - Expands into a space.
  2. {TAB} - Expands into a tab: \t.
  3. {LF} - Expands into a line feed: \n.
  4. {CR} - Expands into a carriage return - \r.
  5. {NL} - Expands into new line: System.getProperty("line.separator").
  6. {CDATE} - Expands into current date: new Date().toString().
  7. {CTIME} - Expands into current time: new Date().toString().
  8. {TIMESTAMP} - Expands into timestamp: System.currentTimeMillis().

Reference

You can reference a parameter name by using the @ symbol:

PARSE_CONTENT.input = @xfer

At some point there shpoul be a definition:

# properties
xfer = xfer

Links