Ability to generate code snippets
authorJaroslav Tulach <jtulach@netbeans.org>
Sun, 06 Jul 2008 00:24:58 +0200
changeset 270c020523e86e1
parent 269 fe1fda5f8208
child 271 a1c057f1f756
Ability to generate code snippets
samples/build.xml
     1.1 --- a/samples/build.xml	Sun Jul 06 00:16:00 2008 +0200
     1.2 +++ b/samples/build.xml	Sun Jul 06 00:24:58 2008 +0200
     1.3 @@ -50,4 +50,16 @@
     1.4              </not>
     1.5          </zip>
     1.6      </target>
     1.7 +
     1.8 +    <target name="snippets">
     1.9 +        <property name="snippets.dir" location="build/snippets"/>
    1.10 +        <ant dir="../java/ant"/>
    1.11 +        <taskdef name="grepcopy" classname="org.apidesign.infra.ant.GrepCopy" classpath="../java/ant/dist/apidesign-ant-tasks.jar"/>
    1.12 +        <grepcopy target="${snippets.dir}">
    1.13 +            <fileset dir=".">
    1.14 +                <include name="**/*"/>
    1.15 +                <exclude name="**/build/**/*"/>
    1.16 +            </fileset>
    1.17 +        </grepcopy>
    1.18 +    </target>
    1.19  </project>