summaryrefslogtreecommitdiff
path: root/makefile/studioRepositoryUtils.xml
blob: f405f5fed6718a05b60c3921f3017742d1119e5f (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<?xml version="1.0" encoding="UTF-8"?>
<project name="MOTODEV Studio for Android" default="noDefault">

	<target name="createSiteXML">
		<echoxml file="/tmp/site.xml">
			<site>
				<feature url="features/${studioFeatureName}.${studioFeatureVersion}.jar" id="${studioFeatureName}" version="${studioFeatureVersion}">
					<category name="MOTODEVStudioforAndroid" />
				</feature>
				<category-def name="MOTODEVStudioforAndroid" label="MOTODEV Studio for Android" />
				<feature url="features/${appValidatorFeatureName}.${appValidatorFeatureVersion}.jar" id="${appValidatorFeatureName}" version="${appValidatorFeatureVersion}">
					<category name="MOTODEVStudioforAndroid" />
				</feature>
				<feature url="features/${appValidatorUIFeatureName}.${appValidatorUIFeatureVersion}.jar" id="${appValidatorUIFeatureName}" version="${appValidatorUIFeatureVersion}">
					<category name="MOTODEVStudioforAndroid" />
				</feature>
				<feature url="features/${appValidatorSDKFeatureName}.${appValidatorSDKFeatureVersion}.jar" id="${appValidatorSDKFeatureName}" version="${appValidatorSDKFeatureVersion}">
					<category name="MOTODEVStudioforAndroid" />
				</feature>
			</site>
		</echoxml>
	</target>

	<!-- Was called by generate.language.packs -->
	<target name="createSimpleRepository">
		<antcall target="createSiteXML" />
		<p2.mirror source="${OUTPUT_METADATA_PRODUCT}" destination="file:/${OUTPUT_METADATA_STUDIO}" raw="false">
			<iu id="com.motorola.studio.android.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.ui.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.sdk.feature.feature.group" />
			<slicingoptions followstrict="true" includeoptional="false" includenongreedy="false" followonlyfilteredrequirements="true" includefeatures="true" />
		</p2.mirror>

		<eclipse.publish.featuresAndBundles append="true" artifactrepository="file:/${OUTPUT_METADATA_STUDIO}" artifactrepositoryname="MOTODEV Studio for Android Repository" metadatarepository="file:/${OUTPUT_METADATA_STUDIO}" metadatarepositoryname="MOTODEV Studio for Android Repository" site="file:/tmp/site.xml">

			<features dir="${OUTPUT_METADATA_PRODUCT}" includes="features/com.motorola.studio.android.feature*" />
			<features dir="${OUTPUT_METADATA_PRODUCT}" includes="features/com.motorolamobility.preflighting*" />			
			<bundles dir="${OUTPUT_METADATA_PRODUCT}" includes="plugins/com.motorola.studio.android*" />
			<bundles dir="${OUTPUT_METADATA_PRODUCT}" includes="plugins/com.motorolamobility.studio.android*" />
			<bundles dir="${OUTPUT_METADATA_PRODUCT}" includes="plugins/com.motorolamobility.preflighting*" />
		</eclipse.publish.featuresAndBundles>
	</target>

	<target name="createBasicSiteXML">
			<echoxml file="/tmp/basicsite.xml">
				<site>
					<category-def name="MOTODEVStudioforAndroidBasic" label="MOTODEV Studio for Android Core" />
					<feature url="features/com.motorola.studio.android.basic.feature.${studioFeatureVersion}.jar" id="com.motorola.studio.android.basic.feature" version="${studioFeatureVersion}">
						<category name="MOTODEVStudioforAndroidBasic" />
					</feature>					
					<category-def name="MOTODEVStudioforAndroid" label="MOTODEV Studio for Android App Validator" />
					<feature url="features/${appValidatorFeatureName}.${appValidatorFeatureVersion}.jar" id="${appValidatorFeatureName}" version="${appValidatorFeatureVersion}">
						<category name="MOTODEVStudioforAndroid" />
					</feature>
					<feature url="features/${appValidatorUIFeatureName}.${appValidatorUIFeatureVersion}.jar" id="${appValidatorUIFeatureName}" version="${appValidatorUIFeatureVersion}">
						<category name="MOTODEVStudioforAndroid" />
					</feature>
					<feature url="features/${appValidatorSDKFeatureName}.${appValidatorSDKFeatureVersion}.jar" id="${appValidatorSDKFeatureName}" version="${appValidatorSDKFeatureVersion}">
						<category name="MOTODEVStudioforAndroid" />
					</feature>
				</site>
			</echoxml>
	</target>
	
	<target name="createSimpleBasicRepository">
			<antcall target="createBasicSiteXML" />
			<mkdir dir="${OUTPUT_METADATA_STUDIO_BASIC}"/>
			<copy tofile="${OUTPUT_METADATA_STUDIO_BASIC}/content.xml" file="${MAKEFILE}/repository_skel/content_basic.xml"/>
			<p2.mirror source="${OUTPUT_METADATA_STUDIO_FULL}" destination="file:/${OUTPUT_METADATA_STUDIO_BASIC}" raw="false">
				<iu id="com.motorola.studio.android.basic.feature.feature.group" />		
			<iu id="com.motorolamobility.preflighting.ui.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.sdk.feature.feature.group" />				
				<slicingoptions followstrict="true" includeoptional="false" includenongreedy="false" followonlyfilteredrequirements="true" includefeatures="true" />
			</p2.mirror>

			<eclipse.publish.featuresAndBundles append="true" artifactrepository="file:/${OUTPUT_METADATA_STUDIO_BASIC}" artifactrepositoryname="MOTODEV Studio for Android Core Repository" metadatarepository="file:/${OUTPUT_METADATA_STUDIO_BASIC}" metadatarepositoryname="MOTODEV Studio for Android Core Repository" site="file:/tmp/basicsite.xml">
				<features dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="features/com.motorola.studio.android.basic.feature*" />
				<features dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="features/com.motorolamobility.preflighting*" />
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorola.studio.android.common*" />
	            <bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorola.studio.android.codeutils*"/>        
	            <bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorolamobility.studio.android.db.core*"/>         
	            <bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorola.studio.android.translation*"/>
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorola.studio.android.codesnippets*"/>
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorolamobility.studio.android.certmanager*"/>
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorolamobility.studio.android.logger*"/>
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorolamobility.preflighting*" />
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="plugins/com.motorolamobility.studio.android*" />
				<bundles dir="${OUTPUT_METADATA_STUDIO_FULL}" includes="binary/com.motorolamobility.preflighting*" />
			</eclipse.publish.featuresAndBundles>
			
			<!-- run the category publisher.. there is no ant task to execute it -->
			<java failonerror="true" jar="${eclipse.builder.path}/plugins/${eclipse.builder.launcher}" fork="true">
				<arg value="-application" />
				<arg value="org.eclipse.equinox.p2.publisher.CategoryPublisher" />
				<arg value="-metadataRepository" />
				<arg value="file:/${OUTPUT_METADATA_STUDIO_BASIC}" />
				<arg value="-categoryDefinition" />
				<arg value="file:/tmp/basicsite.xml" />
			</java>
	</target>
	
	<target name="mergeAppValidatorAndStudioRepositories">
		<antcall target="createSiteXML" />
		<p2.mirror destination="${OUTPUT_METADATA_PRODUCT}" source="file:${APPVALIDATOR_OUTPUT}" />
		<java failonerror="true" jar="${eclipse.builder.path}/plugins/${eclipse.builder.launcher}" fork="true">
			<arg value="-application" />
			<arg value="org.eclipse.equinox.p2.publisher.CategoryPublisher" />
			<arg value="-metadataRepository" />
			<arg value="file:/${OUTPUT_METADATA_PRODUCT}" />
			<arg value="-categoryDefinition" />
			<arg value="file:/tmp/site.xml" />
		</java>
	</target>

	<target name="genFullRepo">
		<antcall target="createSiteXML" />
		<p2.mirror destination="file:/${OUTPUT_METADATA_STUDIO_FULL}" raw="false">
			<slicingoptions followstrict="true" includefeatures="true" />
			<source>
				<repository location="file:${OUTPUT_METADATA_PRODUCT}" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_ADT" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_ECLIPSE_PLATFORM" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_EMF_XSD_SDO" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_GEF" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_SEQUOYAH" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_JDT" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_WTP" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_DATATOOLS" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_RSS" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_BIRT" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_MAT" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_PROGUARD" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_PDE" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_MPC" />
				<repository location="file://${BASE_REPOSITORIES_DIR}/REPO_EQUINOX" />
				<repository location="file://${APPVALIDATOR_OUTPUT}" />
			</source>
			<iu id="com.motorola.studio.android.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.ui.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.feature.feature.group" />
			<iu id="com.motorolamobility.preflighting.sdk.feature.feature.group" />
			<iu id="biz.junginger.rss.eclipse.RssPlugin.feature.feature.group" />
			<iu id="com.android.ide.eclipse.adt.feature.group" />
			<iu id="com.android.ide.eclipse.ddms.feature.group" />
			<iu id="com.android.ide.eclipse.hierarchyviewer.feature.group" />
			<iu id="com.android.ide.eclipse.traceview.feature.group" />
			<iu id="org.apache.commons.logging" />
			<iu id="org.eclipse.datatools.enablement.sqlite.feature.feature.group" />
			<iu id="org.eclipse.datatools.sqldevtools.data.feature.feature.group" />
			<iu id="org.eclipse.datatools.connectivity.feature.feature.group" />
			<iu id="org.eclipse.datatools.connectivity.oda.feature.feature.group" />
			<iu id="org.eclipse.datatools.modelbase.feature.feature.group" />
			<iu id="org.eclipse.datatools.sqldevtools.feature.feature.group" />
			<iu id="org.eclipse.datatools.enablement.jdbc.feature.feature.group" />
			<iu id="org.eclipse.datatools.common.doc.user.feature.group" />
			<iu id="org.eclipse.datatools.sqltools.doc.user.feature.group" />
			<iu id="org.eclipse.datatools.connectivity.doc.user.feature.group" />
			<iu id="org.eclipse.datatools.doc.user.feature.group" />
			<iu id="org.eclipse.gef.feature.group" />
			<iu id="org.eclipse.jdt.feature.group" />
			<iu id="org.eclipse.emf.feature.group" />
			<iu id="org.eclipse.emf.ecore.feature.group" />
			<iu id="org.eclipse.emf.ecore.edit.feature.group" />
			<iu id="org.eclipse.emf.edit.ui.feature.group" />
			<iu id="org.eclipse.emf.ecore.editor.feature.group" />
			<iu id="org.eclipse.emf.converter.feature.group" />
			<iu id="org.eclipse.emf.common.feature.group" />
			<iu id="org.eclipse.emf.common.ui.feature.group" />
			<iu id="org.eclipse.emf.mapping.feature.group" />
			<iu id="org.eclipse.emf.mapping.ecore.feature.group" />
			<iu id="org.eclipse.emf.mapping.ecore.editor.feature.group" />
			<iu id="org.eclipse.emf.mapping.ui.feature.group" />
			<iu id="org.eclipse.emf.codegen.feature.group" />
			<iu id="org.eclipse.emf.codegen.ui.feature.group" />
			<iu id="org.eclipse.emf.codegen.ecore.feature.group" />
			<iu id="org.eclipse.emf.codegen.ecore.ui.feature.group" />
			<iu id="org.eclipse.emf.databinding.feature.group" />
			<iu id="org.eclipse.emf.databinding.edit.feature.group" />
			<iu id="org.eclipse.emf.edit.feature.group" />
			<iu id="org.eclipse.emf" />
			<iu id="org.eclipse.emf.ant" />
			<iu id="org.eclipse.emf.ecore" />
			<iu id="org.eclipse.emf.common.ui" />
			<iu id="org.eclipse.emf.edit.ui" />
			<iu id="org.eclipse.emf.common" />
			<iu id="org.eclipse.emf.mapping.ui" />
			<iu id="org.eclipse.emf.mapping" />
			<iu id="org.eclipse.emf.ecore.xmi" />
			<iu id="org.eclipse.emf.ecore.change" />
			<iu id="org.eclipse.emf.ecore.change.edit" />
			<iu id="org.eclipse.emf.ecore.edit" />
			<iu id="org.eclipse.emf.ecore.editor" />
			<iu id="org.eclipse.emf.importer" />
			<iu id="org.eclipse.emf.importer.ecore" />
			<iu id="org.eclipse.emf.importer.rose" />
			<iu id="org.eclipse.emf.importer.java" />
			<iu id="org.eclipse.emf.exporter" />
			<iu id="org.eclipse.emf.converter" />
			<iu id="org.eclipse.emf.mapping.ecore" />
			<iu id="org.eclipse.emf.mapping.ecore.editor" />
			<iu id="org.eclipse.emf.mapping.ecore2ecore" />
			<iu id="org.eclipse.emf.mapping.ecore2ecore.editor" />
			<iu id="org.eclipse.emf.mapping.ecore2xml" />
			<iu id="org.eclipse.emf.mapping.ecore2xml.ui" />
			<iu id="org.eclipse.emf.edit" />
			<iu id="org.eclipse.emf.codegen" />
			<iu id="org.eclipse.emf.codegen.ui" />
			<iu id="org.eclipse.emf.codegen.ecore" />
			<iu id="org.eclipse.emf.codegen.ecore.ui" />
			<iu id="org.eclipse.emf.databinding.edit" />
			<iu id="org.eclipse.emf.databinding" />
			<iu id="org.eclipse.mat.feature.feature.group" />
			<iu id="org.eclipse.mat.chart.feature.feature.group" />
			<iu id="org.eclipse.birt.core" />
			<iu id="org.eclipse.birt.chart.engine" />
			<iu id="org.eclipse.birt.chart.device.extension" />
			<iu id="org.eclipse.birt.chart.device.swt" />
			<iu id="org.eclipse.birt.chart.engine.extension" />
			<iu id="org.eclipse.xsd.edit" />
			<iu id="org.eclipse.xsd" />
			<iu id="org.eclipse.sequoyah.device.common.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.device.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.localization.tools.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.localization.android.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.vnc.vncviewer.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.vnc.protocol.feature.feature.group" />
			<iu id="org.eclipse.sequoyah.vnc.feature.feature.group" />
			<iu id="org.eclipse.wst.common.fproj.feature.group" />
			<iu id="org.eclipse.wst.jsdt.feature.feature.group" />
			<iu id="org.eclipse.wst.server_adapters.feature.feature.group" />
			<iu id="org.eclipse.wst.web_ui.feature.feature.group" />
			<iu id="org.eclipse.wst.xml_core.feature.feature.group" />
			<iu id="org.eclipse.wst.xml_ui.feature.feature.group" />
			<iu id="org.eclipse.wst.xsl.feature.feature.group" />
			<iu id="org.eclipse.xsd.feature.group" />
			<iu id="org.eclipse.xsd.edit.feature.group" />
			<iu id="org.eclipse.pde.feature.group" />
			<iu id="net.certiv.proguarddt.feature.feature.group" />
			<iu id="org.eclipse.epp.mpc.feature.group" />
			<iu id="org.eclipse.equinox.p2.discovery.feature.feature.group" />
		</p2.mirror>

		<!-- Also mirror de product -->
		<p2.mirror source="${OUTPUT_METADATA_PRODUCT}" destination="file:/${OUTPUT_METADATA_STUDIO_FULL}" />

		<!-- run the category publisher.. there is no ant task to execute it -->
		<java failonerror="true" jar="${eclipse.builder.path}/plugins/${eclipse.builder.launcher}" fork="true">
			<arg value="-application" />
			<arg value="org.eclipse.equinox.p2.publisher.CategoryPublisher" />
			<arg value="-metadataRepository" />
			<arg value="file:/${OUTPUT_METADATA_STUDIO_FULL}" />
			<arg value="-categoryDefinition" />
			<arg value="file:/tmp/site.xml" />
		</java>

	</target>

	<target name="genAdditionsArchive">

	</target>

	<target name="genNativeArchive">

	</target>

	<target name="noDefault">
		<echo message="You must specify a target when invoking this file" />
	</target>
</project>