Skip to content

Instantly share code, notes, and snippets.

@eduardo-matos
Created January 23, 2013 13:19
Show Gist options
  • Save eduardo-matos/4605502 to your computer and use it in GitHub Desktop.
Save eduardo-matos/4605502 to your computer and use it in GitHub Desktop.
Apache Ant Build.xml para compilar projetos com Dojo Toolkit + SASS.
<project name="Builder" default="build.all" basedir="./">
<property name="dir.js.builder" value="js/src/util/buildscripts/build.bat" />
<property name="dir.js.src" value="js/src" />
<property name="dir.css.src" value="css/src" />
<!-- Compile SASS -->
<target name="compile-css">
<echo>Compilando CSS...</echo>
<exec executable="cmd">
<arg line="/c compass compile ${dir.css.src} --output-style compressed --force" />
</exec>
</target>
<!-- Build Dojo -->
<target name="compile-js">
<echo>Compilando javascript...</echo>
<exec executable="cmd">
<arg value="/c" />
<arg path="${dir.js.builder}" />
<arg value="--profile" />
<arg value="${dir.js.src}/release.profile.js" />
<arg value="-r" />
</exec>
</target>
<target name="build.all" depends="compile-css,compile-js" />
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment