keros 1.2

Table Of Contents

Summary

Import Summary

Import Definitions
FileDescriptionComment
${keros.locale.HOME}/keros-messages.xmlImport local specific messages. Import locale specific messages.

Task Definition Summary

Task Definitions
ResourceDescriptionComment
Not DefinedNeeded to use Castor. Castor definition...
Not DefinedNeeded to use FindBugs. FindBugs definition...
net/sf/antcontrib/antlib.xmlNeeded to use ant-contrib. Ant Contrib definition...
org/apache/ivy/ant/antlib.xmlNeeded to use ivy. Ivy definition...

Macro Definition Summary

Macro Definitions
NameDescriptionURI
ant2htmlConverts Ant scripts to HTMLhttp://keros.sourceforge.net
antDocConverts Ant scripts to HTMLhttp://keros.sourceforge.net
assert-dir-existsDetermines if @{dir} exists and if not, fails with @{error-msg}.http://keros.sourceforge.net
assert-equalDetermines if @{str1} is equal to @{str2}. If the two are not equal, message defined in @{error-msg} is displayed.http://keros.sourceforge.net
assert-file-existsDetermines if @{file} exists and if not, fails with @{error-msg}.http://keros.sourceforge.net
assert-is-numberDetermines if @{number} is a number. If @{number} is not a number, @{error-msg} will be displayed.http://keros.sourceforge.net
assert-not-equalDetermines if @{str1} is not equal to @{str2}. If the two are equal, message defined in @{error-msg} is displayed.http://keros.sourceforge.net
assert-ref-idDetermines if @{ref-id} is a ref id and if not fails with an error message defined in @{error-msg}.http://keros.sourceforge.net
auto-propertyDefine setting properties using either environment variables or default values. The property entitled @{property} will not be re-set if it is currently defined (set).http://keros.sourceforge.net
basenameSame as Ant's stock basename task - however, this allows the property to be reset.http://keros.sourceforge.net
compute-branchCompute the branch based upon a root dir, @{root}, and full path, @{full-path}. The branch represents the full path minus the root dir. Please note: if @{root} does not exist in @{full-path}, @{property} will be set with an empty value.http://keros.sourceforge.net
compute-class-branchCompute the class' branch information converting dots to OS file separator. By branch the meaning is to convey the branch in the CLASSPATH. The path representation of @{class-name} is stored in property @{property}.http://keros.sourceforge.net
compute-class-infoCompute information about a class - namely its parent dir and file name (less the .class).http://keros.sourceforge.net
compute-file-extensionComputes the extension of @{file}.http://keros.sourceforge.net
compute-number-left-trimTrim preceeding 0's from @{number} and store in the property entitled @{property}.http://keros.sourceforge.net
compute-number-right-trimTrim ppostceeding 0's from @{number} after decimal and store in the property entitled @{property}.http://keros.sourceforge.net
compute-number-trimTrim ppostceeding 0's from @{number} after decimal and store in the property entitled @{property}.http://keros.sourceforge.net
compute-replacementReplace characters from @{str}. The characters to be replaced are contained in @{to-replace}. The replacement characters are contained in @{replacement}. The replaced data is stored in property @{property}. Please note if @{str} does not contain any data in @{to-replace} the value of @{property} will be @{str}.http://keros.sourceforge.net
compute-timestampCompute the current time stamp in YYYY-MM-DD_HH-MM-SS.http://keros.sourceforge.net
conditional-set-propertyThis will conditionally set a property whether. If @{property} is set it will use @{set} otherwise @{unset}.http://keros.sourceforge.net
console-inputWill prompt for input if property not set (or if the @{always} attribute is true). If @{always} is true and @{property} is set and @{default} is empty, the value of @{property} becomes the @{default} value. If the attribute @{required} is true and no value is set for @{property}, this macro will cause a fail to be invoked. Please note that if @{default} is set and input is prompted but the user does not enter anything, the value of @{default} will be used to set the property!http://keros.sourceforge.net
copyThis will copy from @{src} to @{dest-dir}.http://keros.sourceforge.net
copy-dirThis will copy the contents of a directory from @{src-dir} to @{dest-dir}. Please note: if @{dest-dir} does not exist, it will be created.http://keros.sourceforge.net
copy-ref-idThis will copy from @{src-ref-id} to @{dest-dir}. Please note: if @{dest-dir} does not exist, it will be created.http://keros.sourceforge.net
delete-fileDeletes @{file} if @{is-deletable} is yes or true.http://keros.sourceforge.net
dirnameSame as Ant's stock dirname task - however, this allows the property to be reset.http://keros.sourceforge.net
equality-set-propertyThis will set the value of the property entitled @{name} based upon a comparison to the value contained by the property ${property}. If @{property} equals @{value}, @{name} will be set to @{equal}, otherwise it will be set to @{unequal}.http://keros.sourceforge.net
execute-java-appExecute a java class whose class name is @{class-property}. If this property is not set, the user will be prompted for the class name.http://keros.sourceforge.net
forThis implements a for loop with starting and ending values for the loop.http://keros.sourceforge.net
HtmlAnchorGenerates an HTML anchorhttp://keros.sourceforge.net
HtmlAttributeGenerates an HTML attributehttp://keros.sourceforge.net
HtmlBreakGenerates n HTML breakhttp://keros.sourceforge.net
HtmlDivGenerates an HTML unordered listhttp://keros.sourceforge.net
HtmlDocumentGenerates an HTML documenthttp://keros.sourceforge.net
HtmlElementGenerates an HTML elementhttp://keros.sourceforge.net
HtmlFrameGenerates an HTML framehttp://keros.sourceforge.net
HtmlFrameSetGenerates an HTML framesethttp://keros.sourceforge.net
HtmlHeaderGenerates an HTML headerhttp://keros.sourceforge.net
HtmlLeafElementGenerates an HTML elementhttp://keros.sourceforge.net
HtmlLinkGenerates an HTML anchorhttp://keros.sourceforge.net
HtmlTextGenerates and HTML text valuehttp://keros.sourceforge.net
HtmlUnorderedListGenerates an HTML unordered listhttp://keros.sourceforge.net
if-dir-existsDetermines if @{dir} exists and will act accordingly.http://keros.sourceforge.net
if-file-existsDetermines if @{file} exists and will act accordingly.http://keros.sourceforge.net
install-tar-bz2Download and install a tar.bz2http://keros.sourceforge.net
install-tar-gzDownload and install a tar.gzhttp://keros.sourceforge.net
javacc2javaDefines a simpler javacc - acting similar to javacc. One does not need to specify each and every JavaCC file - simply provide a root or @{src-dir} location from which to start finding javacc files for invocation with the javacc task. The branch directory from @{dest-dir} is computed from @{src-dir} and the javacc files found.http://keros.sourceforge.net
lib-install-fileInstall a library jarhttp://keros.sourceforge.net
lib-install-tar-bz2Install a library from an applicationhttp://keros.sourceforge.net
lib-install-tar-gzInstall a library from an applicationhttp://keros.sourceforge.net
lib-install-zipInstall a library from an applicationhttp://keros.sourceforge.net
load-fileThis will load a file into a property. If @{property} was already set, it will be overridden.http://keros.sourceforge.net
NavDefDefine a navigation HTML windowhttp://keros.sourceforge.net
NavItemAn item that is navigatablehttp://keros.sourceforge.net
NavItemIndentAn item that is navigatablehttp://keros.sourceforge.net
number-compareImplements a simplistic switch/case for comparing two numbers - less than, greater than, equal to or not equal.http://keros.sourceforge.net
print-ref-idPrint the contents of @{ref-id} to the console.http://keros.sourceforge.net
process-listAllows one to iterate over a list/files and for each element in the list know the previous, current and next values.http://keros.sourceforge.net
property-defaultGive a property a default value if not sethttp://keros.sourceforge.net
releaseCreate a release.http://keros.sourceforge.net
set-propertyThis will set a property whether its set or not.http://keros.sourceforge.net
svn2htmlConverts Subversion output to HTMLhttp://keros.sourceforge.net
svn-xml-logRetrieve the log information from subversion in XML format.http://keros.sourceforge.net
truncate-file-extensionTruncates the extension of @{file}.http://keros.sourceforge.net
unpackWill untar tar.bz2/tar.gz files as well as unzip zip fileshttp://keros.sourceforge.net
unpack-bz2Will bunzip2/untar tar.bz2 fileshttp://keros.sourceforge.net
unpack-gzWill gunzipz/untar tar.gz fileshttp://keros.sourceforge.net
unpack-tarWill untar tar fileshttp://keros.sourceforge.net
unpack-zipWill gunzipz/untar tar.gz fileshttp://keros.sourceforge.net

