--- Mark Derricutt <[EMAIL PROTECTED]> wrote:
> I have a property thats set to "5.0.019" for a version number, but cvs
> tags don't allow .'s, is there a way to do a regex and change all
> the .'s to _'s  from ant?

Or if you don't want to deal with reading and writing a file (and want to
see Erik cringe :) --

  <property name="version" value="5.0.019"/>

  <target name="setTag">
  <script language="javascript"> <![CDATA[
    cvstag = projname.getProperty("version").replace('.', '_');
    projname.setProperty("cvstag", cvstag);
    ]]></script>
    <echo message="cvstag  = ${cvstag}"/>
  </target>

Diane

=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to