Author: jbellis Date: Wed Aug 24 18:18:52 2011 New Revision: 1161216 URL: http://svn.apache.org/viewvc?rev=1161216&view=rev Log: move drivers back in-tree until build issues can be fixed. see CASSANDRA-2761
Added: cassandra/trunk/drivers/ - copied from r1161213, cassandra/drivers/ Removed: cassandra/trunk/drivers/java/README.txt cassandra/trunk/drivers/java/build.properties.default cassandra/trunk/drivers/java/build.xml Modified: cassandra/trunk/ (props changed) cassandra/trunk/build.xml cassandra/trunk/contrib/ (props changed) cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java (props changed) cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java (props changed) cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java (props changed) cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java (props changed) cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java (props changed) Propchange: cassandra/trunk/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0:1053690-1055654 -/cassandra/branches/cassandra-0.8:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0:1125021-1130369 /cassandra/branches/cassandra-0.8.1:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3:1051699-1053689 Modified: cassandra/trunk/build.xml URL: http://svn.apache.org/viewvc/cassandra/trunk/build.xml?rev=1161216&r1=1161215&r2=1161216&view=diff ============================================================================== --- cassandra/trunk/build.xml (original) +++ cassandra/trunk/build.xml Wed Aug 24 18:18:52 2011 @@ -36,6 +36,7 @@ <property name="build.src" value="${basedir}/src"/> <property name="build.src.java" value="${basedir}/src/java"/> <property name="build.src.resources" value="${basedir}/src/resources"/> + <property name="build.src.driver" value="${basedir}/drivers/java/src" /> <property name="avro.src" value="${basedir}/src/avro"/> <property name="build.src.gen-java" value="${basedir}/src/gen-java"/> <property name="build.lib" value="${basedir}/lib"/> @@ -45,6 +46,7 @@ <property name="build.classes" value="${build.dir}/classes"/> <property name="build.classes.main" value="${build.classes}/main" /> <property name="build.classes.thrift" value="${build.classes}/thrift" /> + <property name="build.classes.cql" value="${build.classes}/cql" /> <property name="javadoc.dir" value="${build.dir}/javadoc"/> <property name="javadoc.jars.dir" value="${build.dir}/javadocs"/> <property name="interface.dir" value="${basedir}/interface"/> @@ -58,9 +60,11 @@ <property name="test.data" value="${test.dir}/data"/> <property name="test.name" value="*Test"/> <property name="test.unit.src" value="${test.dir}/unit"/> + <property name="test.src.driver" value="${basedir}/drivers/java/test"/> <property name="test.long.src" value="${test.dir}/long"/> <property name="test.distributed.src" value="${test.dir}/distributed"/> <property name="dist.dir" value="${build.dir}/dist"/> + <property name="cql.driver.version" value="1.0.4" /> <condition property="version" value="${base.version}"> <isset property="release"/> </condition> @@ -157,6 +161,7 @@ message="Not a source artifact, stopping here." /> <mkdir dir="${build.classes.main}"/> <mkdir dir="${build.classes.thrift}"/> + <mkdir dir="${build.classes.cql}"/> <mkdir dir="${test.lib}"/> <mkdir dir="${test.classes}"/> <mkdir dir="${build.src.gen-java}"/> @@ -391,6 +396,7 @@ url=${svn.entry.url}?pathrev=${svn.entry <dependency groupId="log4j" artifactId="log4j" version="1.2.16" /> <dependency groupId="org.apache.cassandra" artifactId="cassandra-all" version="${version}" /> <dependency groupId="org.apache.cassandra" artifactId="cassandra-thrift" version="${version}" /> + <dependency groupId="org.apache.cassandra" artifactId="cassandra-cql" version="${version}" /> </dependencyManagement> <developer id="alakshman" name="Avinash Lakshman"/> <developer id="antelder" name="Anthony Elder"/> @@ -478,7 +484,7 @@ url=${svn.entry.url}?pathrev=${svn.entry <!-- don't need hadoop classes to run, but if you use the hadoop stuff --> <dependency groupId="org.apache.hadoop" artifactId="hadoop-core" optional="true"/> - + <!-- don't need jna to run, but nice to have --> <dependency groupId="net.java.dev.jna" artifactId="jna" optional="true"/> @@ -497,6 +503,22 @@ url=${svn.entry.url}?pathrev=${svn.entry <dependency groupId="org.slf4j" artifactId="slf4j-api"/> <dependency groupId="org.apache.thrift" artifactId="libthrift"/> </artifact:pom> + <artifact:pom id="cql-pom" + artifactId="cassandra-cql" + url="http://cassandra.apache.org" + name="Apache Cassandra"> + <parent groupId="org.apache.cassandra" + artifactId="cassandra-parent" + version="${version}"/> + <scm connection="${scm.connection}" developerConnection="${scm.developerConnection}" url="${scm.url}"/> + <dependency groupId="com.google.guava" artifactId="guava"/> + <dependency groupId="org.slf4j" artifactId="slf4j-api"/> + <dependency groupId="org.apache.thrift" artifactId="libthrift"/> + <dependency groupId="org.apache.cassandra" artifactId="cassandra-thrift"/> + <dependency groupId="org.apache.cassandra" artifactId="cassandra-all"/> + <!-- because cassandra-all uses log4j, and we need cassandra-all, consumers must use log4j, so force log4j version of slf4j --> + <dependency groupId="org.slf4j" artifactId="slf4j-log4j12" scope="runtime"/> + </artifact:pom> <artifact:pom id="dist-pom" artifactId="apache-cassandra" @@ -666,6 +688,11 @@ url=${svn.entry.url}?pathrev=${svn.entry <src path="${build.src.gen-java}"/> <classpath refid="cassandra.classpath"/> </javac> + <javac debug="true" debuglevel="${debuglevel}" + destdir="${build.classes.cql}" includeantruntime="false"> + <src path="${build.src.driver}" /> + <classpath refid="cassandra.classpath"/> + </javac> <copy todir="${build.classes.main}"> <fileset dir="${build.src.resources}" /> </copy> @@ -723,6 +750,20 @@ url=${svn.entry.url}?pathrev=${svn.entry <!-- </section> --> </manifest> </jar> + + <!-- CQL driver Jar --> + <artifact:writepom pomRefId="cql-pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom"/> + <jar jarfile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.jar" + basedir="${build.classes.cql}"> + <manifest> + <attribute name="Implementation-Title" value="Cassandra"/> + <attribute name="Implementation-Version" value="${version}"/> + <attribute name="Implementation-Vendor" value="Apache"/> + <attribute name="Class-Path" + value="${ant.project.name}-thrift-${version}.jar" /> + </manifest> + </jar> </target> <!-- @@ -748,11 +789,23 @@ url=${svn.entry.url}?pathrev=${svn.entry <fileset dir="${build.src.gen-java}" defaultexcludes="yes"> <include name="org/apache/**/*.java"/> </fileset> + <fileset dir="${build.src.driver}" defaultexcludes="yes"> + <include name="org/apache/**/*.java"/> + </fileset> </filesets> </create-javadoc> <jar jarfile="${build.dir}/${final.name}-javadoc.jar" basedir="${javadoc.jars.dir}/main"/> + <create-javadoc destdir="${javadoc.jars.dir}/cql"> + <filesets> + <fileset dir="${build.src.driver}" defaultexcludes="yes"> + <include name="org/apache/**/*.java"/> + </fileset> + </filesets> + </create-javadoc> + <jar jarfile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-javadoc.jar" + basedir="${javadoc.jars.dir}/cql"/> <!-- javadoc task always rebuilds so might as well remove the generated docs to prevent being pulled into the distribution by accident --> <delete quiet="true" dir="${javadoc.jars.dir}"/> @@ -774,11 +827,19 @@ url=${svn.entry.url}?pathrev=${svn.entry <fileset dir="${build.src.gen-java}" defaultexcludes="yes"> <include name="org/apache/**/*.java"/> </fileset> + <fileset dir="${build.src.driver}" defaultexcludes="yes"> + <include name="org/apache/**/*.java"/> + </fileset> + </jar> + <jar jarfile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-sources.jar"> + <fileset dir="${build.src.driver}" defaultexcludes="yes"> + <include name="org/apache/**/*.java"/> + </fileset> </jar> </target> <!-- creates release tarballs --> - <target name="artifacts" depends="jar,javadoc" + <target name="artifacts" depends="jar,javadoc,py-cql-driver" description="Create Cassandra release artifacts"> <mkdir dir="${dist.dir}"/> <copy todir="${dist.dir}/lib"> @@ -868,12 +929,14 @@ url=${svn.entry.url}?pathrev=${svn.entry algorithm="MD5"> <fileset dir="${build.dir}"> <include name="*.tar.gz" /> + <include name="${ant.project.name}-cql-${cql.driver.version}.jar" /> </fileset> </checksum> <checksum forceOverwrite="yes" todir="${build.dir}" fileext=".sha" algorithm="SHA"> <fileset dir="${build.dir}"> <include name="*.tar.gz" /> + <include name="${ant.project.name}-cql-${cql.driver.version}.jar" /> </fileset> </checksum> @@ -903,9 +966,11 @@ url=${svn.entry.url}?pathrev=${svn.entry destdir="${test.classes}"> <classpath> <path refid="cassandra.classpath"/> + <pathelement location="${build.classes.cql}"/> </classpath> <src path="${test.unit.src}"/> <src path="${test.long.src}"/> + <src path="${test.src.driver}"/> </javac> <!-- Non-java resources needed by the test suite --> @@ -954,6 +1019,7 @@ url=${svn.entry.url}?pathrev=${svn.entry <classpath> <path refid="cassandra.classpath" /> <pathelement location="${test.classes}"/> + <pathelement location="${build.classes.cql}"/> <path refid="cobertura.classpath"/> <pathelement location="${test.conf}"/> <fileset dir="${test.lib}"> @@ -982,8 +1048,11 @@ url=${svn.entry.url}?pathrev=${svn.entry <jvmarg value="-Dlegacy-sstable-root=${test.data}/legacy-sstables"/> <jvmarg value="-Dcorrupt-sstable-root=${test.data}/corrupt-sstables"/> </testmacro> + <testmacro suitename="driverunit" inputdir="${test.src.driver}" timeout="60000"> + <jvmarg value="-Dlegacy-sstable-root=${test.data}/legacy-sstables"/> + </testmacro> </target> - + <target name="test-compression" depends="build-test" description="Execute unit tests with sstable compression enabled"> <testmacro suitename="unit" inputdir="${test.unit.src}" timeout="60000"> <jvmarg value="-Dlegacy-sstable-root=${test.data}/legacy-sstables"/> @@ -991,7 +1060,7 @@ url=${svn.entry.url}?pathrev=${svn.entry <jvmarg value="-Dcassandra.test.compression=true"/> </testmacro> </target> - + <target name="msg-ser-gen-test" depends="build-test" description="Generates message serializations"> <testmacro suitename="unit" inputdir="${test.unit.src}" timeout="60000" filter="**/SerializationsTest.java"> @@ -1136,6 +1205,8 @@ url=${svn.entry.url}?pathrev=${svn.entry <classpathentry kind="src" path="src/java"/> <classpathentry kind="src" path="src/gen-java"/> <classpathentry kind="src" path="interface/thrift/gen-java"/> + <classpathentry kind="src" path="drivers/java/src"/> + <classpathentry kind="src" path="drivers/java/test"/> <classpathentry kind="src" path="test/unit"/> <classpathentry kind="src" path="test/long"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> @@ -1213,6 +1284,17 @@ url=${svn.entry.url}?pathrev=${svn.entry <delete dir="build/eclipse-classes" /> </target> + <target name="py-cql-driver" + description="Generate Python CQL driver artifact"> + <echo>Creating Python CQL driver artifact...</echo> + <exec executable="python" dir="${basedir}/drivers/py" failonerror="true"> + <arg line="setup.py" /> + <arg line="sdist" /> + <arg line="--dist-dir" /> + <arg line="${build.dir}" /> + </exec> + </target> + <!-- Publish artifacts to Maven repositories --> <target name="mvn-install" depends="maven-declare-dependencies,artifacts,jar,sources-jar,javadoc-jar" @@ -1255,6 +1337,16 @@ url=${svn.entry.url}?pathrev=${svn.entry <install pomFile="${build.dir}/${final.name}.pom" file="${build.dir}/${final.name}-javadoc.jar" classifier="javadoc"/> + + <!-- the cassandra-cql jar --> + <install pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.jar"/> + <install pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-sources.jar" + classifier="sources"/> + <install pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-javadoc.jar" + classifier="javadoc"/> </target> <target name="publish" @@ -1299,6 +1391,16 @@ url=${svn.entry.url}?pathrev=${svn.entry <deploy pomFile="${build.dir}/${final.name}.pom" file="${build.dir}/${final.name}-javadoc.jar" classifier="javadoc"/> + + <!-- the cassandra-cql jar --> + <deploy pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.jar"/> + <deploy pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-sources.jar" + classifier="sources"/> + <deploy pomFile="${build.dir}/${ant.project.name}-cql-${cql.driver.version}.pom" + file="${build.dir}/${ant.project.name}-cql-${cql.driver.version}-javadoc.jar" + classifier="javadoc"/> </target> </project> Propchange: cassandra/trunk/contrib/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/contrib:922689-1052356,1052358-1053452,1053454,1053456-1068009 /cassandra/branches/cassandra-0.7/contrib:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/contrib:1053690-1055654 -/cassandra/branches/cassandra-0.8/contrib:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/contrib:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/contrib:1125021-1130369 /cassandra/branches/cassandra-0.8.1/contrib:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/contrib:1051699-1053689 Propchange: cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1053690-1055654 -/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1125021-1130369 /cassandra/branches/cassandra-0.8.1/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java:1051699-1053689 Propchange: cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1053690-1055654 -/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1125021-1130369 /cassandra/branches/cassandra-0.8.1/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/interface/thrift/gen-java/org/apache/cassandra/thrift/Column.java:1051699-1053689 Propchange: cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1053690-1055654 -/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1125021-1130369 /cassandra/branches/cassandra-0.8.1/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/interface/thrift/gen-java/org/apache/cassandra/thrift/InvalidRequestException.java:1051699-1053689 Propchange: cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1053690-1055654 -/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1125021-1130369 /cassandra/branches/cassandra-0.8.1/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/interface/thrift/gen-java/org/apache/cassandra/thrift/NotFoundException.java:1051699-1053689 Propchange: cassandra/trunk/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Wed Aug 24 18:18:52 2011 @@ -1,7 +1,7 @@ /cassandra/branches/cassandra-0.6/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:922689-1052356,1052358-1053452,1053454,1053456-1131291 /cassandra/branches/cassandra-0.7/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1026516-1160444,1160825 /cassandra/branches/cassandra-0.7.0/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1053690-1055654 -/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1090934-1125013,1125019-1160459,1160827 +/cassandra/branches/cassandra-0.8/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1090934-1125013,1125019-1133844,1133846-1133917,1133919-1135156,1135158-1160459,1160827 /cassandra/branches/cassandra-0.8.0/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1125021-1130369 /cassandra/branches/cassandra-0.8.1/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1101014-1125018 /cassandra/tags/cassandra-0.7.0-rc3/interface/thrift/gen-java/org/apache/cassandra/thrift/SuperColumn.java:1051699-1053689