1.1 --- a/samples/build.xml Sat Feb 14 17:37:55 2009 +0100
1.2 +++ b/samples/build.xml Thu Oct 30 21:30:10 2014 +0100
1.3 @@ -35,11 +35,6 @@
1.4 <arg file="${samples.dir}/version.sh"/>
1.5 </exec>
1.6 </target>
1.7 - <target name="-revision" unless="revision">
1.8 - <exec dir="${samples.dir}" outputproperty="revision" executable="/bin/sh">
1.9 - <arg file="${samples.dir}/tip.sh"/>
1.10 - </exec>
1.11 - </target>
1.12
1.13 <target name="sources" depends="-version,clean" description="Creates source distribution of the samples">
1.14 <fail unless="version"/>
1.15 @@ -56,17 +51,13 @@
1.16 </zip>
1.17 </target>
1.18
1.19 - <target name="snippets" depends="-revision" description="Extracts code snippets">
1.20 - <fail unless="revision"/>
1.21 -
1.22 + <target name="snippets" description="Extracts code snippets">
1.23 <property name="snippets.dir" location="build/snippets"/>
1.24 - <ant dir="../java/ant"/>
1.25 - <taskdef name="grepcopy" classname="org.apidesign.infra.ant.GrepCopy" classpath="../java/ant/dist/apidesign-ant-tasks.jar"/>
1.26 - <grepcopy target="${snippets.dir}" baseurl="http://source.apidesign.org/hg/apidesign/file/${revision}/samples/">
1.27 - <fileset dir=".">
1.28 - <include name="**/*"/>
1.29 - <exclude name="**/build/**/*"/>
1.30 - </fileset>
1.31 - </grepcopy>
1.32 + <ant dir="../java/ant" target="snippets">
1.33 + <property name="snippets.dir" value="${snippets.dir}"/>
1.34 + <property name="snippets.repo" value="http://source.apidesign.org/hg/apidesign"/>
1.35 + <property name="snippets.path" value="samples/"/>
1.36 + <property name="snippets.code.dir" location="."/>
1.37 + </ant>
1.38 </target>
1.39 </project>