Current Commands

List of resolvers

Resolvers are defined in ${zerohome}/config/ivy

Chains

  1. local
  2. LocalThenRemote
  3. remote ( contains chain, and resolvers for zero and ibiblio
  4. RemoteThenLocal

Resolvers

  1. private
  2. userhome
  3. workspace

Currently, only the userhome resolver supports publish

Cli Apps Dir and App dir

If cliappsdir is specified this is the directory used by the workspace resolver to find peer projects. If cliappsdir is not specified then the parent of appdir is assumed to be the root directory for peer projects.

Commands

Add run scripts

  • Target: addrunscripts
  • macrodef : zerorun
  • class : zero.tools.ant.tasks.ZeroRun

Arguments

Argument Default Value Description required
zerohome   The location where cli config resides false
main zero.core.Main main to invoke false
args   args to pass to specified main false
apphome ${basedir} current directory, typically directory of build.xml, but special behavior if using zero.xml
filename startApp name of generated script false
createscriptsenabled true flag for zerorun to create scripts false

Build

  • Depends : resolve, compile, package

Clean

Deletes the classes, export and instrument directories

  • TargetName: clean
  • macrodef : zeroclean
  • class : zero.tools.ant.tasks.ZeroClean

Arguments

Argument Default Value Description
apphome ${basedir} The app location

Clone

This is supposed to be changed to a zero create ( linkTo )

  • TargetName: clone
  • macrodef : zeroclone
  • class : zero.tools.ant.tasks.ZeroClone

The directory where apps are created under the dir property which defaults to ${default.apps.dir}. The name of the application is appname, which is required.

${default.apps.dir} is obtained from cli.properties and by default is ${zerohome}/apps

Arguments

Argument Default Value Description required*
zerohome   The location where cli config resides false
dir ${default.apps.dir} parent directory of cloned app false
resolver LocalThenRemote the resolver to use false
template zero:zero.application.instance.template Template to use for making the clone false
cliAppDir   The root directory of applications, used by workspace resolver false
install   The directory where zero zips are expanded false
repository   The location of the local repository false
tobeclonedapp default0 application to be cloned true

Trash.Compile

  • TargetName: compile
  • macrodef : zerocompile
  • class : zero.tools.ant.tasks.ZeroJava

Arguments

Argument Default Value Description required*
zerohome   The location where cli config resides false
apphome ${basedir} The app location ?? false
appname ${ant.project.name} The app name false

Create

  • TargetName: create
  • macrodef : zerocreate
  • class : zero.tools.ant.tasks.ZeroCreate

The directory where apps are created under the dir property which defaults to ${default.apps.dir}. The name of the application is appname, which is required.

${default.apps.dir} is obtained from cli.properties and by default is ${zerohome}/apps

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
dir ${default.apps.dir}  
resolver LocalThenRemote the resolver to use
template zero:zero.application.instance.template Template to use for making the clone
cliAppDir   The root directory of applications, used by workspace resolver
install   The directory where zero zips are expanded
repository   The location of the local repository
appname default0 application to be created

Delete

  • TargetName: delete
  • macrodef : zerodelete
  • class : zero.tools.ant.tasks.ZeroDelete

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
org   organisation name
module   module name
version   the version
artifact default0 the artifact to delete. if no ":" then assumed to be module name with org = zero
install   The directory where zero zips are expanded
repository   The location of the local repository

Get

  • TargetName: get
  • macrodef : zeroget
  • class : zero.tools.ant.tasks.ZeroGet

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
resolver remote the name of the resolver to use
artifact default0 the name of the artifact to get, zero:zero.core: or zero#zero.core;
numofversions 1 the number of versions to get
install   The directory where zero zips are expanded
repository   The location of the local repository

Help

  • TargetName: help
  • macrodef : zerohelp
  • class : zero.tools.ant.tasks.ZeroHelp

Install

Note: this should be changed to zero create copyFrom...

  • TargetName: install
  • macrodef : zeroinstall
  • class : zero.tools.ant.tasks.ZeroGet

The directory where apps are created under the dir property which defaults to ${default.apps.dir}. The name of the application is appname, which is required.

${default.apps.dir} is obtained from cli.properties and by default is ${zerohome}/apps

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
resolver LocalThenRemote the name of the resolver to use
artifact default0 the name of the artifact to install, zero:zero.core: or zero#zero.core;
dir . directory where to install application ( does this include appName?)
install   The directory where zero zips are expanded
repository   The location of the local repository

List

  • TargetName: list
  • macrodef : zerolist
  • class : zero.tools.ant.tasks.ZeroList

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
remote false determines whether to use remote or local resolver chain
org   organisation name
module   module name
version   the version
artifact default0 the artifact to delete. if no ":" then assumed to be module name with org = zero
install   The directory where zero zips are expanded
repository   The location of the local repository

Package

  • TargetName: package
  • macrodef : zeropackage
  • class : zero.tools.ant.tasks.ZeroPackage
  • depends : version

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
type shared type of package, two choices for now shared and standalone
apphome ${basedir} The app location ??
includeSrc true flag to indicate to include src code
exclude   expression of what to exclude, examples??
dir {basedir}/export directory to place package
overwrite true overwrite package if exists
copyright false include copyrights
repository   The location of the local repository

Prune

  • TargetName: prune
  • macrodef : zeroprune
  • class : zero.tools.ant.tasks.ZeroPrune

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
numToKeep -1 the number to keep, -1 = keep none
repository   The location of the local repository

Publish

  • TargetName: publish
  • macrodef : zeropublish
  • class : zero.tools.ant.tasks.ZeroPublish

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
resolver userhome the name of the resolver to use to publish, only certain ones support publish
apphome ${basedir} The app location ??
appname ${ant.project.name} The name of the app
zipfile   the zip file to publish, default is the zip in the export directory
repository   The location of the local repository

Resolve

  • TargetName: seed
  • macrodef : zeroseed
  • class : zero.tools.ant.tasks.ZeroSeed
  • unless : skip.resolve

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
apphome ${basedir} The app location ??
resolver LocalThenRemote the name of the resolver to use
ivy ivy.xml the name of the ivy file
install   The directory where zero zips are expanded
repository   The location of the local repository

Run

  • TargetName: run
  • macrodef : zerorun
  • class : zero.tools.ant.tasks.ZeroRun
  • depends : compile

Seed

  • TargetName: seed
  • macrodef : zeroseed
  • class : zero.tools.ant.tasks.ZeroSeed

Arguments

Argument Default Value Description
zerohome   The location where cli config resides
resolver remote the name of the resolver to use
artifact zero:zero.seed the name of the artifact to get
install   The directory where zero zips are expanded
repository   The location of the local repository

Test

  • TargetName: test
  • depends : resolve, compile, unit-test

Unit Test

  • TargetName: unit-test
  • macrodef : zerotest
  • class : zero.tools.ant.tasks.ZeroTest
  • *unless" : skip.test

Argument Default Value Description
apphome {basedir} basedir is the location of the ant script
test.results ${apphome}/export/junit location to put the test results
test.errorfile ${test.resultdir}/test.failed file indicating test failed
emma false flag to indicate to use emma
emmatarget ${apphome}  

User

  • TargetName: user
  • macrodef : zerouser
  • class : zero.tools.ant.tasks.ZeroUser

args0 default0 ?
args1 default1 ?
args2 default2 ?
args3 default3 ?
f ${f} ?

t

r4 - 15 May 2008 - 02:40:31 - steveims
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site