Script Definition Summary

Script Definitions
NameLanguageDescriptionURI
compute-file-modification-datebeanshellStore the file modification date in @{property}.http://keros.sourceforge.net
compute-localebeanshellSets the locale of the current JVM.http://keros.sourceforge.net
replace-urlbeanshellConverts static text URL to an HTML a-href.http://keros.sourceforge.net

Target Summary

Target Definitions
NameDependsUnlessDescription
keros.print-propertiesNot DefinedNot DefinedNot Defined

Details

Macro Definition Details

ant2html

Converts Ant scripts to HTML

Attribute Definitions
NameDescriptionDefault
basedirThe directory in which to start searching for Ant scripts.Not Defined
dest-dirThe directory in which the transformation will occur.Not Defined
includesThe file pattern to include when transforming.Not Defined
versionThe version number/value to include in the heading.Not Defined
descriptionInformation about this macro call.Not Defined

antDoc

Converts Ant scripts to HTML

Attribute Definitions
NameDescriptionDefault
dirThe directory to start recursively applying AntDoc.Not Defined
descriptionInformation about this macro call.Not Defined

assert-dir-exists

Determines if @{dir} exists and if not, fails with @{error-msg}.

Attribute Definitions
NameDescriptionDefault
dirThe name of the directory that should exist.Not Defined
error-msgThe message to display if @{dir} does not exist.${keros.assert-dir-exists.error-msg}
descriptionInformation about this macro call.Not Defined

