| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| |
| Version: $Id: build.xml,v 1.11 2005/02/22 20:31:12 ryman Exp $ |
| |
| Ant build script for WTP Web Site. |
| |
| ChangeLog: |
| 2005-02-21 Lawrence Mandel <lmandel@ca.ibm.com> |
| - Added force=true attribute for composite pages. |
| |
| 2005-02-16 Lawrence Mandel <lmandel@ca.ibm.com> |
| - Added news page. |
| - Added development/main.xml page. |
| |
| 2005-02-14 Lawrence Mandel <lmandel@ca.ibm.com> |
| - Created separate news.xml file and included it in main.xml. |
| - Added about page. |
| - Added transform for news XML to RSS. |
| |
| 2005-02-13: Arthur Ryman <ryman@ca.ibm.com> |
| - Added Help Wanted page. |
| |
| 2005-01-28: Arthur Ryman <ryman@ca.ibm.com> |
| - Created. |
| - Validate all XML and XSLT files. |
| - Transform all XML to HTML. |
| |
| 2005-02-21: Jeffrey Liu <jeffliu@ca.ibm.com> |
| - Added performance improvement plan |
| --> |
| |
| <project name="webtools" default="main" basedir="."> |
| |
| <target name="main" depends="validate, html, rss" description="Builds WTP Web site." /> |
| |
| <target name="validate" description="Validates all XML and XSLT files."> |
| <xmlvalidate lenient="true"> |
| <fileset dir="." includes="**/*.xml, **/*.xsl, **/*.xsd" /> |
| </xmlvalidate> |
| <!-- |
| <xmlvalidate lenient="false"> |
| <fileset dir="." includes="**/*.xsd"/> |
| <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="html" depends="help-wanted" description="Transforms XML to HTML."> |
| <xslt in="main.xml" out="main.html" style="wtphome.xsl" force="true"/> |
| |
| <xslt in="about.xml" out="about.html" style="wtphome.xsl" force="true"/> |
| |
| <xslt in="news.xml" out="news.html" style="wtphome.xsl" force="true"/> |
| |
| <xslt in="development/main.xml" out="development/main.html" style="wtphome.xsl" force="true"/> |
| |
| <xslt style="development/milestone_plans/stylesheets/milestone-calendar.xsl" |
| in="development/milestone_plans/reports/report-calendar-by-developer.xml" |
| out="development/milestone_plans/reports/report-calendar-by-developer.html" /> |
| |
| <xslt style="development/milestone_plans/stylesheets/milestone-overview.xsl" |
| in="development/milestone_plans/reports/report-milestone-overview.xml" |
| out="development/milestone_plans/reports/report-milestone-overview.html" /> |
| |
| <xslt style="development/milestone_plans/stylesheets/milestone-bulletList.xsl" |
| includes="**/*milestone_plan*.xml" |
| destdir="." /> |
| |
| <xslt style="development/milestone_plans/stylesheets/performance.xsl" |
| in="development/milestone_plans/reports/report-milestone-overview.xml" |
| out="development/milestone_plans/reports/performance.html" force="true"/> |
| |
| <xslt style="wtp.xsl" |
| includes="**/*.xml" |
| excludes="build.xml, main.xml, about.xml, development/main.xml, **/filelist.xml, development/milestone_plans/reports/*.xml, **/*milestone_plan*.xml, news.xml, **/*-rss20.xml" |
| destdir="." /> |
| </target> |
| |
| <target name="help-wanted" description="generates Help Wanted page."> |
| <xslt style="development/milestone_plans/stylesheets/help-wanted.xsl" |
| in="development/milestone_plans/reports/report-milestone-overview.xml" |
| out="development/milestone_plans/reports/help-wanted.html" force="true" /> |
| </target> |
| |
| <target name="rss" description="Transforms XML to RSS."> |
| <xslt in="news.xml" out="news-rss20.xml" style="rss20.xsl" /> |
| </target> |
| </project> |