|
Ant example source code file (defer-reference-test.xml)
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> <target name="test-notcalled"> <!-- bug 36955 --> <pathconvert property="_output2" refid="ref1" pathsep="${line.separator}" /> <echo>${_output2} <au:assertLogContains text="Future versions of Ant"/> </target> <target name="test-macrodef-embedded-ref"> <!-- bug 34458 --> <macrodef name="foo"> <element name="nested" implicit="yes" optional="yes"/> <sequential> <fileset id="abc" dir="."> <nested/> </fileset> </sequential> </macrodef> <ant antfile="build-embedded-ref.xml" inheritRefs="true"/> </target> <condition property="allow.script"> <and> <available classname="org.apache.bsf.BSFManager" /> <available classname="bsh.StringUtil" /> </and> </condition> <target name="test-script" if="allow.script"> <!-- bugzilla: 37688 --> <macrodef name="compileMapper" > <attribute name="objDir" /> <attribute name="id" default="compileMapperID" /> <sequential> <mkdir dir="@{objDir}"/> <mapper id="@{id}"> <chainedmapper > <flattenmapper/> <globmapper from="*" to="@{objDir}/*.o"/> </chainedmapper> </mapper> </sequential> </macrodef> <script language="beanshell"/> </target> <target name="all"> <au:antunit> <fileset file="${ant.file}"/> <au:plainlistener/> </au:antunit> </target> </project> 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 |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
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.