ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject Setting property on cvs checkout success ?
Date Thu, 28 Jul 2005 10:00:35 GMT

Hi,

i'm doing a checkout of several modules in cvs via <foreach> =

...
<foreach list="${module}"
	 target="checkout"
	 param="modul"
	 delimiter=","
	 trim="true"
	 inheritall="true" />
...

<target name="checkout">
...

<if>
	<not>
	<equals arg1="${mainlinetag}" arg2="" />
	</not>
	<then>
	<cvs cvsroot="${cvsroot}"
	    dest="."
	    package="'${_module}'"
	    tag="${mainlinetag}"
	    command="checkout" />
	<echo>Modul = ${_module} mit Mainlinetag = ${mainlinetag}</echo>
	</then>
	<else>
	<cvs cvsroot="${cvsroot}"
	    dest="."
	    package="'${_module}'"
	    tag="${tag}"
	    command="checkout" />
	<echo>Modul = ${_module} in Version = ${tag}</echo>
	</else>
</if>
</target>

Problem = that script runs under cruisecontrol. If one of the modules
doesn't exist in cvs repository, i nevertheless get a Build successful
message
from my emailpublisher.

Question = 
How to set a property in cvs .. checkout part , that is only set, if
_all_
modules contained in list ${module} are properly checked out.
I want to get a Build Failed if only one of the modules can't be checked
out
properly.

Is that possible within that foreach logic ?!

Thanks for any hints !!

bye4now, Gilbert




Gilbert

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


Mime
View raw message