Skip to content

Commit

Permalink
Fix dependancy chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Oct 19, 2012
1 parent 50eedcd commit a42fec6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 28 deletions.
6 changes: 3 additions & 3 deletions build/build-tasks.xml
Expand Up @@ -167,21 +167,21 @@
<available type="dir" file="${gridsrc.dir}/css"/>
<then />
<else>
<ant dir="${gridsrc.dir}" target="-init" inheritAll="false"/>
<ant dir="${gridsrc.dir}" target="compile.sass" inheritAll="false"/>
</else>
</if>
<if>
<available type="dir" file="${basesrc.dir}/css"/>
<then />
<else>
<ant dir="${basesrc.dir}" target="-init" inheritAll="false"/>
<ant dir="${basesrc.dir}" target="compile.sass" inheritAll="false"/>
</else>
</if>
<if>
<available type="dir" file="${jssrc.dir}/css"/>
<then />
<else>
<ant dir="${jssrc.dir}" target="-init" inheritAll="false"/>
<ant dir="${jssrc.dir}" target="compile.sass" inheritAll="false"/>
</else>
</if>
</target>
Expand Down
4 changes: 2 additions & 2 deletions src/grids/build.xml
Expand Up @@ -9,14 +9,14 @@

<target name="build" depends="-init, -minify" />

<target name="-minify" depends="compile.sass, -merge-css">
<target name="-minify" depends="-merge-css">
<yui-compressor warn="false" munge="true" preserveAllSemiColons="false" fromDir="${build.dir}/premin" toDir="${build.dir}">
<include name="css/*.*" />
</yui-compressor>
<delete dir="${build.dir}/premin"/>
</target>

<target name="-merge-css">
<target name="-merge-css" depends="compile.sass">
<copy todir="${build.dir}/premerge/css">
<fileset dir="${src.dir}/css">
<include name="util*.css"/>
Expand Down
12 changes: 6 additions & 6 deletions src/js/build.xml
Expand Up @@ -9,7 +9,7 @@

<target name="build" depends="-init, -minify" />

<target name = "-minify" depends="compile.sass, build-js, -base64-encode">
<target name = "-minify" depends="-merge-css, -base64-encode, build-js">
<yui-compressor warn="false" munge="true" preserveAllSemiColons="false" fromDir="${build.dir}/premin" toDir="${build.dir}">
<include name="*.*" />
<include name="i18n/*.*" />
Expand Down Expand Up @@ -112,19 +112,19 @@
<replaceregexp flags="gis" file="${build.dir}/workers.js" match="/\*.*?\*/" replace="" encoding="utf8" />
</target>
<!--Build CSS Tasks -->
<target name="-base64-encode" depends="-merge-css">
<target name="-base64-encode">
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/images"/>
</copy>
<property name="image.dir" location="${build.dir}/images"/>

<cssurlembed skipMissing="true" root="${image.dir}">
<fileset dir="${build.dir}/premin/css">
<include name="pe-ap.css"/>
</fileset>
</cssurlembed>
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/images"/>
</copy>
</target>
<target name="-merge-css">
<target name="-merge-css" depends="compile.sass">
<copy todir="${build.dir}/premerge/css">
<fileset dir="${src.dir}/css"/>
</copy>
Expand Down
12 changes: 6 additions & 6 deletions src/theme-clf2-nsi2/build.xml
Expand Up @@ -9,7 +9,7 @@

<target name="build" description="" depends="-init, -minify" />

<target name="-minify" depends="compile.sass, -base64-encode">
<target name="-minify" depends="-merge-css, -base64-encode">
<move todir="${build.dir}/css/premin">
<fileset dir="${build.dir}/css"/>
</move>
Expand All @@ -34,7 +34,10 @@
</target>

<!--Build CSS Tasks -->
<target name="-base64-encode" depends="-merge-css">
<target name="-base64-encode">
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/images" />
</copy>
<copy todir="${build.dir}/encode/css">
<fileset dir="${build.dir}/css">
<include name="theme.css"/>
Expand All @@ -59,14 +62,11 @@
<delete dir="${build.dir}/encode"/>
</target>

<target name="-merge-css" depends="build-theme-deps">
<target name="-merge-css" depends="compile.sass, build-theme-deps">
<copy todir="${build.dir}/pre/merge/css">
<fileset dir="${src.dir}/css"/>
</copy>
<replace dir="${build.dir}/pre/merge/css" token="@charset &quot;utf-8&quot;;" value=" "/>
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/images" />
</copy>
<copy todir="${build.dir}/pre/merge/../css">
<fileset dir="${src.dir}/../base/css"/>
</copy>
Expand Down
6 changes: 3 additions & 3 deletions src/theme-gcwu-fegc/build.xml
Expand Up @@ -9,7 +9,7 @@

<target name="build" depends="-init, -minify" />

<target name="-minify" depends="compile.sass, -base64-encode">
<target name="-minify" depends="-merge-css, -base64-encode">
<move todir="${build.dir}/css/premin">
<fileset dir="${build.dir}/css"/>
</move>
Expand All @@ -34,7 +34,7 @@
</target>

<!--Build CSS Tasks -->
<target name="-base64-encode" depends="-merge-css">
<target name="-base64-encode">
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/images"/>
</copy>
Expand Down Expand Up @@ -71,7 +71,7 @@
<delete dir="${build.dir}/encode"/>
</target>

<target name="-merge-css" depends="build-theme-deps">
<target name="-merge-css" depends="compile.sass, build-theme-deps">
<copy todir="${build.dir}/pre/merge/jquerymobile">
<fileset dir="${src.dir}/jquerymobile">
<include name="*.css"/>
Expand Down
14 changes: 6 additions & 8 deletions src/theme-gcwu-intranet/build.xml
Expand Up @@ -9,7 +9,7 @@

<target name="build" depends="-init, -minify" />

<target name="-minify" depends="compile.sass, build-css">
<target name="-minify" depends="-merge-css, -base64-encode">
<move todir="${build.dir}/css/premin">
<fileset dir="${build.dir}/css"/>
</move>
Expand All @@ -32,11 +32,9 @@
<delete dir="${build.dir}/css/premin"/>
<delete dir="${build.dir}/js/premin"/>
</target>

<target name="build-css" depends="-base64-encode" />

<!--Build CSS Tasks -->
<target name="-base64-encode" depends="-merge-css">
<target name="-base64-encode">
<copy todir="${build.dir}/images">
<fileset dir="${src.dir}/../theme-gcwu-fegc/images"/>
<fileset dir="${src.dir}/images"/>
Expand Down Expand Up @@ -74,12 +72,12 @@
<delete dir="${build.dir}/encode"/>
</target>

<target name="-merge-css" depends="build-theme-deps">
<target name="-merge-css" depends="compile.sass, build-theme-deps">
<if>
<available type="dir" file="../theme-gcwu-fegc/css"/>
<then />
<available type="dir" file="${src.dir}/../theme-gcwu-fegc/css"/>
<then/>
<else>
<ant dir="../theme-gcwu-fegc" target="-init" inheritAll="false"/>
<ant dir="${src.dir}/../theme-gcwu-fegc" target="compile.sass" inheritAll="false"/>
</else>
</if>
<copy todir="${build.dir}/pre/merge/jquerymobile">
Expand Down

0 comments on commit a42fec6

Please sign in to comment.