You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2011/05/16 21:57:17 UTC

svn commit: r1103861 - in /cassandra/branches/cassandra-0.8: build.xml doc/cql/CQL.html

Author: jbellis
Date: Mon May 16 19:57:16 2011
New Revision: 1103861

URL: http://svn.apache.org/viewvc?rev=1103861&view=rev
Log:
add "ant generate-cql-html"
patch by Nate McCall; reviewed by jbellis for CASSANDRA-2526

Removed:
    cassandra/branches/cassandra-0.8/doc/cql/CQL.html
Modified:
    cassandra/branches/cassandra-0.8/build.xml

Modified: cassandra/branches/cassandra-0.8/build.xml
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/build.xml?rev=1103861&r1=1103860&r2=1103861&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/build.xml (original)
+++ cassandra/branches/cassandra-0.8/build.xml Mon May 16 19:57:16 2011
@@ -221,6 +221,19 @@
          <arg value="${build.src.gen-java}/org/apache/cassandra/cql/" />
       </java> 
     </target>
+	
+	<target name="generate-cql-html" depends="maven-ant-tasks-init" description="Generate HTML from textile source">
+	  <artifact:dependencies pathId="wikitext.classpath">
+	    <dependency groupId="com.datastax.wikitext" artifactId="wikitext-core-ant" version="1.3"/>	    	  
+	    <dependency groupId="org.fusesource.wikitext" artifactId="textile-core" version="1.3"/>		          
+	  </artifact:dependencies>
+      <taskdef classpathref="wikitext.classpath" resource="wikitexttasks.properties" />
+	    <wikitext-to-html markupLanguage="Textile">
+		  <fileset dir="${basedir}">
+    		<include name="doc/cql/*.textile"/>
+		  </fileset>
+		</wikitext-to-html>
+	</target>
 
     <target name="scm-svn-info" description="Determines the current Subversion URL with peg revision"
             if="scm.provider.svn">