ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: V1.6a PresetDef task
Date Fri, 26 Sep 2003 08:05:19 GMT
It would be less confusing to use a differnet
name for the definitions.

my.env.exec => exec.env.1 and exec.env.2

What you have done should work (but currently
does not - I need to fix this), but would give
a warning on the second preset definition.

Also using a sequence of <antcall>'s indicates that
build file could be restuctured. An <antcall> is
a horribly inefficent and nasty operation.

Why not do:
<target name="all" depends="Gst"/>
<target name="Gst" depends="Users">
  gst stuff
</target>
<target name="Users" depends="SetDir">
  users stuff
</target>
<target name="SetDir">
  setdir stuff
</target>

Peter
On Friday 26 September 2003 07:47, Blanchet Samuel wrote:
> Hi,
>
> Is it possible to use multiple presetdef task like that ?
>
>  <presetdef name="my.env.exec">
>     <exec newenvironment="false">
> <env key="GST1" value="${GST}"/>
>      &SETDIRINC;
>      &SETPAIE_PARAMINC;
>   </exec>
>  </presetdef>
>
>  <antcall target="Setdir"/>
>  <antcall target="Users"/>
>  <antcall target="Gst"/>
>
>  <presetdef name="my.env.exec">
>     <exec newenvironment="false">
>      <env key="DIRGST" value="${DIRTMP}\\${GST}"/>
>      <env key="RUTI" value="${DIRTMP}\\${UTI}"/>
>      <env key="nproc" value="AFFSEL"/>
>      &SETPAIEINC;
>      &SETPAIECLIINC;
>    <env key="LIB01" value="traitement d'une paie"/>
>    <env key="LIB0" value="${ENTETE}${LIB01}"/>
>   </exec>
>  </presetdef>
>
> Because, in this script, the ${GST} is set but ${DIRGST} ${RUTI} ${nproc},
> aren't.
>
> Thks
>
>  Sam


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


Mime
View raw message