ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rauch <>
Subject RE: Multiple Properties for the "unless" Attribute
Date Tue, 14 May 2002 17:39:31 GMT

First of all, thanks for taking your time and trying to find a solution to
my problem. My try was as follows:

<!-- Check whether the JARs needed by all files can be found -->
  <!-- If so, create corresponding patternset -->
  <target name="validate-common-jars">
property="logpack.jar" value="${empic.lib}/logPack.jar" file="${empic.lib}/logPack.jar" />
property="i18n.jar" value="${allapps.path}/i18n.jar" file="${allapps.path}/i18n.jar" />
property="common-icons.jar" value="${allapps.path}/common-icons.jar" file="${allapps.path}/common-icons.jar"
property="common-props.jar" value="${allapps.path}/common-props.jar" file="${allapps.path}/common-props.jar"
    <patternset id="common-jars">
    <include name="${logpack.jar}" />
    <include name="${i18n.jar}" />
    <include name="${common-icons.jar}" />
    <include name="${common-props.jar}" />

name="fail-if-not-valid-common-jars" unless="logpack.jar,i18n.jar,common-icons.jar,common-props.jar">
      One or more of "logPack.jar", "i18n.jar", "common-icons.jar", or
"common-props.jar" seem to be missing. Please take a look at the contents
of the "WEB-INF/lib", or the "html" subdir.

name="sign-chg-pass" depends="genjar-chg-pass,validate-common-jars,fail-if-not-valid-common-jars">
    <signjar alias="" storepass="Seminumerical Algorithms !">
      <fileset refid="chg-pass-jars" />

This (specifying more than one attribute for "unless") doesn't seem to
work. The logic is that the target "sign-chg-pass" should only be executed
if "fail-if-not-valid-common-jars" didn't fail (which should be the case
if all JARs are in their corresponding subdirs). Am I doing something
wrong here?

Any advice will be greatly appreciated!



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message