|
Ant example source code file (isfileselected.xml)
The isfileselected.xml source code<project> <macrodef name="pass"> <element name="conditions" implicit="yes"/> <attribute name="failmessage"/> <sequential> <fail message="@{failmessage}"> <condition> <not> <conditions/> </not> </condition> </fail> </sequential> </macrodef> <target name="simple"> <pass failmessage="a simple test"> <isfileselected file="jars/pass.jar"> <signedselector/> </isfileselected> </pass> </target> <target name="name"> <pass failmessage="name did not match"> <isfileselected file="jars/nosign.jar"> <filename name="jars/nosign.jar"/> </isfileselected> </pass> </target> <target name="basedir"> <pass failmessage="name did not match with a basedir change"> <isfileselected file="jars/nosign.jar" basedir="jars"> <filename name="nosign.jar"/> </isfileselected> </pass> </target> <target name="type"> <pass failmessage="type selector did not work"> <isfileselected file="isfileselected.xml"> <type type="file"/> </isfileselected> </pass> </target> <target name="not.selector"> <fileset dir="."> <isfileselected file="nosigned.jar"/> </fileset> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant isfileselected.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.