|
Ant example source code file (signedselector.xml)
The signedselector.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> <property name="issigned.dir" location="../../taskdefs/conditions/jars"/> <target name="selectsigned"> <pass failmessage="apassword.jar should be a signed file"> <isfileselected file="${issigned.dir}/apassword.jar"> <signedselector/> </isfileselected> </pass> </target> <target name="notselected"> <pass failmessage="nosign.jar should not be selected as a signed jar"> <not> <isfileselected file="${issigned.dir}/nosign.jar"> <signedselector/> </isfileselected> </not> </pass> </target> <target name="name"> <pass failmessage="apassword.jar should be a signed file with the name apassword"> <isfileselected file="${issigned.dir}/apassword.jar"> <signedselector name="apassword"/> </isfileselected> </pass> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant signedselector.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 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.