blob: 22683cddefe2a7fe817aa8a5b010d1b2e828d2f1 [file] [log] [blame]
Konstantin Komissarchik06624382015-10-13 10:13:04 -07001<!--
2 ******************************************************************************
Konstantin Komissarchik04f3c052017-12-07 10:59:32 -08003 * Copyright (c) 2017 Oracle
Konstantin Komissarchik06624382015-10-13 10:13:04 -07004 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Konstantin Komissarchik - initial implementation and ongoing maintenance
11 ******************************************************************************
12-->
13
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070014<project name="dtp" default="full-build">
Konstantin Komissarchik06624382015-10-13 10:13:04 -070015
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070016 <dirname property="root.dir" file="${ant.file.dtp}"/>
17 <property name="build.dir" value="${root.dir}/build"/>
18 <property name="releng.dir" value="${root.dir}/releng"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070019
Konstantin Komissarchik06624382015-10-13 10:13:04 -070020
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070021 <delete dir="releng/corundum" quiet="true"/>
Konstantin Komissarchik04f3c052017-12-07 10:59:32 -080022 <property name="corundum-url" value="https://hudson.eclipse.org/sapphire/job/Corundum/lastSuccessfulBuild/artifact/corundum.zip"/>
23 <get src="${corundum-url}" dest="releng/corundum.zip" usetimestamp="true"/>
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070024 <unzip src="releng/corundum.zip" dest="releng/corundum"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070025
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070026 <import file="releng/corundum/corundum.xml"/>
27
28 <import>
29 <fileset dir="releng/corundum/extensions/eclipse.org" includes="*.xml"/>
30 </import>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070031
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070032
Konstantin Komissarchik06624382015-10-13 10:13:04 -070033 <!--
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070034 locate-source
Konstantin Komissarchik06624382015-10-13 10:13:04 -070035 -->
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070036
37 <macrodef name="locate-source">
Konstantin Komissarchik06624382015-10-13 10:13:04 -070038 <sequential>
39
40 <if>
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070041 <not>
42 <and>
43 <isset property="source.location"/>
44 <available file="${source.location}"/>
45 </and>
46 </not>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070047 <then>
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070048
49 <echo message="Copying plugins and features into a consolidated source folder..."/>
50
51 <var name="source.location" value="${build.dir}/source"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070052
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070053 <delete dir="${source.location}" quiet="true"/>
54 <mkdir dir="${source.location}"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070055
56 <for param="git.repo">
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070057 <dirset dir="${root.dir}/../.." includes="org.eclipse.*" excludes="org.eclipse.datatools.nl"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070058 <sequential>
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070059 <copy todir="${source.location}">
Konstantin Komissarchik06624382015-10-13 10:13:04 -070060 <fileset dir="@{git.repo}" includes="plugins/**"/>
61 <fileset dir="@{git.repo}" includes="features/**"/>
62 </copy>
63 </sequential>
64 </for>
65
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070066 <copy todir="${source.location}/features">
Konstantin Komissarchik06624382015-10-13 10:13:04 -070067 <fileset dir="${root.dir}/releng" includes="org.eclipse.datatools/**"/>
68 </copy>
Konstantin Komissarchik831193e2015-10-22 18:17:07 -070069
Konstantin Komissarchik831193e2015-10-22 18:17:07 -070070 </then>
71 </if>
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070072
Konstantin Komissarchik831193e2015-10-22 18:17:07 -070073 </sequential>
74 </macrodef>
75
76
Konstantin Komissarchik06624382015-10-13 10:13:04 -070077 <!--
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070078 clean-source
Konstantin Komissarchik06624382015-10-13 10:13:04 -070079 -->
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070080
81 <macrodef name="clean-source">
82 <sequential>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070083
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070084 <delete dir="${build.dir}/source" quiet="true"/>
85 <var name="source.location" unset="true"/>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070086
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070087 </sequential>
88 </macrodef>
Konstantin Komissarchik06624382015-10-13 10:13:04 -070089
90
91 <!--
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070092 pre-finalize-repository
Konstantin Komissarchik06624382015-10-13 10:13:04 -070093 -->
Konstantin Komissarchik06624382015-10-13 10:13:04 -070094
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070095 <macrodef name="pre-finalize-repository">
Konstantin Komissarchik06624382015-10-13 10:13:04 -070096 <sequential>
97
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -070098 <delete>
99 <fileset dir="${build.dir}/repository">
100 <include name="epl-v10.html"/>
101 <include name="notice.html"/>
102 <include name="${root.feature}_*.jar"/>
103 </fileset>
104 </delete>
Konstantin Komissarchik06624382015-10-13 10:13:04 -0700105
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -0700106 <with-target name="${configuration.recommended}">
Konstantin Komissarchikd7cb76d2017-01-13 11:16:45 -0800107 <for list="javax.wsdl,javax.xml,net.sourceforge.lpg.lpgjavaruntime,org.apache.xerces,org.apache.xml.resolver,org.apache.xml.serializer,org.apache.lucene.core,org.apache.lucene.analyzers-common,org.apache.lucene.queryparser" param="bundle">
Konstantin Komissarchikf62117c2016-04-07 19:04:01 -0700108 <sequential>
109 <echo message="Mirroring @{bundle} bundle"/>
110 <find-eclipse-bundle property=".bundle" eclipse="${.target}" bundle="@{bundle}"/>
111 <copy file="${.bundle}" todir="${build.dir}/repository/plugins"/>
112 <var name=".bundle" unset="true"/>
113 </sequential>
114 </for>
115 </with-target>
Konstantin Komissarchik06624382015-10-13 10:13:04 -0700116
Konstantin Komissarchikf3d5dfa2015-10-15 13:27:22 -0700117 </sequential>
118 </macrodef>
Konstantin Komissarchik06624382015-10-13 10:13:04 -0700119
120
121</project>