assert-equal

Determines if @{str1} is equal to @{str2}. If the two are not equal, message defined in @{error-msg} is displayed.

Attribute Definitions
NameDescriptionDefault
str1Compared to @{str2}.Not Defined
str2Compared to @{str1}.Not Defined
error-msgThe message to display if @{str1} not equal to @{str2}.${keros.assert-equal.error-msg}
descriptionInformation about this macro call.Not Defined

assert-file-exists

Determines if @{file} exists and if not, fails with @{error-msg}.

Attribute Definitions
NameDescriptionDefault
fileThe name of the file that should exist.Not Defined
error-msgThe message to display if @{file} does not exist.${keros.assert-file-exists.error-msg}
descriptionInformation about this macro call.Not Defined

assert-is-number

Determines if @{number} is a number. If @{number} is not a number, @{error-msg} will be displayed.

Attribute Definitions
NameDescriptionDefault
numberUsed to determine if a number or not.Not Defined
error-msgThe message to display if @{number} is not a number.${keros.assert-is-number.error-msg}
descriptionInformation about this macro call.Not Defined

assert-not-equal

Determines if @{str1} is not equal to @{str2}. If the two are equal, message defined in @{error-msg} is displayed.

Attribute Definitions
NameDescriptionDefault
str1Compared to @{str2}.Not Defined
str2Compared to @{str1}.Not Defined
error-msgThe message to display if @{str1} equals @{str2}.${keros.assert-not-equal.error-msg}
descriptionInformation about this macro call.Not Defined

assert-ref-id

Determines if @{ref-id} is a ref id and if not fails with an error message defined in @{error-msg}.

Attribute Definitions
NameDescriptionDefault
ref-idThe name of the ref id that should be a ref id.Not Defined
error-msgThe message to display if @{ref-id} is not a ref id.${keros.assert-ref-id.error-msg}
descriptionInformation about this macro call.Not Defined

auto-property

Define setting properties using either environment variables or default values. The property entitled @{property} will not be re-set if it is currently defined (set).

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property to set.Not Defined
defaultThe default value to use if the property named, @{property}, is not set.Not Defined
descriptionInformation about this macro call.Not Defined

basename

Same as Ant's stock basename task - however, this allows the property to be reset.

Attribute Definitions
NameDescriptionDefault
fileThe path to take the basename of.Not Defined
propertyThe name of the property to set.Not Defined
suffixThe suffix to remove from the resulting basename (specified either with or without the .).Not Defined
prependInformation to prepend to property's value.Not Defined
appendInformation to append to property's value.Not Defined
descriptionInformation about this macro call.Not Defined

compute-branch

Compute the branch based upon a root dir, @{root}, and full path, @{full-path}. The branch represents the full path minus the root dir. Please note: if @{root} does not exist in @{full-path}, @{property} will be set with an empty value.

Attribute Definitions
NameDescriptionDefault
rootThe root of the path defined in @{full-path}.Not Defined
full-pathThe absolute path for which @{root} is the root of the path and the branch computed is this path minus the root.Not Defined
propertyThe property to set with the branch.Not Defined
descriptionInformation about this macro call.Not Defined

compute-class-branch

Compute the class' branch information converting dots to OS file separator. By branch the meaning is to convey the branch in the CLASSPATH. The path representation of @{class-name} is stored in property @{property}.

Attribute Definitions
NameDescriptionDefault
class-nameThe fully qualified class name.Not Defined
propertyThe property to set when @{class-name} is converted to path notation.Not Defined
descriptionInformation about this macro call.Not Defined

