Skip to content

Commit

Permalink
Add root build.xml that builds the entire project.
Browse files Browse the repository at this point in the history
Run `ant` inside the src directory to build YUI.

Change some build.xml to subant ./build.*.xml if possible--
  otherwise run <ant> explicitly-- inside macrodefs.
Add the clean target to build.xml, if missing.
Change swf's builddir property to use a relative path to builder.
  • Loading branch information
reid committed Jun 17, 2010
1 parent 847de55 commit 7db4608
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 41 deletions.
18 changes: 18 additions & 0 deletions src/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="yui3" default="all">
<description>YUI 3</description>
<macrodef name="build-all">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<fileset dir="." includes="*/build.xml"/>
</subant>
</sequential>
</macrodef>
<target name="all">
<build-all target="all"/>
</target>
<target name="clean">
<build-all target="clean"/>
</target>
</project>
22 changes: 14 additions & 8 deletions src/dom/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@
<project name="YUI" default="local">
<description>DOM - Build All Modules</description>

<macrodef name="build-dom">
<attribute name="target"/>
<sequential>
<ant antfile="build.dom.xml" target="@{target}"/>
<ant antfile="build.selector-css3.xml" target="@{target}"/>
</sequential>
</macrodef>

<target name="local">
<ant antfile="build.dom.xml" target="local" />
<ant antfile="build.selector-css3.xml" target="local" />
<build-dom target="local"/>
</target>

<target name="deploy">
<ant antfile="build.dom.xml" target="deploy" />
<ant antfile="build.selector-css3.xml" target="deploy" />
<build-dom target="deploy"/>
</target>

<target name="all">
<ant antfile="build.dom.xml" target="all" />
<ant antfile="build.selector-css3.xml" target="all" />
<build-dom target="all"/>
</target>
<target name="clean">
<build-dom target="clean"/>
</target>

</project>
16 changes: 9 additions & 7 deletions src/node/build.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="YUI" default="local">
<description>DOM - Build All Modules</description>
<description>Node - Build All Modules</description>

<macrodef name="build-all">
<macrodef name="build-node">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
Expand All @@ -12,14 +12,16 @@
</macrodef>

<target name="local">
<build-all target="local"/>
<build-node target="local"/>
</target>

<target name="deploy">
<build-all target="deploy"/>
<build-node target="deploy"/>
</target>

<target name="all">
<build-all target="all"/>
<build-node target="all"/>
</target>
<target name="clean">
<build-node target="clean"/>
</target>

</project>
26 changes: 15 additions & 11 deletions src/querystring/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@
<project name="YUI" default="local">
<description>QueryString - Build All Modules</description>

<macrodef name="build-querystring">
<attribute name="target"/>
<sequential>
<ant antfile="querystring.xml" target="@{target}"/>
<ant antfile="querystring-parse-simple.xml" target="@{target}"/>
<ant antfile="querystring-stringify-simple.xml" target="@{target}"/>
</sequential>
</macrodef>

<target name="local">
<ant antfile="querystring.xml" target="local" />
<ant antfile="querystring-parse-simple.xml" target="local" />
<ant antfile="querystring-stringify-simple.xml" target="local" />
<build-querystring target="local"/>
</target>

<target name="deploy">
<ant antfile="querystring.xml" target="deploy" />
<ant antfile="querystring-parse-simple.xml" target="deploy" />
<ant antfile="querystring-stringify-simple.xml" target="deploy" />
<build-querystring target="deploy"/>
</target>

<target name="all">
<ant antfile="querystring.xml" target="all" />
<ant antfile="querystring-parse-simple.xml" target="all" />
<ant antfile="querystring-stringify-simple.xml" target="all" />
<build-querystring target="all"/>
</target>
<target name="clean">
<build-querystring target="clean"/>
</target>

</project>
22 changes: 20 additions & 2 deletions src/sortable/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,26 @@

<project name="Sortable" default="local">
<description>Sortable Build File</description>

<macrodef name="build-sortable">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<fileset dir="." includes="build.*.xml"/>
</subant>
</sequential>
</macrodef>

<target name="local">
<build-sortable target="local"/>
</target>
<target name="deploy">
<build-sortable target="deploy"/>
</target>
<target name="all">
<ant antfile="build.sortable.xml" target="all" />
<ant antfile="build.scroll.xml" target="all" />
<build-sortable target="all"/>
</target>
<target name="clean">
<build-sortable target="clean"/>
</target>
</project>
2 changes: 1 addition & 1 deletion src/swf/build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
builddir=/Users/trippb/yuisource/builder/componentbuild
builddir=../../../builder/componentbuild

component=swf
component.jsfiles=swf.js
Expand Down
27 changes: 15 additions & 12 deletions src/tabview/build.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="YUI" default="local">
<description>DOM - Build All Modules</description>
<description>TabView - Build All Modules</description>
<macrodef name="build-tabview">
<attribute name="target"/>
<sequential>
<subant target="@{target}">
<fileset dir="." includes="build.*.xml"/>
</subant>
</sequential>
</macrodef>

<target name="local">
<ant antfile="build.tabview-base.xml" target="local" />
<ant antfile="build.tabview-plugin.xml" target="local" />
<ant antfile="build.tabview.xml" target="local" />
<build-tabview target="local"/>
</target>

<target name="deploy">
<ant antfile="build.tabview-base.xml" target="deploy" />
<ant antfile="build.tabview-plugin.xml" target="deploy" />
<ant antfile="build.tabview.xml" target="deploy" />
<build-tabview target="deploy"/>
</target>

<target name="all">
<ant antfile="build.tabview-base.xml" target="all" />
<ant antfile="build.tabview-plugin.xml" target="all" />
<ant antfile="build.tabview.xml" target="all" />
<build-tabview target="all"/>
</target>
<target name="clean">
<build-tabview target="clean"/>
</target>

</project>

0 comments on commit 7db4608

Please sign in to comment.