Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 39048 invoked by uid 500); 27 Mar 2000 00:46:34 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Received: (qmail 39043 invoked by uid 1064); 27 Mar 2000 00:46:34 -0000 Date: 27 Mar 2000 00:46:34 -0000 Message-ID: <20000327004634.39042.qmail@locus.apache.org> From: rubys@locus.apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/docs index.html rubys 00/03/26 16:46:34 Modified: docs index.html Log: Documented optional tasks to my knowledge Submitted by: dIon Gillard Revision Changes Path 1.16 +358 -0 jakarta-ant/docs/index.html Index: index.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/index.html,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- index.html 2000/03/23 03:40:32 1.15 +++ index.html 2000/03/27 00:46:34 1.16 @@ -30,6 +30,7 @@
  • Writing a simple buildfile
  • Directory based tasks
  • Built in Tasks +
  • Optional Tasks
  • Writing your own task
  • License
  • Feedback
  • @@ -2179,6 +2180,363 @@

    Copyright � 2000 Apache Software Foundation. All rights Reserved.

    + +

    Optional tasks

    + +
    +

    NetRexxC

    +

    Description:

    +

    Compiles a NetRexx +source tree within the running (Ant) VM.

    +

    The source and destination directory will be recursively scanned for +NetRexx source files to compile. Only NetRexx files that have no corresponding +class file or where the class file is older than the java file will be compiled.

    +

    Files in the source tree are copied to the destination directory, +allowing support files to be located properly in the classpath. The source +files are copied because the NetRexx compiler cannot produce class files in a +specific directory via parameters

    +

    The directory structure of the source tree should follow the package +hierarchy.

    +

    It is possible to refine the set of files that are being compiled/copied. +This can be done with the includes, excludes and +defaultexcludes attributes. With the includes attribute you +specify the files you want to have included by using patterns. The +exclude attribute is used to specify the files you want to have +excluded. This is also done with patterns. And finally with the +defaultexcludes attribute, you can specify whether you +want to use default exclusions or not. See the section on directory based tasks, on how the +inclusion/exclusion of files works, and how to write patterns. The +patterns are relative to the srcDir directory.

    + +

    Parameters:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    AttributeDescriptionRequired
    binaryWhether literals are treated as the java binary + type rather than the NetRexx typesNo
    classpathThe classpath to use during compilationNo
    commentsWhether comments are passed through to the + generated java sourceNo
    compactWhether error messages come out in compact or + verbose formatNo
    compileWhether the NetRexx compiler should compile the + generated java codeNo
    consoleWhether or not messages should be displayed on the + 'console'No
    crossrefWhether variable cross references are generatedNo
    decimalWhether decimal arithmetic should be used for the + NetRexx codeNo
    defaultexcludesindicates whether default excludes should be used or not + ("yes"/"no"). Default excludes are used when + omitted.No
    destDirthe destination directory into which the NetRexx + source files should be copied and then compiledYes
    diagWhether diagnostic information about the compile is + generatedNo
    excludescomma separated list of patterns of files that must be + excluded. No files (except default excludes) are excluded when + omitted.No
    explicitWhether variables must be declared explicitly + before useNo
    formatWhether the generated java code is formatted nicely + or left to match NetRexx line numbers for call stack debuggingNo
    includescomma separated list of patterns of files that must be + included. All files are included when omitted.No
    javaWhether the generated java code is producedNo
    keepSets whether the generated java source file should be kept + after compilation. The generated files will have an extension of + .java.keep, not .javaNo
    logoWhether the compiler text logo is displayed when + compilingNo
    replaceWhether the generated .java file should be replaced + when compilingNo
    savelogWhether the compiler messages will be written to + NetRexxC.log as well as to the consoleNo
    sourcedirTells the NetRexx compiler to store the class files in the + same directory as the source files. The alternative is the working + directoryNo
    srcDirSet the source dir to find the source Netrexx + filesYes
    strictargsTells the NetRexx compiler that method calls always + need parentheses, even if no arguments are needed, e.g. + aStringVar.getBytes vs. + aStringVar.getBytes()No
    strictassignTells the NetRexx compile that assignments must + match exactly on typeNo
    strictcaseSpecifies whether the NetRexx compiler should be + case sensitive or notNo
    strictimportWhether classes need to be imported explicitly using an + import statement. By default the NetRexx compiler will + import certain packages automaticallyNo
    strictpropsWhether local properties need to be qualified + explicitly using thisNo
    strictsignalWhether the compiler should force catching of + exceptions by explicitly named typesNo
    symbolsWhether debug symbols should be generated into the + class fileNo
    timeAsks the NetRexx compiler to print compilation + times to the consoleNo
    traceTurns on or off tracing and directs the resultant + trace outputNo
    utf8Tells the NetRexx compiler that the source is in UTF8No
    verboseWhether lots of warnings and error messages should + be generatedYes
    +

    Examples

    +
    +

    <netrexxc srcDir="/source/project" + includes="vnr/util/*" + destDir="/source/project/build" + classpath="/source/project2/proj.jar" + comments="true" + crossref="false" replace="true" + keep="true" /> +

    +
    +
    +

    RenameExtensions

    +

    Description:

    +

    Renames files in the srcDir directory ending with the +fromExtension string so that they end with the +toExtension string. Files are only replaced if +replace is true +

    +

    See the section on +directory based tasks, on how the +inclusion/exclusion of files works, and how to write patterns. The +patterns are relative to the srcDir directory.

    +

    Parameters:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    AttributeDescriptionRequired
    defaultexcludesindicates whether default excludes should be used or not + ("yes"/"no"). Default excludes are used when + omitted.No
    excludescomma separated list of patterns of files that must be + excluded. No files (except default excludes) are excluded when + omitted.No
    fromExtentionThe string that files must end in to be renamedYes
    includescomma separated list of patterns of files that must be + included. All files are included when omitted.No
    replaceWhether the file being renamed to should be + replaced if it already existsNo
    srcDirThe starting directory for files to search inYes
    toExtensionThe string that renamed files will end with on + completionYes
    +

    Examples

    +
    +

    <renameext srcDir="/source/project1" + includes="**" + excludes="**/samples/*" + fromExtension=".java.keep" + toExtension=".java" + replace="true" /> + +

    +
    + +
    +

    Script

    +

    Description:

    +

    Execute a script in a + BSF supported language. +

    All items (tasks, targets, etc) of the running project are accessible +from the script. +

    Parameters:

    + + + + + + + + + + + + + + + + +
    AttributeDescriptionRequired
    languageThe programming language the script is written in. + Must be a supported BSF languageNo
    srcThe location of the script as a file, if not inlineNo
    +

    Examples

    +
    +

    None yet available

    +