-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_sass.xml
30 lines (27 loc) · 1.09 KB
/
build_sass.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="">
<!-- Compile .scss and .sass files in the public/sass directory using SASS -->
<target name="sass.compile">
<property name="sass.dir" value="grails-app/assets/stylesheets" />
<property name="css.dir" value="grails-app/assets/stylesheets" />
<apply executable="sass" dest="${css.dir}" verbose="true" force="true" failonerror="true">
<arg value="--unix-newline" />
<arg value="--compass" />
<srcfile />
<targetfile />
<fileset dir="${sass.dir}" includes="**/*.scss,**/*.sass" excludes="**/_*" />
<firstmatchmapper>
<globmapper from="*.sass" to="*.css" />
<globmapper from="*.scss" to="*.css" />
</firstmatchmapper>
</apply>
<eclipse.refreshLocal resource="xa/public" depth="infinite"/>
</target>
<!-- Compile .scss files in the public/sass directory using Compass -->
<target name="compass.compile">
<exec executable="compass" dir="${basedir}/public/sass">
<arg value="compile" />
</exec>
<eclipse.refreshLocal resource="xa/public" depth="infinite"/>
</target>
</project>