Browse Source

Since velocity.properties has a hardcoded path to ../../jakarta-site2 why not

include all the jars jakarta-site2 provides, so that AnakiaTask should always be
available?


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268590 13f79535-47bb-0310-9956-ffa450edef68
master
Nico Seessle 24 years ago
parent
commit
cc426d1fcc
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      webpage/build.xml

+ 13
- 2
webpage/build.xml View File

@@ -5,9 +5,17 @@
<property name="docs.src" value="./xdocs"/>
<property name="docs.dest" value="./docs"/>

<path id="anakia.classpath">
<fileset dir="../../jakarta-site2/lib">
<include name="*.jar"/>
</fileset>
</path>

<target name="prepare">
<available classname="org.apache.velocity.anakia.AnakiaTask"
property="AnakiaTask.present"/>
property="AnakiaTask.present">
<classpath refid="anakia.classpath"/>
</available>
</target>

<target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
@@ -18,7 +26,10 @@
</target>

<target name="docs" depends="prepare-error" if="AnakiaTask.present">
<taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
<taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="anakia.classpath"/>
</taskdef>
<anakia basedir="${docs.src}" destdir="${docs.dest}/"
extension=".html" style="./site.vsl"
projectFile="stylesheets/project.xml"


Loading…
Cancel
Save