<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.jwaresoftware.org/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.jwaresoftware.org/wiki/feed.php">
        <title>JWare Free Software antxtras:documents:howto</title>
        <description></description>
        <link>http://www.jwaresoftware.org/wiki/</link>
        <image rdf:resource="http://www.jwaresoftware.org/wiki/lib/images/favicon.ico" />
       <dc:date>2010-05-30T19:56:16-05:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/capturelogs?rev=1258391370&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/deletevariable?rev=1214748437&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/disableassert?rev=1215296914&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/enablefuncuts?rev=1223933602&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/getversion?rev=1214760113&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/home?rev=1258390457&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifelse?rev=1215294719&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifthen?rev=1215296233&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/installmessages?rev=1234745733&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/stoppropeval?rev=1229238092&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/timetasks?rev=1214760962&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.jwaresoftware.org/wiki/lib/images/favicon.ico">
        <title>JWare Free Software</title>
        <link>http://www.jwaresoftware.org/wiki/</link>
        <url>http://www.jwaresoftware.org/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/capturelogs?rev=1258391370&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-16T11:09:30-05:00</dc:date>
        <title>Capture Logs</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/capturelogs?rev=1258391370&amp;do=diff</link>
        <description>Capture Logs

Q: How do I capture logs for all targets


   A common requirement when running an Ant target is to capture any logged output.
 




The main “wrap” macro definition is shown below.



Related Tips

	*</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/deletevariable?rev=1214748437&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-29T09:07:17-05:00</dc:date>
        <title>Delete Variables</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/deletevariable?rev=1214748437&amp;do=diff</link>
        <description>Q: How do I delete a variable?


   Variables are not like standard Ant properties, you can’t reference or change them unless you use the $var: shortcut explicitly. Regardless, sometimes you want to make sure you clean-up variables especially if you’ve created them as part of a macro definition because they will retain their values across macro invocations, sub-builds, targets, and even threads. Note that when you remove a variable, it is removed for everybody, not just the current project.…</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/disableassert?rev=1215296914&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-05T17:28:34-05:00</dc:date>
        <title>Disable Assert</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/disableassert?rev=1215296914&amp;do=diff</link>
        <description>Disable Assert

Q: How do I disable assertions?


   AntXtras lets you disable all of the &lt;assert&gt; statements in your Ant scripts by setting a single Java system property. Just set the AntXtras assertions system property to “false”; from a command line this might look like:</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/enablefuncuts?rev=1223933602&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-13T16:33:22-05:00</dc:date>
        <title>Enable Funcuts</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/enablefuncuts?rev=1223933602&amp;do=diff</link>
        <description>Enable Funcuts

Q: How do I enable or disable function shortcuts?


   If you declare your AntXtras tasks using the supplied all-in-one “org/jwaresoftware/antxtras/install” antlib, all of the built-in AntXtras function shortcuts are automatically installed and enabled for you to use immediately. No additional setup is required. You should use this mechanism if possible.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/getversion?rev=1214760113&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-29T12:21:53-05:00</dc:date>
        <title>AntXtras Version</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/getversion?rev=1214760113&amp;do=diff</link>
        <description>AntXtras Version

Q: How do I get the active AntXtras version?


   Use the AntXtras  task to copy the AntXtras release information to a set of project properties. The  includes a label, version, long version, (build) date, long (build) date, and (build) platform; however, you can extract a subset of these fields. The &lt;vendorinfo&gt; task works automatically for all AntXtras-based Ant extensions; use the ‘name’ parameter to define one of the  or another third-party vendor. If you do not name a spec…</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/home?rev=1258390457&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-16T10:54:17-05:00</dc:date>
        <title>How Tos</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/home?rev=1258390457&amp;do=diff</link>
        <description>   A collection of instructions and script excerpts that demonstrate how to use AntXtras to implement common functions, whether in a build script, a deploy script, a test script, or whatever. To learn more about AntXtras/Foundation see the information listed on the main Documents page.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifelse?rev=1215294719&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-05T16:51:59-05:00</dc:date>
        <title>If-Else[If]</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifelse?rev=1215294719&amp;do=diff</link>
        <description>Q: How do I implement an if-else[if]?


   Conditional task execution is one of the features Ant users often cite as missing from a standard Ant installation. AntXtras supports three flavors of conditional execution: &lt;do&gt; (the workhorse), , and &lt;dowhile&gt;. While &lt;do&gt; is lets you implement simple “if-then” logic, you will need to use &lt;domatch&gt; to implement “if-else[if]” logic.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifthen?rev=1215296233&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-07-05T17:17:13-05:00</dc:date>
        <title>If-Then</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/ifthen?rev=1215296233&amp;do=diff</link>
        <description>Q: How do I implement an if-then?


   Conditional task execution is one of the features Ant users often cite as missing from a standard Ant installation. AntXtras supports three flavors of conditional execution:  (the workhorse), &lt;domatch&gt;, and &lt;dowhile&gt;. You need to use the &lt;do&gt; task to implement the simple “if-then” branch pattern.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/installmessages?rev=1234745733&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-15T18:55:33-05:00</dc:date>
        <title>Install Messages</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/installmessages?rev=1234745733&amp;do=diff</link>
        <description>Install Messages

Q: How do I install message bundles for use?


   Depending on what you’re trying to accomplish, there are two ways you can install message bundles. Both methods require that you have one or more readable resource bundles (typically properties-based files). Currently you can read properties files on the file system or via any URL type supported by your Ant runtime.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/stoppropeval?rev=1229238092&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-14T01:01:32-05:00</dc:date>
        <title>Stop ${} Evaluation</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/stoppropeval?rev=1229238092&amp;do=diff</link>
        <description>Stop ${} Evaluation

Q: How do I stop Ant from evaluating ${...}?


   At some point you will find it necessary to use the standard ‘${…}’ pattern in a string and you want to block Ant from interpreting this string as if it contained a property reference. Such a situation might occur for example, if you’re creating a properties file that contains values with property references that an application will interpolate when it loads the file.</description>
    </item>
    <item rdf:about="http://www.jwaresoftware.org/wiki/antxtras/documents/howto/timetasks?rev=1214760962&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-29T12:36:02-05:00</dc:date>
        <title>Time Tasks</title>
        <link>http://www.jwaresoftware.org/wiki/antxtras/documents/howto/timetasks?rev=1214760962&amp;do=diff</link>
        <description>Time Tasks

Q: How do I use variables to time a task or set of tasks?


   This is a common request so AntXtras has a straightforward way to record and capture the time it takes a group of tasks to execute. First you need to record your start time using a variable (which can be set and reset for any number of iterations) with the special “now” operation. Then after the tasks-to-be-timed have completed, you can update that same variable with the duration using the special “-now” operation. The fo…</description>
    </item>
</rdf:RDF>
