> Do you guys keep versions within the source code?
Its not exactly like that - I check in code several times into CVS, but I'd
like the license header say something like :
MyProject ver 1.1

This number would be something like a milestone or a stable release no,
which does not change so often.

Regards,
Somik
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 2:43 PM
Subject: RE: Recursive replacement of text


> Why do you have to keep the versions within the source code?
> Are you not using CVS?
>
> I personally do not keep version numbers within source code. I Let CVS
> to do it.
>
> Do you guys keep versions within the source code?
>
> Regard
>
> Kunio Nakamaru
> -----Original Message-----
> From: Somik Raha [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 2:24 PM
> To: [EMAIL PROTECTED]
> Subject: Recursive replacement of text
>
>
> Hi
>     My Java files have a license header, which shows the version no of the
> software. For every release, I'd like the version no automatically updated
> with a value that I provide.
>     To do this automatic recursive replacement (recursing thru
> subdirectories), I am facing problems (still a newbie to ant).
>     I am trying :
>
> <target name="versionSource">
>     <replace dir="${src}" value="v${version}">
>         <include name="**/*.java"/>
>         <replacetoken><![CDATA[v${previousVersion}]]></replacetoken>
>     </replace>
> </target>
>
> Now I have two properties defined  - "version" and "previousVersion",
which
> I'd provide for a build.
> The problem is  - how do I get this to recurse through all the
> subdirectories under src ?
>
> Also - is this the right approach for my task ?
>
> Thanks in advance (sorry about the previous mail, went accidentally before
I
> completed - M$ outlook..)
>
> Regards,
> Somik
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to