ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: overwriting a property - is this possible?
Date Thu, 28 Feb 2002 02:45:46 GMT
Nope, not without using some other tricks like <antcall>.


----- Original Message -----
From: "Ralph Jocham" <rjocham72@yahoo.com>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, February 27, 2002 8:06 PM
Subject: overwriting a property - is this possible?


> 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>
>
>


--
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