compute-class-info

Compute information about a class - namely its parent dir and file name (less the .class).

Attribute Definitions
NameDescriptionDefault
class-nameThe fully qualified class name for which a directory and file name are sought.Not Defined
dir-propertyThe name of the property that will hold the directory of @{class-name}.Not Defined
file-propertyThe name of the property that will hold the file name of @{class-name}.Not Defined
descriptionInformation about this macro call.Not Defined

compute-file-extension

Computes the extension of @{file}.

Attribute Definitions
NameDescriptionDefault
fileThe name of the file for whom we wish to compute the extension.Not Defined
propertyThe name of the property to set.Not Defined
descriptionInformation about this macro call.Not Defined

compute-number-left-trim

Trim preceeding 0's from @{number} and store in the property entitled @{property}.

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property to store the results of triming preceeding 0's from @{number}.Not Defined
numberThe number who will have preceeding 0's trimmed.Not Defined
descriptionInformation about this macro call.Not Defined

compute-number-right-trim

Trim ppostceeding 0's from @{number} after decimal and store in the property entitled @{property}.

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property to store the results of triming postceeing 0's from decimal point from @{number}.Not Defined
numberThe number who will have preceeding 0's trimmed.Not Defined
descriptionInformation about this macro call.Not Defined

compute-number-trim

Trim ppostceeding 0's from @{number} after decimal and store in the property entitled @{property}.

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property to store the results of triming postceeing 0's from decimal point from @{number}.Not Defined
numberThe number who will have preceeding 0's trimmed.Not Defined
descriptionInformation about this macro call.Not Defined

compute-replacement

Replace characters from @{str}. The characters to be replaced are contained in @{to-replace}. The replacement characters are contained in @{replacement}. The replaced data is stored in property @{property}. Please note if @{str} does not contain any data in @{to-replace} the value of @{property} will be @{str}.

Attribute Definitions
NameDescriptionDefault
strThe string containing characters to be replaced.Not Defined
to-replaceThe characters to replace in @{str}.Not Defined
replacementThe replacement characters that will replace @{to-replace} in @{str}.Not Defined
propertyThe name of the property to hold the replaced characters.Not Defined
descriptionInformation about this macro call.Not Defined

compute-timestamp

Compute the current time stamp in YYYY-MM-DD_HH-MM-SS.

Attribute Definitions
NameDescriptionDefault
propertyThe property to set with the current time stamp.Not Defined
prefixThe prefix for property when time stamp is computed and stored in @{property}.Not Defined
suffixThe suffix for property when time stamp is computed and stored in @{property}.Not Defined
descriptionInformation about this macro call.Not Defined

conditional-set-property

This will conditionally set a property whether. If @{property} is set it will use @{set} otherwise @{unset}.

Attribute Definitions
NameDescriptionDefault
nameThe name of the property to set.Not Defined
propertyThe name of the property to examine to see if set.Not Defined
setThe value to use if @{property} is set.Not Defined
unsetThe value to use if @{property} is not set.Not Defined
is-warnableA flag, if true states a warning should be displayed - anything else no warning is outputted.true
warning-msgif set to anything and the property named, name, is set, will echo the value of this param. Please note, the property will still be set.${keros.conditional-set-property.warning-msg}
descriptionInformation about this macro call.Not Defined

console-input

Will prompt for input if property not set (or if the @{always} attribute is true). If @{always} is true and @{property} is set and @{default} is empty, the value of @{property} becomes the @{default} value. If the attribute @{required} is true and no value is set for @{property}, this macro will cause a fail to be invoked. Please note that if @{default} is set and input is prompted but the user does not enter anything, the value of @{default} will be used to set the property!

Attribute Definitions
NameDescriptionDefault
promptWhen requesting input, the message to display.Not Defined
propertyThe property to set.Not Defined
defaultThe default value to use if upon input, nothing entered.Not Defined
alwaysIf true will prompt for input regardless if property has been set.false
requiredIf true, after input the property must be set or failure will occur.true
error-msgIf @{property} is required and no value set, the error message to display.${keros.console-input.error-msg}
descriptionInformation about this macro call.Not Defined

copy

This will copy from @{src} to @{dest-dir}.

Attribute Definitions
NameDescriptionDefault
srcThe source to copy from - be it a file, dir or ref id.Not Defined
dest-dirThe directory to copy to.Not Defined
error-msgError message to display if @{src} does not exist or is not a file, dir or ref id.${keros.copy.error-msg}
descriptionInformation about this macro call.Not Defined

copy-dir

