Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-06-04 17:03:10 -0400
committerDavid Williams2013-06-04 17:03:10 -0400
commit8e01a70b2329a0b4c233cab46d00fd66548cc16b (patch)
treef975260957be9da252458e2880bc6c03b4d972c6 /eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml
parent88ae409a987704e00a8497614662c31ab3e1e6d5 (diff)
downloadeclipse.platform.releng.aggregator-8e01a70b2329a0b4c233cab46d00fd66548cc16b.tar.gz
eclipse.platform.releng.aggregator-8e01a70b2329a0b4c233cab46d00fd66548cc16b.tar.xz
eclipse.platform.releng.aggregator-8e01a70b2329a0b4c233cab46d00fd66548cc16b.zip
Bug 409817 - All API Tools reports are missing
work in test branch: david_williams/apitooling
Diffstat (limited to 'eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml')
-rw-r--r--eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml115
1 files changed, 115 insertions, 0 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml
new file mode 100644
index 00000000..421e5cb3
--- /dev/null
+++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/api-tools-builder.xml
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ======================================================================
+ Jun 4, 2013 11:06:50 AM
+
+ API Tools builder integration
+ This buildfile calls all of the post-build Ant tasks
+
+ This buildfile requires the apitooling-ant.jar and the api-tasks.properties file
+ from the org.eclipse.pde.api.tools bundle
+
+ mrennie
+ ====================================================================== -->
+<project name="API Tools builder integration" default="apiToolsReports">
+
+ <!-- The name for the build - i.e. I20130603-2000 -->
+ <property name="buildLabel" value=""/>
+
+ <!-- The on-disk location of the previous Eclipse build - for example Eclipse 4.2.2 -->
+ <property name="previousBaselineName" value=""/>
+
+ <!-- Default buildDirectory -->
+ <property name="buildDirectory" value=""/>
+
+ <!--
+ The default target that calls apitooling.apifreeze, apitooling.analysis and apitooling.apideprecation
+ and their respective _reportconversion tasks
+ -->
+ <target name="apiToolsReports">
+ <!-- a dir to extract previous baselines in -->
+ <property name="reference" value="${buildDirectory}/apitooolingreference" />
+ <mkdir dir="${reference}"/>
+
+ <!-- make a dir to place the XML and HTML output in, per build -->
+ <property name="report" value="${buildDirectory}/${buildLabel}/apitools"/>
+ <mkdir dir="${report}"/>
+ <property name="freeze_report" value="${report}/freeze_report.xml"/>
+ <touch file="${freeze_report}"/>
+ <property name="freeze_html" value="${report}/freeze_report.html"/>
+
+ <!-- grab the currently built + zipped build -->
+ <property name="current_location" value="${buildDirectory}/${buildLabel}/eclipse-SDK-${buildLabel}-win32.zip" />
+
+ <!-- we would have to fetch the baseline we wanted, or perhaps just link to its location -->
+ <property name="baseline" value="${reference}/${previousBaselineName}" />
+
+ <!-- create properties for the filters -->
+ <property name="exclude_list_location" value="${buildDirectory}/apiexclude/exclude_list.txt" />
+ <property name="exclude_list_external_location" value="${buildDirectory}/apiexclude/exclude_list_external.txt" />
+
+ <!-- run the freeze task -->
+ <apitooling.apifreeze
+ baseline="${baseline}"
+ profile="${current_location}"
+ report="${freeze_report}"
+ excludelist="${exclude_list_location}"
+ debug="true" />
+ <apitooling.apifreeze_reportconversion
+ xmlfile="${freeze_report}"
+ htmlfile="${freeze_html}"
+ debug="true"/>
+
+ <!-- create the Ant filterstore directory -->
+ <property name="filter_store" value="${buildDirectory}/apifilters"/>
+ <mkdir dir="${filter_store}"/>
+
+ <!-- copy all of the .api_filters files out of the plugins from their source -->
+ <copy todir="${filter_store}">
+ <fileset
+ dir="${buildDirectory}/plugins"
+ includes="**/.settings/.api_filters" />
+ <regexpmapper
+ from="^(org.eclipse.*\/)(\.settings\/)(\.api_filters)"
+ to="\1\3" />
+ </copy>
+
+ <!-- create a zip of API filters -->
+ <property name="apifilterzip" value="${report}/apifilters-${buildId}.zip" />
+ <exec
+ executable="zip"
+ dir="${report}">
+ <arg line="-r ${apifilterzip} ${filter_store}" />
+ </exec>
+
+ <!-- create HTML output directory -->
+ <property name="analysis_html" value="${report}/analysis/html"/>
+ <property name="analysis_report" value="${report}/analysis/xml"/>
+
+ <!-- run the analysis -->
+ <apitooling.analysis
+ baseline="${baseline}"
+ profile="${current_location}"
+ report="${analysis_report}"
+ filters="${filter_store}"
+ excludelist="${exclude_list_external_location}"
+ debug="true"/>
+ <apitooling.analysis_reportconversion
+ xmlfiles="${analysis_report}"
+ htmlfiles="${analysis_html}"
+ debug="true"/>
+
+ <property name="deprecation_report" value="${report}/deprecation/apideprecation.xml" />
+ <property name="deprecation_html" value="${report}/deprecation/apideprecation.html" />
+
+ <!-- run the deprecation tasks -->
+ <apitooling.apideprecation
+ baseline="${baseline}"
+ profile="${current_location}"
+ report="${deprecation_report}"
+ debug="true"/>
+ <apitooling.apideprecation_reportconversion
+ xmlfile="${deprecation_report}"
+ debug="true"
+ htmlfile="${deprecation_html}"/>
+ </target>
+</project>

Back to the top