summaryrefslogtreecommitdiffstats
path: root/build/release/aspectj-cc.xml
blob: 9b6c8bede6c0e323ec03753dd1f97ee9faf009e7 (plain)
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
104
105
106
107
108
<?xml version="1.0"?>
<!-- ========================================================================= -->
<!-- Copyright (c) 2005 Contributors.                                          -->
<!-- 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: (See CVS checkins)                                          -->
<!-- ========================================================================= -->
<project name="aspectj-cc" basedir="." default="all">
	
	<target name="all" depends="init">
		<antcall target="cvs-update"/>
		<aspectj-build target="all"/>
		<antcall target="cc-complete"/>
	</target>	
	
    <target name="cvs-update" depends="init"
		description="update AspectJ source tree">
		<cvs cvsroot="${cvs.root}"
		          dest="${aspectj.modules.rdir}"
		       package="${cvs.module}" 
		         quiet="on" 
		   failonerror="on" 
		       command="update -dP" />
	</target>

	<target name="cc-complete" depends="init"
		description="post-process cruise control build">
		<!-- see ${aj.build.dir}/failures.txt -->
	</target>
    	
	<target name="create-cc-properties">
		<propertyfile file="created-aspectj-cc.properties"
			comment="Rename to aspectj-cc.properties, put with aspectj-cc script">
			<entry key="cvs.root"
				value=":pserver:anonymous@dev.eclipse.org:/home/technology"/>
			<entry key="cvs.module" value="org.aspectj/modules"/>
			<entry key="known.hosts" value="hosts.txt"/>
			<entry key="ftp.userid" value="user"/>
			<entry key="ftp.password" value="password"/>
			<entry key="ftp.host" value="download.eclipse.org:dev"/>
			<entry key="aspectj.modules.rdir" value="org.aspectj/modules"/>
			<entry key="build.version" value="1.5.0"/>
			<entry key="build.version.base" value="1.5"/>
			<entry key="build.version.long" value="1.5.0"/>
			<entry key="build.version.short" value="1.5"/>
			<entry key="java.13" value="c:/home/apps/jdk13"/>
			<entry key="java.14" value="c:/home/apps/jdk14"/>
			<entry key="java.15" value="c:/home/apps/jdk15"/>
		</propertyfile>
	</target>

    <target name="init" depends="init-properties"/>
    
	<target name="init-properties">
		<property file="${basedir}/aspectj-cc.properties" />
		<property name="aspectj.build.dir"
			location="${basedir}/${aspectj.modules.rdir}/build"/>		
		<property name="local.properties"
			location="${aspectj.build.dir}/local.properties"/>		
	</target>
    
	<target name="check-local-properties">
		<condition property="local.properties.empty" value="true">
			<length file="${local.properties}" 
				when="equal" length="0"/>
		</condition>
		<antcall target="do-write-local-properties"/>
    </target>
    
	<target name="do-write-local-properties" depends="init"
		if="local.properties.empty"
		unless="do-write-local-properties.done">
		<propertyfile file="${local.properties}">
			<entry key="build.version" value="${build.version}"/> 
			<entry key="build.version.base" value="${build.version.base}"/> 
			<entry key="build.version.long" value="${build.version.long}"/> 
			<entry key="build.version.short" value="${build.version.short}"/> 
			<entry key="java.13" value="${java.13}"/> 
			<entry key="java.14" value="${java.14}"/> 
			<entry key="java.15" value="${java.15}"/> 
		</propertyfile>
		<property name="do-write-local-properties.done" value="true"/>
    </target>
			
	<macrodef name="aspectj-build">
	    <attribute name="target"/>
	    <sequential>
			<antcall target="check-local-properties"/>
			<fail message="did not find local.properties=${local.properties}">
				<condition>
					<length file="${local.properties}" 
						when="equal" length="0"/>
				</condition>
			</fail>
			<ant
				antfile="release/build.xml"
				target="@{target}"
				dir="${basedir}/${aspectj.modules.rdir}/build" 
				inheritAll="false"
				/>
	    </sequential>
    </macrodef>
		    
</project>