This will copy the contents of a directory from @{src-dir} to @{dest-dir}. Please note: if @{dest-dir} does not exist, it will be created.

Attribute Definitions
NameDescriptionDefault
src-dirThe source dir copy from.Not Defined
dest-dirThe directory to copy to.Not Defined
error-msgError message to display if @{src-dir} does not exist.${keros.copy-dir-set-property.error-msg}
descriptionInformation about this macro call.Not Defined

copy-ref-id

This will copy from @{src-ref-id} to @{dest-dir}. Please note: if @{dest-dir} does not exist, it will be created.

Attribute Definitions
NameDescriptionDefault
src-ref-idThe source to copy from - be it a file, dir or ref id.Not Defined
dest-dirThe directory to copy to.Not Defined
error-msgError message to display if @{src-ref-id} is not a ref id.${keros.copy-ref-id.error-msg}
descriptionInformation about this macro call.Not Defined

delete-file

Deletes @{file} if @{is-deletable} is yes or true.

Attribute Definitions
NameDescriptionDefault
fileA file to delete if @{is-deletable} is true or yes.Not Defined
is-deletableIf yes or true, @{file} will be removed.true
descriptionInformation about this macro call.Not Defined

dirname

Same as Ant's stock dirname task - however, this allows the property to be reset.

Attribute Definitions
NameDescriptionDefault
fileThe path to take the basename of.Not Defined
propertyThe name of the property to set.Not Defined
prependInformation to prepend to property's value.Not Defined
appendInformation to append to property's value.Not Defined
descriptionInformation about this macro call.Not Defined

equality-set-property

This will set the value of the property entitled @{name} based upon a comparison to the value contained by the property ${property}. If @{property} equals @{value}, @{name} will be set to @{equal}, otherwise it will be set to @{unequal}.

Attribute Definitions
NameDescriptionDefault
nameThe name of the property to set.Not Defined
propertyThe name of the property to examine for equality/inequality.Not Defined
valueThe value to compare against @{property}.Not Defined
equalthe value to use if @{property} equals @{value}.Not Defined
unequalThe value to use if @{property} not equal to @{value}.Not Defined
is-warnableA flag, if true states a warning should be displayed - anything else no warning is outputted.true
warning-msgThe message to emit if @{name} is currently set.${keros.equality-set-property.warning-msg}
descriptionInformation about this macro call.Not Defined

execute-java-app

Execute a java class whose class name is @{class-property}. If this property is not set, the user will be prompted for the class name.

Attribute Definitions
NameDescriptionDefault
class-propertyThe name of the property who has the fully qualified class name to execute.Not Defined
class-path-refThe class path for executing the java app.Not Defined
args-propertyThe name of the property who has the arguments to pass to the class.Not Defined
class-prompt-msgThe message to use if the property defined by class-property name has not been set.${keros.execute-java-app.class-prompt-msg}
args-prompt-msgThe message to use if the property defined by args-property name has not been set.${keros.execute-java-app.args-prompt-msg}
descriptionInformation about this macro call.Not Defined

for

This implements a for loop with starting and ending values for the loop.

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property that will contain the current value of the loop.Not Defined
startThe start value of the loop.1
endThe end value of the loopNot Defined
incThe value to increment (or decrement) when looping.1
descriptionInformation about this macro call.Not Defined

HtmlAnchor

Generates an HTML anchor

Attribute Definitions
NameDescriptionDefault
fileThe file to write the anchor toNot Defined
charsetDescription unavailableNot Defined
coordsDescription unavailableNot Defined
hrefDescription unavailableNot Defined
hreflangDescription unavailableNot Defined
nameDescription unavailableNot Defined
relDescription unavailableNot Defined
revDescription unavailableNot Defined
shapeDescription unavailableNot Defined
targetDescription unavailableNot Defined
typeDescription unavailableNot Defined
textThe text of the anchorNot Defined
descriptionDescription unavailableNot Defined

HtmlAttribute

Generates an HTML attribute

Attribute Definitions
NameDescriptionDefault
fileThe file to write the attribute and value toNot Defined
nameThe literal attribute nameNot Defined
valueThe literable attribute valueNot Defined
descriptionInformation about calling this macrodefNot Defined

HtmlBreak

Generates n HTML break

Attribute Definitions
NameDescriptionDefault
fileFile to write the HTML break toNot Defined
descriptionDescription unavailableNot Defined

HtmlDiv

Generates an HTML unordered list

