List:Cluster« Previous MessageNext Message »
From:Hartmut Holzgraefe Date:February 8 2010 8:36am
Subject:ANTified cluster/j example
View as plain text  
Not being a friend of having to figure out and type compiler
options like paths manually i have wrapped up the clusterJ
example from Bernds blog as an ant project.

Assuming you have a Cluster 7.1 installation with Cluster/J
enabled in place already all you need is to change the
"com.mysql.basedir" property to your install prefix
in the clusterj.properties file now to have ant being able
to compile *and* run the example. Or if you have used the
default /usr/local prefix you do not even need to change
anything at all.


Database initialization for the example code is done using
the mysql command line client to not add a JDBC&Connector/J
dependency at this point.

The attached archive is not my final version (forgot to
sync to this laptop before leaving the hotel this morning),
so it is missing some comments and a "dist" target for
ant to provide source distribution tarballs, but that aside
all the functionality i was aiming for is already in the
slightly outdated version i have on this laptop.

Just running "ant" will both compile and run the example,
"ant compile" just builds and "ant run" runs it.

More about this one later when i'm back at the hotel and
have my laptops reuinted ...

-- 
hartmut

Attachment: [application/x-gunzip] clusterj-example-antified.tar.gz
Thread
ANTified cluster/j exampleHartmut Holzgraefe8 Feb