| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| |
| Version: $Id: build.xml,v 1.12 2006/07/05 21:18:34 nitind Exp $ |
| |
| Ant build script for WTP 1.0 Plan Web pages. |
| |
| ChangeLog: |
| |
| 2005-11-29: Arthur Ryman <ryman@ca.ibm.com> |
| - Added adopter hot bug list. |
| |
| 2005-10-13: Arthur Ryman <ryman@ca.ibm.com> |
| - Added milestone-plan-index. |
| |
| 2005-10-12: Arthur Ryman <ryman@ca.ibm.com> |
| - Merged in contents from bugliist directory. |
| |
| 2005-10-02: Arthur Ryman <ryman@ca.ibm.com> |
| - Added buglist reports. |
| |
| 2005-09-21: Arthur Ryman <ryman@ca.ibm.com> |
| - Reorganized the Web pages so they can be built independently. |
| |
| --> |
| |
| <project name="webtools" default="main" basedir="."> |
| |
| <description> |
| Generates the buglist reports. These reports are generated from a bugzilla query. Each report lists |
| the bug for a given bugzilla component and target milestone, and any work items from the milestone plans that refer to the bug. |
| The milestone plan work item is checked by consistency with the bugzilla bug, and any errors are included in the report. |
| </description> |
| |
| <target name="main" depends="validate, refresh-buglist-reports, hotlist, html" description="Build WTP 1.0 Plans Web pages." /> |
| |
| <target name="validate" description="Validates all XML files."> |
| <xmlvalidate lenient="true"> |
| <fileset dir="." includes="**/*.xml, **/*.xsl, **/*.xsd" /> |
| </xmlvalidate> |
| </target> |
| |
| <target name="milestone-plan-index" description="Generates milestone-plan-index.xml"> |
| <xslt style="stylesheets/milestone-plan-index.xsl" in="release.xml" out="milestone-plan-index.xml" force="true" /> |
| </target> |
| |
| <target name="test-plan-index" description="Generates test-plan-index.xml"> |
| <xslt style="stylesheets/test-plan-index.xsl" in="release.xml" out="test-plan-index.xml" force="true" /> |
| </target> |
| |
| <target name="html" depends="validate, milestone-plan-index, test-plan-index" description="Transforms XML to HTML."> |
| |
| <xslt style="stylesheets/milestone-bulletList.xsl" includes="**/*milestone_plan*.xml" destdir="." force="true" /> |
| <xslt style="stylesheets/wtp.xsl" includes="**/*.xml" excludes="buglist.xml, release.xml, adopter-buglist.xml, adopter-hotlist-data.xml, **/build*.xml, reports/*.xml, **/*milestone_plan*.xml" destdir="." /> |
| |
| <ant dir="reports" description="Builds the reports." /> |
| |
| </target> |
| |
| <target name="schema-validate-milestone-plans" description="Schema validates milestone plans."> |
| |
| <xmlvalidate lenient="false"> |
| <fileset dir="." includes="**/milestone_plan.xml" /> |
| <attribute name="http://xml.org/sax/features/validation" value="true" /> |
| <attribute name="http://apache.org/xml/features/validation/schema" value="true" /> |
| <attribute name="http://xml.org/sax/features/namespaces" value="true" /> |
| </xmlvalidate> |
| |
| </target> |
| |
| <target name="refresh-buglist-reports" depends="buglist-xml, build-buglist-reports-xml, generate-buglist-reports, buglist-report-index" description="Refreshes the bug list reports." /> |
| |
| <target name="buglist-xml" description="--> Gets the latest bug data from bugzilla in RDF format."> |
| |
| <property name="base" value="https://bugs.eclipse.org/bugs/buglist.cgi?ctype=rdf&product=Web+Tools" /> |
| <property name="columnlist" value="columnlist=component,target_milestone,short_short_desc,keywords,bug_severity,priority,bug_status,assigned_to,resolution" /> |
| <property name="milestones" value="target_milestone=1.0+M8&target_milestone=1.0+M9&target_milestone=1.0+M10" /> |
| |
| <get dest="buglist.xml" src="${base}&${columnlist}&${milestones}" /> |
| </target> |
| |
| <target name="build-buglist-reports-xml" description="--> Generates the build file for the buglist reports."> |
| <xslt style="stylesheets/build-buglist-reports.xsl" in="release.xml" out="build-buglist-reports.xml" force="true" /> |
| </target> |
| |
| <target name="generate-buglist-reports" description="Generates the bugllist reports."> |
| <ant dir="." antfile="build-buglist-reports.xml" /> |
| </target> |
| |
| <target name="buglist-report-index" description="Generates buglist-report-index.xml"> |
| <xslt style="stylesheets/buglist-report-index.xsl" in="release.xml" out="buglist-report-index.xml" force="true" /> |
| </target> |
| |
| <target name="clean-buglist-reports" description="Deletes all generated buglist report files."> |
| <delete> |
| <fileset dir="." includes="**/buglist-report.xml **/buglist-report.html" /> |
| </delete> |
| </target> |
| |
| <target name="hotlist" description="Generates the Adopter Hot Bug List report."> |
| |
| <xslt style="stylesheets/hotlist-properties.xsl" in="adopter-hotlist-data.xml" out="adopter-bugids.properties" /> |
| <property file="adopter-bugids.properties" /> |
| <echo message="adopter_bugids=${adopter_bugids}" /> |
| |
| <property name="base" value="https://bugs.eclipse.org/bugs/buglist.cgi?ctype=rdf" /> |
| <property name="columnlist" value="columnlist=target_milestone,short_short_desc,bug_severity,priority,bug_status,assigned_to,resolution" /> |
| <property name="bugids" value="bug_id=${adopter_bugids}" /> |
| <get dest="adopter-buglist.xml" src="${base}&${columnlist}&${bugids}" /> |
| |
| |
| <tstamp> |
| <format property="TIMESTAMP" pattern="yyyy-MM-dd HH:mm:ss z" locale="en" timezone="UTC"/> |
| </tstamp> |
| <xslt style="stylesheets/hotlist-report.xsl" in="adopter-hotlist-data.xml" out="adopter-hotlist-report.xml"> |
| <param name="timestamp" expression="${TIMESTAMP}" /> |
| </xslt> |
| |
| <xslt style="stylesheets/hotlist-unresolved-table.xsl" in="adopter-buglist.xml" out="adopter-unresolved-table.xml"> |
| <param name="timestamp" expression="${TIMESTAMP}" /> |
| </xslt> |
| |
| </target> |
| |
| </project> |