mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
Now using the ant task for java2html, and also added the generation of line numbers.
This commit is contained in:
1 parent
e041cad5f4
commit
3bfe8d2161
1 file changed
+5
-16
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user