You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dirk Weigenand <Di...@smb-tec.com> on 2001/12/19 15:14:54 UTC
Tagging a release using cvs task
Hello List,
i try to tag a release using the cvs task in the following target:
<target name="build" depends="prepare" >
<!-- get the latest source of the tip -->
<cvs command="update -d -A" />
<!-- do a clean rebuild -->
<antcall target="rebuild" />
<!-- Oh it compiles so let's ship it... -->
<!-- update some properties used to identify this particular release
-->
<propertyfile file="src/de/invers/kalkulator/version.properties">
<entry key="invers.kalkulator.version-date" type="date"
value="now"
pattern="dd.MM.yyyy" />
<entry key="invers.kalkulator.buildno" type="int" operation="+"
default="0" />
</propertyfile>
<!-- pull in the properties so we can use to tag the release -->
<property file="src/de/invers/kalkulator/version.properties" />
<!-- commit the just updated properties to CVS so they are included in
the release -->
<cvs command="commit -m 'Commit für Release-build am
${TODAY_DE}'" />
<!-- Build up the release tag from our just updated properties (replaced
here by the string
SOME_LONGISH_RELEASE_TAG for brevity). It's well formed regarding
CVS's expectations
regarding release tags. -->
<property name="release.tag"
value="Release_${TODAY_DE}_VERSION_SOME_LONGISH_RELEASE_TAG"
/>
<!-- Now comes the culprit: I seem not be able to meet my goal using the
cvs task with
the following incantation. If i pulled the property ${release.tag}
into the value
of the command property it would be passed unchanged (i.e. not
expanded to cvs, wich
would complain (justly so) about a not well formed release tag,
i.e. no $-sign etc.
-->
<cvs command="tag" tag="${release.tag}" />
<!-- Do an update with the release tag (not strictly necessary?) -->
<cvs command="update -d -A" tag="${release.tag}" />
</target>
So the question is probably is what i outlined above possible with the
CVS task or do i
have to resort to <apply/>.
Or am i completely missing something??
Anny comments are appreciated.
regards,
Dirk
--
_____________________________________________________________________
Dirk Weigenand mailto:Dirk.Weigenand@smb-tec.com
SMB GmbH http://www.smb-tec.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tagging a release using cvs task
Posted by Dirk Weigenand <Di...@smb-tec.com>.
Alexander Syedin schrieb:
>
> Hello Dirk,
> "tag" attribute is used to provide "-r ${release.tag}" argument to cvs command.
> Documentation seems to be non-ambiguous in description of this attribute:
> "... the tag of the package/module to check out."
I should have been reading more carefully not interpreting things in or
experimenting
wildly...
> So, you have to use something like: <cvs command="tag ${release.tag} ${dirs.to.tag}"/> to accomplish your target.
Thanks,
Dirk
> --
> SY. Alexander Syedin
_____________________________________________________________________
Dirk Weigenand mailto:Dirk.Weigenand@smb-tec.com
SMB GmbH http://www.smb-tec.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tagging a release using cvs task
Posted by Alexander Syedin <ac...@sunbay.com>.
Hello Dirk,
"tag" attribute is used to provide "-r ${release.tag}" argument to cvs command.
Documentation seems to be non-ambiguous in description of this attribute:
"... the tag of the package/module to check out."
So, you have to use something like: <cvs command="tag ${release.tag} ${dirs.to.tag}"/> to accomplish your target.
--
SY. Alexander Syedin
On 19 Dec 2001 at 03:14:54, Dirk Weigenand wrote:
> Hello List,
>
> i try to tag a release using the cvs task in the following target:
>
> <target name="build" depends="prepare" >
> <!-- get the latest source of the tip -->
> <cvs command="update -d -A" />
>
> <!-- do a clean rebuild -->
> <antcall target="rebuild" />
>
> <!-- Oh it compiles so let's ship it... -->
>
> <!-- update some properties used to identify this particular release
> -->
> <propertyfile file="src/de/invers/kalkulator/version.properties">
> <entry key="invers.kalkulator.version-date" type="date"
> value="now"
> pattern="dd.MM.yyyy" />
> <entry key="invers.kalkulator.buildno" type="int" operation="+"
> default="0" />
> </propertyfile>
>
> <!-- pull in the properties so we can use to tag the release -->
> <property file="src/de/invers/kalkulator/version.properties" />
>
> <!-- commit the just updated properties to CVS so they are included in
> the release -->
> <cvs command="commit -m 'Commit für Release-build am
> ${TODAY_DE}'" />
>
> <!-- Build up the release tag from our just updated properties (replaced
> here by the string
> SOME_LONGISH_RELEASE_TAG for brevity). It's well formed regarding
> CVS's expectations
> regarding release tags. -->
> <property name="release.tag"
> value="Release_${TODAY_DE}_VERSION_SOME_LONGISH_RELEASE_TAG"
> />
>
> <!-- Now comes the culprit: I seem not be able to meet my goal using the
> cvs task with
> the following incantation. If i pulled the property ${release.tag}
> into the value
> of the command property it would be passed unchanged (i.e. not
> expanded to cvs, wich
> would complain (justly so) about a not well formed release tag,
> i.e. no $-sign etc.
> -->
> <cvs command="tag" tag="${release.tag}" />
>
> <!-- Do an update with the release tag (not strictly necessary?) -->
> <cvs command="update -d -A" tag="${release.tag}" />
> </target>
>
> So the question is probably is what i outlined above possible with the
> CVS task or do i
> have to resort to <apply/>.
>
> Or am i completely missing something??
>
> Anny comments are appreciated.
>
> regards,
> Dirk
> --
> _____________________________________________________________________
> Dirk Weigenand mailto:Dirk.Weigenand@smb-tec.com
> SMB GmbH http://www.smb-tec.com
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tagging a release using cvs task
Posted by Dirk Weigenand <Di...@smb-tec.com>.
Conor MacNeill schrieb:
>
> > -----Original Message-----
> > From: Dirk.Weigenand@smb-tec.com [mailto:Dirk.Weigenand@smb-tec.com]
> > Sent: Thursday, 20 December 2001 1:15 AM
> > To: ant-user@jakarta.apache.org
> > Subject: Tagging a release using cvs task
> >
> >
> > Hello List,
> >
> > i try to tag a release using the cvs task in the following target:
> >
>
> This works for me
>
> <cvs dest="." command="tag BUILD_${buildnum}"/>
Thanks Conor, works. I was under the impression the that the property
would not be expanded...
regards,
Dirk
--
_____________________________________________________________________
Dirk Weigenand mailto:Dirk.Weigenand@smb-tec.com
SMB GmbH http://www.smb-tec.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Tagging a release using cvs task
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
> -----Original Message-----
> From: Dirk.Weigenand@smb-tec.com [mailto:Dirk.Weigenand@smb-tec.com]
> Sent: Thursday, 20 December 2001 1:15 AM
> To: ant-user@jakarta.apache.org
> Subject: Tagging a release using cvs task
>
>
> Hello List,
>
> i try to tag a release using the cvs task in the following target:
>
This works for me
<cvs dest="." command="tag BUILD_${buildnum}"/>
Conor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>