Skip to main content
summaryrefslogtreecommitdiffstats
blob: abfac56ae83ac0e169ef614a3e7095d37df46b64 (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
<project name="build.all" default="run" basedir=".">
	<property name="helper-scripts" value="${basedir}/scripts" />
	<import file="${helper-scripts}/checkCodeQuality.xml" />

	<target name="run">

		<!-- load properties and set timestamp for the build -->
		<property file="build.properties" />
		<tstamp>
			<format property="buildTimestamp" pattern="yyyyMMddHHmm" />
		</tstamp>

		<!-- calculate workspaceDir as parent of this folder, the project's .releng folder (relengBuilderDir) -->
		<property name="relengBuilderDir" value="${basedir}" />
		<dirname file="${relengBuilderDir}" property="workspaceDir" />

		<echo message="workspaceDir=${workspaceDir}" />

		<property name="writableBuildRoot" value="${basedir}/${build-directory}" />
		<property name="buildDir" value="${writableBuildRoot}/${buildType}${buildTimestamp}" />
		<property name="oseeCodePreferences" value="${basedir}/org.eclipse.osee.support.config" />

		<!-- Set Proxy -->
		<antcall target="set-proxy" />

		<!-- this is here in case we are part of the eclipse common build -->
		<property name="relengCommonBuilderDir" value="${workspaceDir}/org.eclipse.dash.common.releng" />
		<property name="relengBaseBuilderDir" value="${workspaceDir}/org.eclipse.releng.basebuilder" />
		<!-- -->

		<property name="thirdPartyJarsDir" value="${writableBuildRoot}/3rdPartyJars" />
		<property name="downloadsDir" value="${writableBuildRoot}/downloads" />

		<!-- Download all required 3rd Party Jars if not found and thirdPartyDownloadLicenseAcceptanceOK="I accept" -->
		<get-code-quality-libraries />

		<pathconvert property="osee.bundles" setonempty="false" pathsep=";">
			<path>
				<dirset dir="${workspaceDir}/../" includes="*osee*" excludes=".osee.data,osee.doc,osee.install,osee.license,org.eclipse.osee.support.build,*releng,*.help,*runConfigs*,*.config,*.feature" />
			</path>
		</pathconvert>

		<set-code-quality-classpath classpath="${classpath}" />

		<all-code-quality-checks bundle.list="${osee.bundles}" />
		<create-html-index bundle.list="${osee.bundles}" output="${buildDir}/index.html" />
	</target>

	<target name="set-proxy">
		<echo message="Setting proxy to ${proxy_host}:${proxy_port}" />
		<setproxy proxyhost="${proxy_host}" proxyport="${proxy_port}" />
	</target>
</project>

Back to the top