ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Jocham <rjocha...@yahoo.com>
Subject overwriting a property - is this possible?
Date Thu, 28 Feb 2002 01:06:13 GMT
I am trying to make my ant-xml file more readable by
using tmp properties. But it doesn't work :(  Only the
first assignment is used in the 2nd target.

TIA Ralph

  <!--
===================================================================
-->
  <!-- ChemistryPreparationSP EJB                     
                    -->
  <!--
===================================================================
-->
  <target name="ChemistryPreparationSP">
    <property name="NAME"
value="ChemistryPreparationSP"/>
    <property name="CLASSDIR"
value="${build.dir}/com/apldbio/arrays/illumina/chemprep"/>
    <property name="XMLDIR"
value="${ejb.dir}/ChemistryPreparation"/>

    <delete file="${jar.dir}/EJB/${NAME}.jar"/>
    <delete file="${XMLDIR}/META-INF/ejb-jar.xml"/>
    <delete file="${XMLDIR}/META-INF/jboss.xml"/>
    <copy file="${XMLDIR}/${NAME}-ejb-jar.xml"
tofile="${XMLDIR}/META-INF/ejb-jar.xml"/>
    <copy file="${XMLDIR}/${NAME}-jboss.xml"
tofile="${XMLDIR}/META-INF/jboss.xml"/>
    <jar jarfile="${jar.dir}/EJB/${NAME}.jar">
      <fileset dir="${CLASSDIR}"
includes="I${NAME}Proxy.class,I${NAME}Home.class,${NAME}Bean.class"/>
      <fileset dir="${XMLDIR}"
includes="META-INF/*.xml"/>
    </jar>
    <copy file="${jar.dir}/EJB/${NAME}.jar"
todir="${deploy.dir}"/>
  </target>

  <!--
===================================================================
-->
  <!-- ChemistryPreparationTask EJB                   
                    -->
  <!--
===================================================================
-->
  <target name="ChemistryPreparationTask">
    <property name="NAME"
value="ChemistryPreparationTask"/>
    <property name="CLASSDIR"
value="${build.dir}/com/apldbio/arrays/illumina/chemprep"/>
    <property name="XMLDIR"
value="${ejb.dir}/ChemistryPreparation"/>

    <delete file="${jar.dir}/EJB/${NAME}.jar"/>
    <delete file="${XMLDIR}/META-INF/ejb-jar.xml"/>
    <delete file="${XMLDIR}/META-INF/jboss.xml"/>
    <copy file="${XMLDIR}/${NAME}-ejb-jar.xml"
tofile="${XMLDIR}/META-INF/ejb-jar.xml"/>
    <copy file="${XMLDIR}/${NAME}-jboss.xml"
tofile="${XMLDIR}/META-INF/jboss.xml"/>
    <jar jarfile="${jar.dir}/EJB/${NAME}.jar">
      <fileset dir="${CLASSDIR}"
includes="I${NAME}Proxy.class,I${NAME}Home.class,${NAME}Bean.class"/>
      <fileset dir="${XMLDIR}"
includes="META-INF/*.xml"/>
    </jar>
    <copy file="${jar.dir}/EJB/${NAME}.jar"
todir="${deploy.dir}"/>
  </target>

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message