SDK
To develop with the XP framework here's an overview of the essential utilities: The xp utility
Runs XP classes with a main method and is the base for all other
utilities. UsageGiven the following class: uses('util.cmd.Console'); ...the following run on a command line: $ xp SayHello World ...will print "Hello World" to the console. The xpcli utility
Runs command line classes, which greatly simplify the
task of writing command line utilities. Instead of having to parse arguments,
instantiate database connections and load configuration files manually,
command line classes can ask for these resources by annotating methods. uses('util.cmd.Command'); To print "Hello World" to the console: $ xpcli SayHello World
This method may look like additional overhead in the beginning (and actually
is in this case) but has numerous benefits - this entry
from our blog explains "xpclis" in depth. The unittest utility
Runs unittests. The xar utilityWorks with XAR archives. | Table of contents |