Attribute Definitions
NameDescriptionDefault
fileThe file to write the anchor toNot Defined
classDescription unavailableNot Defined
idDescription unavailableNot Defined
styleDescription unavailableNot Defined
titleDescription unavailableNot Defined
dirDescription unavailableNot Defined
langDescription unavailableNot Defined
accesskeyDescription unavailableNot Defined
tabindexDescription unavailableNot Defined
descriptionDescription unavailableNot Defined

HtmlDocument

Generates an HTML document

Attribute Definitions
NameDescriptionDefault
fileThe file to write the html element toNot Defined
descriptionDescription unavailableNot Defined

HtmlElement

Generates an HTML element

Attribute Definitions
NameDescriptionDefault
fileThe file to write the HTML element toNot Defined
nameThe literal name of the elementNot Defined
descriptionInformation about calling this macrodefNot Defined

HtmlFrame

Generates an HTML frame

Attribute Definitions
NameDescriptionDefault
fileThe file to write the frame toNot Defined
frameborderDescription unavailableNot Defined
longdescDescription unavailableNot Defined
marginheightDescription unavailableNot Defined
marginwidthDescription unavailableNot Defined
nameDescription unavailableNot Defined
noresizeDescription unavailableNot Defined
scrollingDescription unavailableNot Defined
srcDescription unavailableNot Defined
descriptionDescription unavailableNot Defined

HtmlFrameSet

Generates an HTML frameset

Attribute Definitions
NameDescriptionDefault
fileThe file to write the frame set toNot Defined
colsDescription unavailableNot Defined
rowsDescription unavailableNot Defined
descriptionDescription unavailableNot Defined

HtmlHeader

Generates an HTML header

Attribute Definitions
NameDescriptionDefault
fileThe file to write the HTML header toNot Defined
numberThe header number - for example H1Not Defined
textThe text of the headerNot Defined
descriptionDescription unavailableNot Defined

HtmlLeafElement

Generates an HTML element

Attribute Definitions
NameDescriptionDefault
fileThe file to write the HTML element toNot Defined
nameThe literal name of the elementNot Defined
descriptionInformation about calling this macrodefNot Defined

HtmlLink

Generates an HTML anchor

Attribute Definitions
NameDescriptionDefault
fileThe file to write the anchor toNot Defined
charsetDescription unavailableNot Defined
hrefDescription unavailableNot Defined
hreflangDescription unavailableNot Defined
mediaDescription unavailableNot Defined
relDescription unavailableNot Defined
revDescription unavailableNot Defined
targetDescription unavailableNot Defined
typeDescription unavailableNot Defined
descriptionDescription unavailableNot Defined

HtmlText

Generates and HTML text value

Attribute Definitions
NameDescriptionDefault
fileThe file to write the value of @{text} toNot Defined
textThe literal text to write to @{file}Not Defined
descriptionDescription unavailableNot Defined

HtmlUnorderedList

Generates an HTML unordered list

Attribute Definitions
NameDescriptionDefault
fileThe file to write the anchor toNot Defined
classDescription unavailableNot Defined
idDescription unavailableNot Defined
styleDescription unavailableNot Defined
titleDescription unavailableNot Defined
dirDescription unavailableNot Defined
langDescription unavailableNot Defined
accesskeyDescription unavailableNot Defined
tabindexDescription unavailableNot Defined
descriptionDescription unavailableNot Defined

if-dir-exists

Determines if @{dir} exists and will act accordingly.

Attribute Definitions
NameDescriptionDefault
dirThe name of the directory to check for existance.Not Defined
descriptionInformation about this macro call.Not Defined

if-file-exists

Determines if @{file} exists and will act accordingly.

Attribute Definitions
NameDescriptionDefault
fileThe name of the file that should exist.Not Defined
descriptionInformation about this macro call.Not Defined

install-tar-bz2

Download and install a tar.bz2

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.bz2 file for downloadNot Defined
download-dirDirectory to perform downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
install-dirInstallation directoryNot Defined
descriptionInformation about calling this macroNot Defined

install-tar-gz

Download and install a tar.gz

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.gz file for downloadNot Defined
download-dirDirectory to perform downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
install-dirInstallation directoryNot Defined
descriptionInformation about calling this macroNot Defined

javacc2java

Defines a simpler javacc - acting similar to javacc. One does not need to specify each and every JavaCC file - simply provide a root or @{src-dir} location from which to start finding javacc files for invocation with the javacc task. The branch directory from @{dest-dir} is computed from @{src-dir} and the javacc files found.

Attribute Definitions
NameDescriptionDefault
src-dirThe directory from which to start searching for javacc files.Not Defined
dest-dirThe directory where javacc should generate - this is really the root directory from which javacc generation will be relative.Not Defined
javacc-homeThe location where JavaCC is installed.Not Defined
staticStatic generation flag for javacc.true
listfilesIf true, information will be displayed as to which files are being javac'd.true
descriptionInformation about this macro call.Not Defined

