| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (defer-reference-test.xml)

This example Ant source code file (defer-reference-test.xml) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

ant, ant, future, future

The defer-reference-test.xml source code

<project default="all" xmlns:au="antlib:org.apache.ant.antunit">
  <target name="notcalled">
    <filelist id="ref1" dir="${basedir}" files="xxx" />
  <target name="test-notcalled">
    <!-- bug 36955 -->
    <pathconvert property="_output2" refid="ref1"
                 pathsep="${line.separator}" />
    <au:assertLogContains text="Future versions of Ant"/>

  <target name="test-macrodef-embedded-ref">
    <!-- bug 34458 -->
    <macrodef name="foo">
      <element name="nested" implicit="yes" optional="yes"/>
        <fileset id="abc" dir=".">

    <ant antfile="build-embedded-ref.xml" inheritRefs="true"/>

  <condition property="allow.script">
      <available classname="org.apache.bsf.BSFManager" />
      <available classname="bsh.StringUtil" />

  <target name="test-script" if="allow.script">
    <!-- bugzilla: 37688 -->
    <macrodef name="compileMapper" >
      <attribute name="objDir" />
      <attribute name="id" default="compileMapperID" />
        <mkdir dir="@{objDir}"/>
        <mapper id="@{id}">
          <chainedmapper  >
            <globmapper from="*" to="@{objDir}/*.o"/>
    <script language="beanshell"/>

  <target name="all">
      <fileset file="${ant.file}"/>


Other Ant examples (source code examples)

Here is a short list of links related to this Ant defer-reference-test.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.