Created
November 13, 2010 09:19
-
-
Save antz29/675209 to your computer and use it in GitHub Desktop.
Example of using JS Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="my-project" basedir="." default="build"> | |
<property name="src.dir" value="src" /> | |
<property name="build.dir" value="build" /> | |
<property name="jsbuilder" location="../build/jsbuilder.jar" /> | |
<!-- Create the jsbuilder task --> | |
<taskdef name="jsbuilder" classname="org.antz29.jsbuilder.Builder" classpath="${jsbuilder}" /> | |
<target name="clean" description="Delete all generated files"> | |
<delete dir="${build.dir}" failonerror="false" /> | |
</target> | |
<target name="init" description="Create the target build dir" depends="clean"> | |
<mkdir dir="${build.dir}" /> | |
</target> | |
<target name="builder" description="Call JS Builder" depends="init"> | |
<!-- Call the jsbuilder task using the default settings --> | |
<jsbuilder output="${build.dir}"> | |
<fileset dir="${src.dir}"> | |
<include name="**/*.js"/> | |
</fileset> | |
</jsbuilder> | |
</target> | |
<target name="build" depends="clean,init,builder" /> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #PACKAGE: package1 | |
// #MODULE: module1 | |
/* Some useful code here */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #PACKAGE: package1 | |
// #DEPENDS: module1 | |
/* Some useful code here */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #PACKAGE: package2 | |
// #DEPENDS: package2:module2 | |
/* Some useful code here */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment