]> granicus.if.org Git - docbook-dsssl/commitdiff
Adding html.extension property
authorKasun Gajasinghe <kasunbg@gmail.com>
Mon, 19 Sep 2011 19:56:55 +0000 (19:56 +0000)
committerKasun Gajasinghe <kasunbg@gmail.com>
Mon, 19 Sep 2011 19:56:55 +0000 (19:56 +0000)
xsl-webhelpindexer/src/com/nexwave/nquindexer/IndexerMain.java
xsl/webhelp/build.xml

index dccd2b427e1036738853360f1b03f1e3f60d5b7a..10acbbd0472585966aefc5f47bd20c7ac79a3687 100644 (file)
@@ -76,9 +76,12 @@ public class IndexerMain {
         setIndexerLanguage(indexerLanguage);
         setHtmlextension(htmlExtension);
 
-        if(doStem.toUpperCase().trim().equals("TRUE") || doStem.toUpperCase().trim().equals("YES")) {
+        if( !doStem.toUpperCase().trim().equals("FALSE") && !doStem.toUpperCase().trim().equals("NO")) {
             System.out.println("Stemming enabled");                    
             setStem(true);
+        } else {
+            System.out.println("Stemming disabled");
+            setStem(false);            
         }
 
         setTocfile(tocfile);
index 976ae07838e73a6710d1cb05973f1d96e4615507..c42cf7c853915ea3029be9d3265dbe7c35f0a9ec 100644 (file)
        <java classname="com.nexwave.nquindexer.IndexerMain"> 
          <sysproperty key="htmlDir" value="${output-dir}/content"/>
          <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}"/>
+
          <classpath>
            <path refid="classpath"/>
            <pathelement location="/usr/share/java/xercesImpl.jar"/>