ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Syedin <...@sunbay.com>
Subject Re: Tagging a release using cvs task
Date Thu, 20 Dec 2001 10:36:10 GMT
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&#252;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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 

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


Mime
View raw message