From ba66a43bd625de12cd33cfeabedb17a928cbee29 Mon Sep 17 00:00:00 2001 From: Sanjay Dalal Date: Tue, 24 Nov 2009 22:38:32 +0000 Subject: [PATCH] NOJIRA create_db made recursive. create_db now exists for id, account and authentication services in addition to trunk. Update local build.properties to incorporate new JDBC related properties from this checkin. Deploy now also copies db scripts to destination domain. tests: ant create_db at trunk mvn test at service M trunk/services/authentication/service/build.xml M trunk/services/authentication/build.xml M trunk/services/id/service/build.xml M trunk/services/id/build.xml M trunk/services/account/build.xml A trunk/services/account/client/build.xml M trunk/services/build.xml M trunk/nbproject/private/private.xml A + trunk/src/main/resources/db D trunk/src/main/resources/scripts/db M trunk/build.properties M trunk/build.xml --- build.properties | 10 +- build.xml | 15 +- nbproject/private/private.xml | 12 +- services/account/build.xml | 7 +- services/account/client/build.xml | 142 ++++++++++++++++++ services/authentication/build.xml | 6 + services/authentication/service/build.xml | 32 +++- services/build.xml | 11 +- services/id/build.xml | 5 + services/id/service/build.xml | 30 +++- .../{scripts => }/db/mysql/init_db.sql | 0 .../{scripts => }/db/mysql/service-dump.sql | 0 12 files changed, 246 insertions(+), 24 deletions(-) create mode 100644 services/account/client/build.xml rename src/main/resources/{scripts => }/db/mysql/init_db.sql (100%) rename src/main/resources/{scripts => }/db/mysql/service-dump.sql (100%) diff --git a/build.properties b/build.properties index 4479f23b1..956127b9e 100644 --- a/build.properties +++ b/build.properties @@ -36,7 +36,7 @@ dist.deploy.nuxeo.system=${dist.deploy.nuxeo}/${nuxeo.system} #jboss #assumption: both nuxeo and cspace domains are using the same JBoss installation jboss.release=jboss-4.2.3.GA -jboss.dir=C:/dev/${jboss.release} +jboss.dir=/home/sanjaydalal/work/${jboss.release} jboss.home=${jboss.dir} #jboss cspace domain @@ -55,3 +55,11 @@ jboss.deploy.nuxeo=${jboss.server.nuxeo}/deploy jboss.lib.nuxeo=${jboss.server.nuxeo}/lib jboss.deploy.nuxeo.system=${jboss.deploy.nuxeo}/${nuxeo.system} +#database +db=mysql +db.script.dir=${basedir}/src/main/resources/db/${db} +db.user=root +db.user.password=admin +db.host=localhost +db.port=3306 +db.driver.jar=${jboss.lib.cspace}/mysql-connector-java-5.1.7-bin.jar \ No newline at end of file diff --git a/build.xml b/build.xml index 4cbc54949..7af82a079 100644 --- a/build.xml +++ b/build.xml @@ -8,10 +8,6 @@ - - - - @@ -203,22 +199,23 @@ - + + - + diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index 392f2c6e0..c1f155a78 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -1,8 +1,4 @@ - - - - - file:/C:/dev/src/cs/src/services/trunk/build.xml - file:/C:/dev/src/cs/src/services/trunk/pom.xml - - + + + + diff --git a/services/account/build.xml b/services/account/build.xml index 445894e2f..6c5a6f903 100644 --- a/services/account/build.xml +++ b/services/account/build.xml @@ -105,6 +105,11 @@ + + + + @@ -117,7 +122,7 @@ - + diff --git a/services/account/client/build.xml b/services/account/client/build.xml new file mode 100644 index 000000000..1a316e46e --- /dev/null +++ b/services/account/client/build.xml @@ -0,0 +1,142 @@ + + + + collectionspace account service + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/authentication/build.xml b/services/authentication/build.xml index 16f15b573..5a88b75ae 100644 --- a/services/authentication/build.xml +++ b/services/authentication/build.xml @@ -105,6 +105,12 @@ + + + + + diff --git a/services/authentication/service/build.xml b/services/authentication/service/build.xml index 5df18f8b3..374b8c71f 100644 --- a/services/authentication/service/build.xml +++ b/services/authentication/service/build.xml @@ -1,5 +1,5 @@ - + collectionspace authentication service @@ -108,9 +108,35 @@ + + + + + + + + + + + + + + + @@ -126,6 +152,10 @@ + + + + diff --git a/services/build.xml b/services/build.xml index 3902c2ecb..82d6a92f0 100644 --- a/services/build.xml +++ b/services/build.xml @@ -104,6 +104,13 @@ + + + + + + @@ -161,7 +168,7 @@ - + - + diff --git a/services/id/build.xml b/services/id/build.xml index 56d6c5c28..7f6bba48a 100644 --- a/services/id/build.xml +++ b/services/id/build.xml @@ -104,6 +104,11 @@ + + + + diff --git a/services/id/service/build.xml b/services/id/service/build.xml index e20419d33..c7fe75a8d 100644 --- a/services/id/service/build.xml +++ b/services/id/service/build.xml @@ -1,5 +1,5 @@ - + id service @@ -8,7 +8,6 @@ - @@ -106,8 +105,35 @@ + + + + + + + + + + + + + + + +