aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-17 21:24:25 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-17 21:24:25 +0200
commit3bfe8d21610b7d92aa932685bc40abf011295328 (patch)
treeb37e5df8eba5665f658674afc099e276ebbbf886
parente041cad5f4c6eb55365464b8e346aa710a2e1b2f (diff)
downloadlombok-3bfe8d21610b7d92aa932685bc40abf011295328.tar.gz
lombok-3bfe8d21610b7d92aa932685bc40abf011295328.tar.bz2
lombok-3bfe8d21610b7d92aa932685bc40abf011295328.zip
Now using the ant task for java2html, and also added the generation of line numbers.
-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>