ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vihan Pandey" <vihanpan...@gmail.com>
Subject Re: for task with inline exec?
Date Mon, 20 Aug 2007 14:35:12 GMT
> Why not use shellscript?

didn't think of it :-)

---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----

<shellscript shell="bash" outputproperty="js.list">
     cat deploy.properties | grep .js-version| sed
s/.js-version=v.[0-9]*/,/g | tr -d '\n' | sed s/,$//g
</shellscript>

<echo>JS list: ${js.list}</echo>

        <for list="${js.list}" param="myval">

          <sequential>
<replace dir="${docroot-re01}" token="/javascripts/@{myval}.js"
value="http://js.cleartrip.com/javascripts/@{myval}.${@{myval}.js-version}.js"
>
<include name="**/*.html"/>
<include name="**/*.shtml"/>
</replace>
          </sequential>
        </for>

---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<----

Now it works beautifully :-)

Thanks a million Jan and Peter !!!

Regards,

-vihan

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


Mime
View raw message