ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Rekk <konstantin.r...@gbv.de>
Subject equal weights in specialMeaning on latest-revision
Date Thu, 08 Jan 2009 02:56:52 GMT
Hi,

could somebody here please give me some feedback if the following
approach makes sense ( in case it does, there is a patch to make that
possible).

Use case - 
Two Reps: Local and Shared
Local: on developers machine, local-publish goes there, status
integration
Shared: integration tested goes there, status integration

Both reps should have a common buildnumber, i.e. buildnumber is
constructed over both reps (for example by using a buildnumber property
which is checked in SCM, using publication date for builds from
different machines would be an issue). 

Why would one want to do that? So most of the time a developer X working
on module A will use local version of A as dependency for B (B->A) when
working on both modules (A and B), but he should use A's fresh version
from shared after it was integration tested successfully and if it's the
latest according to build number (for example the next morning). An
other developer not working on A but using it (say for some modul C)
would always use the version from shared. Nevertheless it should be easy
to see where a version comes from (local or shared) just looking at the
jar's name.

So the idea is to have some kind of 1.0-local-buildnumber and
1.0-int-buildnumber and forcing the latest-revision to ignore local and
int:

<latest-strategies>
			<latest-revision name="dev-revision"
usedefaultspecialmeanings="false">
				<specialMeaning name="int" value="0"/>
				<specialMeaning name="local" value="0"/>
			</latest-revision>
</latest-strategies> 

It wouldn't work with current source, so in case this approach makes
some sense I provided a tiny patch at:
https://issues.apache.org/jira/browse/IVY-997

I may well be missing some core concept or misusing some features. Any
tips are appreciated.

Konstantin


Mime
View raw message