Hi,
i am currently trying to integrate the closure library in an existing
closure compiler ant build system of our project.
However, i found this small example:
http://code.google.com/p/closure-compiler/wiki/BuildingWithAnt
But, this example does not describe how to integrate the closure
library. After some searching and reading i found the
"use_closure_library" option, which is, unfortunately, for the service
API.
Is there a way to include the closure library easily in the ant
script, maybe using such a simple flag?
Here is the part of my ant where the compiler stuff happens, externs
and sourceFiles are lists that are defined elsewhere ... :
<macrodef name="compileScripts">
<attribute name="extension" default="-min" />
<attribute name="level" default="simple" />
<attribute name="version" />
<element name="args" optional="true" />
<sequential>
<jscomp compilationlevel="@{level}" warning="verbose"
generateexports="yes" debug="false"
output="${buildDir}/${script.start}@{extension}.js">
<args/>
<externs refid="externs">
</externs>
<sources refid="sourceFiles">
</sources>
</jscomp>
</sequential>
</macrodef>
I did not work much with ant scripts, so i am a bit lost at that point
and would really appreciate any help.
Cheers, Johannes