Variables

< Variables Types & Converters >

Built-in Variables

terp provides a number of built-in variables that provide access to constants or reflected values.

The complete list of built-in variables follows below.

Built-in variables
Name Type Description
ant a ShellLauncher A launcher for ANT if one has already been instantiated.
e java.lang.Double The value of Math.E, Euler's number.
hosts Collection<
com.codemesh.terp.data.Host>
The collection of known hosts.
localhost com.codemesh.terp.data.Host The local host.
now java.util.Calendar The current time.
os com.codemesh.terp.data.OS The local operating system.
pi java.lang.Double The value of Math.PI, the number pi.
procarchs Collection<
com.codemesh.terp.data.ProcArch>
The processor architectures of this host. 64-bit chips often have 32-bit compatibility modes, so both are returned.

 


Copyright 2006-2016 by Codemesh, Inc., ALL RIGHTS RESERVED

:
terp expressions
codemesh.com home expressions templates ant about us contact us download   

Commandline