lib-install-file

Install a library jar

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.bz2 file for downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
lib-dirLibrary directory where @{includes} will be copiedNot Defined
descriptionInformation about calling this macroNot Defined

lib-install-tar-bz2

Install a library from an application

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.bz2 file for downloadNot Defined
download-dirDirectory to perform downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
install-dirInstallation directoryNot Defined
lib-dirLibrary directory where @{includes} will be copiedNot Defined
descriptionInformation about calling this macroNot Defined

lib-install-tar-gz

Install a library from an application

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.bz2 file for downloadNot Defined
download-dirDirectory to perform downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
install-dirInstallation directoryNot Defined
lib-dirLibrary directory where @{includes} will be copiedNot Defined
descriptionInformation about calling this macroNot Defined

lib-install-zip

Install a library from an application

Attribute Definitions
NameDescriptionDefault
urlThe URL containing a tar.bz2 file for downloadNot Defined
download-dirDirectory to perform downloadNot Defined
download-fileFile name of @{url} for downloadNot Defined
install-dirInstallation directoryNot Defined
lib-dirLibrary directory where @{includes} will be copiedNot Defined
descriptionInformation about calling this macroNot Defined

load-file

This will load a file into a property. If @{property} was already set, it will be overridden.

Attribute Definitions
NameDescriptionDefault
src-fileThe location of the file to load and store in @{property}.Not Defined
propertyThe property to hold @{src-file}.Not Defined
descriptionInformation about this macro call.Not Defined

NavDef

Define a navigation HTML window

Attribute Definitions
NameDescriptionDefault
main-fileThe main file containing the framesetNot Defined
colsColumns attribute of the frameset25%,75%
toc-fileThe table of contents fileNot Defined
toc-titleThe title for the table of contentsNot Defined
toc-nameThe frame name of the table of contentstoc-frame
content-nameThe frame name for the contentcontent-frame
default-contentThe default page to display in the content frameNot Defined

NavItem

An item that is navigatable

Attribute Definitions
NameDescriptionDefault
toc-fileTable of contents file to write anchor and break toNot Defined
textText of the HTML anchorNot Defined
hrefLink for the HTML anchorNot Defined
targetTarget of the HTML anchorcontent-frame
descriptionDescription unavailableNot Defined

NavItemIndent

An item that is navigatable

Attribute Definitions
NameDescriptionDefault
toc-fileTable of contents file to write anchor and break toNot Defined
textText of the HTML anchorNot Defined
hrefLink for the HTML anchorNot Defined
targetTarget of the HTML anchorcontent-frame
descriptionDescription unavailableNot Defined

number-compare

Implements a simplistic switch/case for comparing two numbers - less than, greater than, equal to or not equal.

Attribute Definitions
NameDescriptionDefault
arg1Compared against @{arg2}.Not Defined
arg2Compared against @{arg1}.Not Defined
descriptionInformation about this macro call.Not Defined

print-ref-id

Print the contents of @{ref-id} to the console.

Attribute Definitions
NameDescriptionDefault
ref-idThe name of the ref id to display.Not Defined
indentString to use for indenting the contents of refid.Not Defined
error-msgWhen printing @{ref-id}, if a directory does not exist and ant raises an error, this value will be displayed instead.${keros.print-ref-id.error-msg}
descriptionInformation about this macro call.Not Defined

process-list

Allows one to iterate over a list/files and for each element in the list know the previous, current and next values.

Attribute Definitions
NameDescriptionDefault
listThe list to process.Not Defined
delimiterThe delimiter for @{list}.,
previousName of property to hold previous value in list.keros.PREVIOUS
currentName of property to hold current value in list.keros.CURRENT
nextName of property to hold next value in list.keros.NEXT
descriptionInformation about this macro call.Not Defined

property-default

Give a property a default value if not set

Attribute Definitions
NameDescriptionDefault
nameThe name of the property for which a default value may be setNot Defined
default-valueIf @{property} is not set, this is the valeu that it will have as a defaultNot Defined
descriptionInformation about calling this macroNot Defined

release

Create a release.

Attribute Definitions
NameDescriptionDefault
dirThe directory to create the release files.Not Defined
stage-dirThe staging directory where the created release files will be copied when completed.Not Defined
base-fileThe base name of the tar, zip, bzip and gzip files.Not Defined
base-dirDirectory name where the release when unpacked will reside.@{base-file}
descriptionInformation about this macro call.Not Defined

set-property

