Subversion Repositories DevTools

Rev

Rev 1974 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1974 Rev 1978
Line 59... Line 59...
59
		<or>
59
		<or>
60
			<isset property="ivy.xml.exists"/>
60
			<isset property="ivy.xml.exists"/>
61
			<isset property="ivy-template.xml.exists"/>
61
			<isset property="ivy-template.xml.exists"/>
62
		</or>
62
		</or>
63
		<then>
63
		<then>
-
 
64
			<if>
-
 
65
				<!-- if we are building using the auto build tool, or we are not, and GBE_DPKG_CACHE isn't set,
-
 
66
					then use ${basedir}/build/.ivy/cache as the ivy cache.
-
 
67
					else use the GBE_DPKG_CACHE location.
-
 
68
				-->
-
 
69
				<or>
-
 
70
					<and>
-
 
71
						<isset property="env.GBE_ABT"/>
-
 
72
						<not><equals arg1="${env.GBE_ABT}" arg2=""/></not>
-
 
73
					</and>
-
 
74
					<not>
-
 
75
                        <and>
-
 
76
                            <isset property="env.GBE_DPKG_CACHE"/>
-
 
77
                            <length string="${env.GBE_DPKG_CACHE}" trim="true" when="greater" length="0"/>
-
 
78
                        </and>
-
 
79
                    </not>
-
 
80
				</or>
-
 
81
				<then>
-
 
82
					<property name="ivy.cache.home" value="${basedir}/build/.ivy/cache"/>
-
 
83
				</then>
-
 
84
				<else>
-
 
85
					<property name="ivy.cache.home" value="${env.GBE_DPKG_CACHE}/.ivy/cache"/>
-
 
86
				</else>
-
 
87
			</if>
-
 
88
			
-
 
89
			<echo taskname="ivy:cache">${ivy.cache.home}</echo>
-
 
90
			
64
			<ivy:configure file="${dirname.load-using-macrodef}/ivyconf.xml" />
91
			<ivy:configure file="${dirname.load-using-macrodef}/ivyconf.xml" />
65
		</then>
92
		</then>
66
	</if>
93
	</if>
67
	
94
	
68
	<!-- 
95
	<!-- 
69
	  - Do we have an environment variable for GBE_DPKG_CACHE?
96
	  - Do we have an environment variable for GBE_DPKG_CACHE?
70
	  - If so, use it as the build location.
97
	  - If so, use it as the build location.
71
	  - If not, look for a properties file : ant-build-properties (if one exists)
98
	  - If not, look for a properties file : ant-build-properties (if one exists)
72
	  - If the properties are not found, default to ${user.home}/build-repository
99
	  - If the properties are not found, default to ${basedir}/build/.dpkg/cache
73
	  -->
100
	  -->
74
	<if>
101
	<if>
-
 
102
        <and>
75
		<isset property="env.GBE_DPKG_CACHE"/>
103
        	<isset property="env.GBE_DPKG_CACHE"/>
-
 
104
            <length string="${env.GBE_DPKG_CACHE}" trim="true" when="greater" length="0"/>
-
 
105
        </and>
76
		<then>
106
		<then>
77
			<property name="build.repository" value="${env.GBE_DPKG_CACHE}"/>
107
			<property name="build.repository" value="${env.GBE_DPKG_CACHE}"/>
78
			<echo taskname="ant-using">Using environment variable 'GBE_DPKG_CACHE' as build.repository from : ${build.repository}</echo>
108
			<echo taskname="ant-using">Using environment variable 'GBE_DPKG_CACHE' as build.repository from : ${build.repository}</echo>
79
		</then>
109
		</then>
80
		<else>
110
		<else>
Line 84... Line 114...
84
				<then>
114
				<then>
85
					<property file="${user.home}/ant-build-properties"/>
115
					<property file="${user.home}/ant-build-properties"/>
86
					<echo taskname="ant-using">Using 'ant-build-properties' file for build.repository as : ${build.repository}</echo>
116
					<echo taskname="ant-using">Using 'ant-build-properties' file for build.repository as : ${build.repository}</echo>
87
				</then>
117
				</then>
88
				<else>
118
				<else>
89
					<property name="build.repository" value="${user.home}/build-repository"/>
119
					<property name="build.repository" value="${basedir}/build/.dpkg/cache"/>
90
				</else>
120
				</else>
91
			</if>
121
			</if>
92
		</else>
122
		</else>
93
	</if>
123
	</if>
94
 
124