Skip to content

Commit

Permalink
Moved the output of the SASS compile to the build folder (instead of …
Browse files Browse the repository at this point in the history
…the source folder)

Removed the clean-css tasks sicne they are no longer needed.
  • Loading branch information
LaurentGoderre committed Nov 14, 2012
1 parent d9227c8 commit 38e4600
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 21 deletions.
8 changes: 1 addition & 7 deletions build.xml
Expand Up @@ -5,19 +5,13 @@
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="build" depends="">
<subant target="build">
<fileset dir="${src.dir}" includes="**/build.xml"/>
</subant>
</target>

<target name="clean-css">
<subant target="clean-css">
<fileset dir="${src.dir}" includes="**/build.xml"/>
</subant>
</target>

<target name="clean">
<subant target="clean">
Expand Down
13 changes: 5 additions & 8 deletions build/build-tasks.xml
Expand Up @@ -93,6 +93,7 @@
<arg path="${lib.dir}/vendors-${jruby.depends}/gems/"/>
<arg value="${command}"/>
<arg path="${src.dir}"/>
<arg value="${build.dir}/_css"/>
</java>
</target>

Expand Down Expand Up @@ -171,10 +172,6 @@
<srcfile/>
</apply>
</target>

<target name="clean-css">
<delete dir="${src.dir}/css" />
</target>

<target name="clean">
<delete dir="${build.dir}" />
Expand All @@ -193,7 +190,7 @@

<extension-point name="test" />

<target name="lint" extensionOf="test" depends="-jshint, csslint, clean-css"/>
<target name="lint" extensionOf="test" depends="-jshint, csslint"/>

<target name="-base64-encode">
<property name="image.dir" location="${build.dir}/images"/>
Expand Down Expand Up @@ -240,8 +237,8 @@

<target name="-copy-css" depends="compile.sass">
<loadfile srcfile="${build.dir}/../build-css-head.txt" property="build.css.head"/>
<copy todir="${build.dir}/css">
<fileset dir="${src.dir}/css">
<move todir="${build.dir}/css">
<fileset dir="${build.dir}/_css">
<include name="*.css"/>
</fileset>
<filterchain>
Expand All @@ -251,7 +248,7 @@
<token key="wet-boew-build.starttime" value="${wet-boew-build.starttime}"/>
</replacetokens>
</filterchain>
</copy>
</move>
</target>

<target name="-copy-jquery-css">
Expand Down
2 changes: 1 addition & 1 deletion build/config.rb
Expand Up @@ -8,7 +8,7 @@

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
css_dir = ARGV[3]
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
Expand Down
2 changes: 1 addition & 1 deletion src/grids/build.xml
Expand Up @@ -5,7 +5,7 @@
<property file="build.properties"/>
<import file="${build.dir}/../build-tasks.xml"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="copy-all" extensionOf="prepare-files" depends="-copy-css,-copy-images"/>
</project>
2 changes: 1 addition & 1 deletion src/js/build.xml
Expand Up @@ -5,7 +5,7 @@
<property file="build.properties"/>
<import file="${build.dir}/../build-tasks.xml"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="copy-all" extensionOf="prepare-files" depends="-copy-css,-copy-images,-copy-js"/>

Expand Down
2 changes: 1 addition & 1 deletion src/theme-clf2-nsi2/build.xml
Expand Up @@ -5,7 +5,7 @@
<property file="build.properties"/>
<import file="${build.dir}/../build-tasks.xml"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="copy-all" extensionOf="prepare-files" depends="-copy-css,-copy-images,-copy-js"/>
</project>
2 changes: 1 addition & 1 deletion src/theme-gcwu-fegc/build.xml
Expand Up @@ -5,7 +5,7 @@
<property file="build.properties"/>
<import file="${build.dir}/../build-tasks.xml"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="encode-jquery" extensionOf="encode-images" depends="-base64-encode-jquery"/>

Expand Down
2 changes: 1 addition & 1 deletion src/theme-gcwu-intranet/build.xml
Expand Up @@ -5,7 +5,7 @@
<property file="build.properties"/>
<import file="${build.dir}/../build-tasks.xml"/>

<target name="default" depends="clean,build,clean-css" description="Performs a clean and build when calling ant without any target"></target>
<target name="default" depends="clean,build" description="Performs a clean and build when calling ant without any target"></target>

<target name="encode-jquery" extensionOf="encode-images" depends="-base64-encode-jquery"/>

Expand Down

0 comments on commit 38e4600

Please sign in to comment.