aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.xml21
1 files changed, 5 insertions, 16 deletions
diff --git a/build.xml b/build.xml
index 1f1e07c9..c0256b8c 100644
--- a/build.xml
+++ b/build.xml
@@ -50,6 +50,7 @@
</target>
<target name="website">
+ <taskdef classpath="deps/build/java2html.jar" name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" />
<mkdir dir="build/website" />
<copy todir="build/website">
<fileset dir="website">
@@ -74,22 +75,10 @@
<property name="postfile" location="usage_examples/${transformationName}Example_post.jpage" />
<property name="htmlfile" location="website/features/${transformationName}.html" />
<mkdir dir="build/temp" />
- <property name="preout" location="build/temp/pre.html" />
- <property name="postout" location="build/temp/post.html" />
- <java jar="deps/build/java2html.jar" fork="true">
- <arg value="-srcfile" />
- <arg value="${prefile}" />
- <arg value="-targetfile" />
- <arg value="${preout}" />
- <arg line="-style Eclipse -converter html -tabs ${SNIPPET_TAB_STOP}" />
- </java>
- <java jar="deps/build/java2html.jar" fork="true">
- <arg value="-srcfile" />
- <arg value="${postfile}" />
- <arg value="-targetfile" />
- <arg value="${postout}" />
- <arg line="-style Eclipse -converter html -tabs ${SNIPPET_TAB_STOP}" />
- </java>
+ <property name="preout" location="build/temp/${transformationName}Example_pre.jpage.html" />
+ <property name="postout" location="build/temp/${transformationName}Example_post.jpage.html" />
+ <java2html srcdir="usage_examples" includes="${transformationName}Example_*.jpage" destdir="build/temp" tabs="${SNIPPET_TAB_STOP}"
+ showLineNumbers="true" overwrite="true" />
<loadfile property="pre" encoding="UTF-8" srcFile="${preout}">
<filterchain>
<linecontainsregexp>