Hello, O.K, this question is about an Ant Contrib task(the for task). But I observed that Ant Contrib lists(ant-contrib-csv and ant-contrib-developers) was mainly for the developers of package itself rather than its users. So apologies if this is the wrong list to post this question. If it is not the wrong list, here's the question :
I am generating a build.xml via an echoxml : <echoxml file="build.xml.static-assets"> <project name="deployment" default="init" basedir="."> <target name="replace-re01"> <echo message="JS Versioning re01:"/> <for list="autoassist,autoassist_profile,book,calendar,clarity,ct-login,effects,filter,forums-application,forums-controls,forums-dragdrop,forums-effects,forums-lowpro,forums-prototype,hotel_results,lightbox,multi_step_page,profile,prototype,sort,trips" param="myval"> <sequential> <replace dir="${docroot-re01}" token="/javascripts/@{myval}.js" value="http://js.cleartrip.com/javascripts/@[EMAIL PROTECTED]" > <include name="**/*.html"/> <include name="**/*.shtml"/> </replace> </sequential> </for> </target> </echoxml> O.K, the ${docroot-re01} is defined in my deploy.properties. Also, the values I am giving in my list="..." above can be got from deploy.properties as well via : # cat deploy.properties | grep .js-version | sed s/.js-version=v.[0-9]*/,/g | tr -d '\n' | sed s/,$//g Is there anyway I can avoid hardcoding the list="..." and substitute it with the bash one liner above via on exec or something? Or is there a way to define that exec output into a viable and and then putting it in list="..." Help is much appreciated! Regards, - vihan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]