Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build cassandra

  • Loading branch information...
commit c6e3cf368426b455d1b0d4e85792b0323cbd3ba0 1 parent b54bbeb
@acme authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 bin/build.pl
View
18 bin/build.pl
@@ -11,8 +11,11 @@
my $thrift_trunk_makefile = file( $thrift_trunk_dir, 'Makefile' );
my $thrift_trunk_thrift
= file( $thrift_trunk_dir, 'compiler', 'cpp', 'thrift' );
-my $cassandra_trunk_dir = dir( cwd, 'cassandra-trunk' );
my $thrift_installed_dir = dir( cwd, 'thrift' );
+my $cassandra_trunk_dir = dir( cwd, 'cassandra-trunk' );
+my $cassandra_class
+ = dir( cwd, 'cassandra-trunk', 'build', 'classes', 'org', 'apache',
+ 'cassandra', 'service', 'CassandraDaemon.class' );
unless ( -d $thrift_trunk_dir ) {
say 'Fetching Thrift';
@@ -50,3 +53,16 @@
die 'Failed to make' unless -d $thrift_installed_dir;
}
+unless ( -d $cassandra_trunk_dir ) {
+ say 'Fetching Cassandra';
+ system
+ "svn checkout http://svn.apache.org/repos/asf/incubator/cassandra/trunk $cassandra_trunk_dir";
+ die 'Failed to fetch' unless -d $cassandra_trunk_dir;
+}
+
+unless ( -f $cassandra_class ) {
+ say 'Building Cassandra';
+ chdir $cassandra_trunk_dir;
+ system "ant";
+ die 'Failed to build' unless -f $cassandra_class;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.