blob: 14e0d6eee5f6127a84c01ddaae739310c5914208 [file] [log] [blame]
<?xml version="1.0"?>
<project name="jsr" default="default">
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<!-- directories -->
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<property name="publish.dir" value="/home/projects/groovy/public_html/jsr"/>
<property name="spec.wiki.dir" value="spec/wiki"/>
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<!-- targets -->
<!-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
<target name="default"
depends="publish"
description="default: publish distributables"
/>
<target name="clean" description="remove all built files">
<!--workaround for biscuit local dir issue -->
<delete file="SearchAndReplace"/>
<delete file="SearchAndReplaceRegex"/>
<delete file="TemplatePage.html"/>
<ant dir="spec" target="clean"/>
<ant dir="ideas/parsers/antlr" target="clean"/>
</target>
<target name="doc">
<echo>
-----------------------
render specification...
-----------------------
</echo>
<!--workaround for biscuit local dir issue -->
<copy file="spec/SearchAndReplace" todir="."/>
<copy file="spec/SearchAndReplaceRegex" todir="."/>
<copy file="spec/TemplatePage.html" todir="."/>
<ant dir="spec" target="render" inheritAll="false"/>
<echo>
-----------------------
render grammar...
-----------------------
</echo>
<!-- bring grammar over from groovy-core -->
<copy todir="ideas/parsers/antlr/src">
<fileset dir="../groovy-core/src/main">
<include name="**/groovy.g"/>
</fileset>
</copy>
<ant dir="ideas/parsers/antlr" target="docs" inheritAll="false"/>
</target>
<target name="publish" depends="doc" description="publish distributables">
<copy todir="${publish.dir}/spec">
<fileset dir="${spec.wiki.dir}"/>
</copy>
<copy todir="${publish.dir}/spec">
<fileset dir="ideas/parsers/antlr/doc/">
<include name="GroovyRecognizer.html"/>
<include name="GroovyLexer.html"/>
</fileset>
</copy>
</target>
</project>