|
Ant example source code file (antversion.xml)
The antversion.xml source code<?xml version="1.0" encoding="utf-8"?> <project name="testantversion" default="testatleast"> <target name="testatleast"> <fail> <condition> <not> <antversion atleast="1.7" /> </not> </condition> Should be at least 1.7 </fail> </target> <target name="testexactly"> <fail> <condition> <not> <antversion exactly="1.7" /> </not> </condition> Should be exactly 1.7 </fail> </target> <target name="testatleastfail"> <property name="version" value="1.8.9" /> <fail> <condition> <not> <antversion atleast="1.9.0" /> </not> </condition> Should be at least 1.9.0 </fail> </target> <target name="testexactlyfail"> <property name="version" value="1.8.0" /> <fail> <condition> <not> <antversion exactly="1.9.0" /> </not> </condition> Should be exactly 1.9.0 </fail> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant antversion.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.