This will set a property whether its set or not.

Attribute Definitions
NameDescriptionDefault
propertyThe name of the property to set.Not Defined
valueThe value to set the property to set.Not Defined
is-warnableA flag, if true states a warning should be displayed - anything else no warning is outputted.true
warning-msgif set to anything and the property named, property, is set, will echo the value of this param. Please note, the property will still be set.${keros.set-property.warning-msg}
descriptionInformation about this macro call.Not Defined

svn2html

Converts Subversion output to HTML

Attribute Definitions
NameDescriptionDefault
src-dirThe base directory in which to gather Subversion log information.Not Defined
dest-dirThe directory in which the transformation will occur.Not Defined
log-fileThe file that will contain the outputted XML.svn-log.xml
html-fileThe file that will contain HTML conversion from @{log-file}svn-log.html
rev-startThe Subversion starting revision number.0
rev-endThe Subversion ending revision number.HEAD
versionThe version number/value to include in the heading.Not Defined
descriptionInformation about this macro call.Not Defined

svn-xml-log

Retrieve the log information from subversion in XML format.

Attribute Definitions
NameDescriptionDefault
dirThe directory in which to gather logging information.Not Defined
fileThe file that will contain the outputted XML.Not Defined
rev-startThe starting revision number.0
rev-endThe ending revision number.HEAD
descriptionInformation about this macro call.Not Defined

truncate-file-extension

Truncates the extension of @{file}.

Attribute Definitions
NameDescriptionDefault
fileThe name of the file for whom we wish to truncate the extension.Not Defined
propertyThe name of the property to set.Not Defined
descriptionInformation about this macro call.Not Defined

unpack

Will untar tar.bz2/tar.gz files as well as unzip zip files

Attribute Definitions
NameDescriptionDefault
fileThe file to unpack.Not Defined
uncompress-dirDirectory where @{file} may uncompress before unpacking.${keros.tar.HOME}
unpack-dirThe root directory where directories/files contained within @{file} will be unpacked.Not Defined
clean-upIf yes or true (case insensitive), any intermediary files will be removed (for example tar files).true
descriptionInformation about this macro call.Not Defined

unpack-bz2

Will bunzip2/untar tar.bz2 files

Attribute Definitions
NameDescriptionDefault
bz2-fileThe bz2 file to unpack.Not Defined
bunzip-dirThe directory where @{bz2-file} will be unpacked containing as a tar file.${keros.tar.HOME}
untar-dirThe directory where @{bz2-file}'s tar file will be unpacked.Not Defined
clean-upIf yes or true, the tar file will be removed.true
descriptionInformation about this macro call.Not Defined

unpack-gz

Will gunzipz/untar tar.gz files

Attribute Definitions
NameDescriptionDefault
gz-fileThe gz file to unpack.Not Defined
gunzip-dirThe directory where @{gz-file} will be unpacked containing as a tar file.${keros.tar.HOME}
untar-dirThe directory where @{gz-file}'s tar file will be unpacked.Not Defined
clean-upIf yes or true, the tar file will be removed.true
descriptionInformation about this macro call.Not Defined

unpack-tar

Will untar tar files

Attribute Definitions
NameDescriptionDefault
tar-fileThe tar file to unpack.Not Defined
untar-dirThe directory where @{tar-file} will be untar'd.Not Defined
clean-upIf yes or true, the tar file will be removed.true
descriptionInformation about this macro call.Not Defined

unpack-zip

Will gunzipz/untar tar.gz files

Attribute Definitions
NameDescriptionDefault
zip-fileThe zip file to unpack.Not Defined
unzip-dirThe directory where @{gz-file} will be unpacked containing as a tar file.Not Defined
clean-upIf yes or true, the tar file will be removed.true
descriptionInformation about this macro call.Not Defined

Script Definition Details

compute-file-modification-date

Store the file modification date in @{property}.

Attribute Definitions
NameDescriptionDefault
fileDescription unavailableNot Defined
propertyDescription unavailableNot Defined
formatDescription unavailableNot Defined

compute-locale

Sets the locale of the current JVM.

Attribute Definitions
NameDescriptionDefault
propertyDescription unavailableNot Defined

replace-url

Converts static text URL to an HTML a-href.

Attribute Definitions
NameDescriptionDefault
fileDescription unavailableNot Defined

Target Detail

keros.print-properties

Description unavailable

This target will output defined properties to the console...

Property Declarations

This section highlights all properties set by scope. For example, properties may be set at the project level, macrodef level or target level. This section only lists the property names - not their values.

Depends List

This section lists all the dependencies for targets in a hierarchical structure.