Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 35b917124f0954be6ae15b43d959f82d8ecb3912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<!--
 ******************************************************************************
 * Copyright (c) 2008, 2010 VMware Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   VMware Inc. - initial contribution
 ******************************************************************************
-->
<ivysettings>

	<typedef name="s3" classname="org.springframework.aws.ivy.S3Resolver"/>

	<settings defaultResolver="external-lookup" defaultLatestStrategy="latest-lexico"/>

	<caches resolutionCacheDir="${ivy.cache.dir}/resolution" repositoryCacheDir="${ivy.cache.dir}/repository"
			ivyPattern="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
			artifactPattern="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
			useOrigin="false" checkUpToDate="false"/>

	<macrodef name="s3repo">
		<attribute name="bucket"/>
		<attribute name="artifact.type"/>
		<attribute name="release.type"/>
		<url name="s3.read.resolver">
			<ivy pattern="http://@{bucket}/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
			<artifact pattern="http://@{bucket}/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
		</url>
	</macrodef>	

	<macrodef name="eclipse-build">
		<attribute name="artifact.type"/>
		<attribute name="release.type"/>
		<sftp descriptor="required" user="${eclipse.buildId}" keyFile="${key.file}" host="build.eclipse.org">
			<ivy pattern="/opt/public/rt/virgo/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
			<artifact pattern="/opt/public/rt/virgo/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
		</sftp>
	</macrodef>

	<macrodef name="eclipse-build-read">
		<attribute name="artifact.type"/>
		<attribute name="release.type"/>
		<url name="eclipse.build.read.resolver">
			<ivy pattern="http://build.eclipse.org/rt/virgo/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
			<artifact pattern="http://build.eclipse.org/rt/virgo/ivy/@{artifact.type}/@{release.type}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
		</url>
	</macrodef>

	<resolvers>
<!-- Lookup repositories -->

		<filesystem name="integration" descriptor="required" >
			<ivy pattern="${integration.repo.dir}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
			<artifact pattern="${integration.repo.dir}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
		</filesystem>

		<chain name="external-lookup" returnFirst="true">
			<s3repo name="bundle-external-repository"			bucket="repository.springsource.com" artifact.type="bundles" release.type="external"/>
			<s3repo name="library-external-repository"			bucket="repository.springsource.com" artifact.type="libraries" release.type="external"/>
		</chain>

		<chain name="third-party-lookup" returnFirst="true">
			<s3repo name="bundle-release-repository"		bucket="repository.springsource.com" artifact.type="bundles" release.type="release"/>
			<s3repo name="bundle-milestone-repository"		bucket="repository.springsource.com" artifact.type="bundles" release.type="milestone"/>
			<s3repo name="bundle-snapshot-repository"		bucket="repository.springsource.com" artifact.type="bundles" release.type="snapshot"/>
			<s3repo name="library-release-repository"		bucket="repository.springsource.com" artifact.type="libraries" release.type="release"/>
			<s3repo name="library-milestone-repository"		bucket="repository.springsource.com" artifact.type="libraries" release.type="milestone"/>
			<s3repo name="library-snapshot-repository"		bucket="repository.springsource.com" artifact.type="libraries" release.type="snapshot"/>
		</chain>

		<chain name="virgo-lookup" returnFirst="true">
			<resolver ref="integration"/>
			<eclipse-build-read name="eclipse-bundle-release-repository"	    artifact.type="bundles" release.type="release"/>
			<eclipse-build-read name="eclipse-bundle-milestone-repository"	    artifact.type="bundles" release.type="milestone"/>
			<eclipse-build-read name="eclipse-bundle-snapshot-repository"	    artifact.type="bundles" release.type="snapshot"/>
			<eclipse-build-read name="eclipse-library-release-repository"	    artifact.type="libraries" release.type="release"/>
			<eclipse-build-read name="eclipse-library-milestone-repository"		artifact.type="libraries" release.type="milestone"/>
			<eclipse-build-read name="eclipse-library-snapshot-repository"	    artifact.type="libraries" release.type="snapshot"/>
		</chain>

		<chain name="gemini-lookup" returnFirst="true">
			<resolver ref="virgo-lookup"/>
			<resolver ref="external-lookup"/>
		</chain>

<!-- Publishing repositories -->
		<eclipse-build name="eclipse-remote-bundle-publish"		artifact.type="bundles"		release.type="${adjusted.release.type}"/>
		<eclipse-build name="eclipse-remote-library-publish"	artifact.type="libraries"	release.type="${adjusted.release.type}"/>
		
	</resolvers>

	<modules>
		<module organisation="org.springframework.*"	resolver="third-party-lookup"/>
		<module organisation="com.springsource.*"		resolver="third-party-lookup"/>
		<module organisation="org.eclipse.virgo.*"		resolver="virgo-lookup"/> <!-- This will also catch all the org.eclipse.virgo.mirror artifacts from orbit -->
		<module organisation="org.eclipse.gemini.*"		resolver="gemini-lookup"/>
	</modules>

</ivysettings>

Back to the top