diff options
Diffstat (limited to 'webhelp/build.xml')
-rw-r--r-- | webhelp/build.xml | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/webhelp/build.xml b/webhelp/build.xml index cf3ceab..87f4447 100644 --- a/webhelp/build.xml +++ b/webhelp/build.xml @@ -32,7 +32,8 @@ <xslt in="${input-xml}" out="${xincluded-profiled.xml}" - style="${ant.file.dir}/../profiling/profile.xsl"> + style="${ant.file.dir}/../profiling/profile.xsl" + classpath="${xercesImpl.jar}"> <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/> <param name="profile.arch" expression="${profile.arch}" if="profile.arch"/> @@ -74,7 +75,7 @@ <copy todir="${output-dir}"> <fileset dir="${ant.file.dir}/template"> <include name="**/*"/> - <exclude name="**/content/search/**"/> + <exclude name="**/search/**"/> </fileset> </copy> @@ -82,45 +83,41 @@ <!-- TODO: Look at html help code that produces a manifest file...list of images --> <!-- Customize webhelp.xsl to produce ant file to copy images actually used? --> <dirname property="input-images-basedir" file="${input-xml}"/> - <copy todir="${output-dir}/content" failonerror="false"> + <copy todir="${output-dir}" failonerror="false"> <fileset dir="${input-images-basedir}" includes="${input-images-dirs}" /> </copy> </target> <target name="index" if="do-search-indexing"> - <copy todir="${output-dir}"> - <fileset dir="${ant.file.dir}/template"> + <copy todir="${output-dir}/search"> + <fileset dir="${ant.file.dir}/template/search"> <include name="**/*"/> - <exclude name="**/content/search/*.props"/> - <exclude name="**/content/search/stemmers/*"/> + <exclude name="**/*.props"/> + <exclude name="**/stemmers/*"/> </fileset> </copy> <!-- We separate this out so we only copy the stopwords list and stemmer for the indexer language --> - <copy todir="${output-dir}"> - <fileset dir="${ant.file.dir}/template"> - <include name="**/content/search/default.props"/> - <include name="**/content/search/punctuation.props"/> - <include name="**/content/search/${webhelp.indexer.language}*.props"/> - <include name="**/content/search/stemmers/${webhelp.indexer.language}_stemmer.js"/> + <copy todir="${output-dir}/search"> + <fileset dir="${ant.file.dir}/template/search"> + <include name="**/default.props"/> + <include name="**/punctuation.props"/> + <include name="**/${webhelp.indexer.language}*.props"/> + <include name="**/stemmers/${webhelp.indexer.language}_stemmer.js"/> </fileset> </copy> - <!--taskdef name="indexertask" - classname="com.nexwave.nquindexer.IndexerMain"> - <classpath refid="classpath"/> - </taskdef--> - - <echo>Indexing html files in ${output-dir}/content</echo> + <echo>Indexing html files in ${output-dir}</echo> <java classname="com.nexwave.nquindexer.IndexerMain" fork="true"> - <sysproperty key="htmlDir" value="${output-dir}/content"/> + <sysproperty key="htmlDir" value="${output-dir}"/> <sysproperty key="indexerLanguage" value="${webhelp.indexer.language}"/> <sysproperty key="htmlExtension" value="${html.extension}"/> <sysproperty key="doStem" value="${enable.stemming}"/> <sysproperty key="tocFile" value="${toc.file}"/> - + <sysproperty key="indexerExcludedFiles" value="${indexer-excluded-files}"/> + <!--TagSoup SAX Parser for parsing even the bad html contents. see http://sourceforge.net/tracker/?func=detail&aid=3401185&group_id=21935&atid=373750--> <sysproperty key="org.xml.sax.driver" value="org.ccil.cowan.tagsoup.Parser"/> @@ -146,7 +143,7 @@ </java> <delete> - <fileset dir="${output-dir}/content/search" includes="*.props"/> + <fileset dir="${output-dir}/search" includes="*.props"/> </delete> </target> |