From: Sanjay Dalal Date: Wed, 11 Nov 2009 20:11:36 +0000 (+0000) Subject: NOJIRA: added hotdeploy task in ant. this task calls cargo:undeploy and cargo:deploy X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=a4e27526017db34cb3229208a58683ad5fac6076;p=tmp%2Fjakarta-migration.git NOJIRA: added hotdeploy task in ant. this task calls cargo:undeploy and cargo:deploy in order. New maven plugin sets properties from build.properties before calling cargo tasks. Added new properties into build.properties. M services/JaxRsServiceProvider/nbactions.xml M services/JaxRsServiceProvider/pom.xml M services/JaxRsServiceProvider/build.xml M services/build.xml M build.properties M pom.xml M build.xml --- diff --git a/build.properties b/build.properties index 770a857b1..7d84abde8 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,6 @@ +host=127.0.0.1 #cspace -cspace.release=0.2 +cspace.release=0.4 cspace.services.release=cspace-services-${cspace.release} cspace.services.war=cspace-services.war domain.cspace=cspace @@ -37,6 +38,7 @@ jboss.home=${jboss.dir} #jboss cspace domain jboss.domain.cspace=${domain.cspace} +jboss.domain.cspace.port=8180 jboss.server.cspace=${jboss.home}/server/${jboss.domain.cspace} jboss.deploy.cspace=${jboss.server.cspace}/deploy jboss.lib.cspace=${jboss.server.cspace}/lib @@ -44,6 +46,7 @@ jboss.deploy.cspace.services=${jboss.server.cspace}/deploy/${cspace.services.war #jboss nuxeo domain jboss.domain.nuxeo=${domain.nuxeo} +jboss.domain.nuxeo.port=8080 jboss.server.nuxeo=${jboss.home}/server/${jboss.domain.nuxeo} jboss.deploy.nuxeo=${jboss.server.nuxeo}/deploy jboss.lib.nuxeo=${jboss.server.nuxeo}/lib diff --git a/build.xml b/build.xml index fcdb872e6..5c3c0d670 100644 --- a/build.xml +++ b/build.xml @@ -237,6 +237,11 @@ + + + + diff --git a/pom.xml b/pom.xml index 2a900bbdc..a4f601270 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ libs-snapshots-local http://source.collectionspace.org:8081/artifactory/libs-snapshots-local - + 3rdparty @@ -51,13 +51,13 @@ collectionspace-releases collectionspace-releases - http://source.collectionspace.org:8081/artifactory/public-nuxeo + http://source.collectionspace.org:8081/artifactory/public-nuxeo true false - + collectionspace-snapshots @@ -77,7 +77,7 @@ http://repo1.maven.org/maven2 false - + maven-restlet @@ -85,8 +85,8 @@ http://maven.restlet.org false - - + + java.net java.net Maven Repository @@ -94,7 +94,7 @@ legacy false - + codehaus snapshot repository http://snapshots.repository.codehaus.org/ @@ -155,7 +156,7 @@ true - + diff --git a/services/JaxRsServiceProvider/build.xml b/services/JaxRsServiceProvider/build.xml index dff8d9814..e6ba44aa6 100644 --- a/services/JaxRsServiceProvider/build.xml +++ b/services/JaxRsServiceProvider/build.xml @@ -108,6 +108,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/JaxRsServiceProvider/nbactions.xml b/services/JaxRsServiceProvider/nbactions.xml index 9d30c239a..3cc69b94b 100644 --- a/services/JaxRsServiceProvider/nbactions.xml +++ b/services/JaxRsServiceProvider/nbactions.xml @@ -1,74 +1,60 @@ - - - - test - - * - - - test - - - - build - - * - - - install - - - - clean - - * - - - clean - - - - rebuild - - * - - - clean - install - - - true - - - - run - - war - ear - ejb - - - package - - - - true - - - - debug - - war - ear - ejb - - - package - - - - true - true - - - + + + + test + + test + + + + build + + install + + + + clean + + clean + + + + rebuild + + clean + install + + + true + + + + run + + package + + + + true + + + + debug + + package + + + + true + true + + + + CUSTOM-redeploy + redeploy + + cargo:undeploy + cargo:deploy + + + diff --git a/services/JaxRsServiceProvider/pom.xml b/services/JaxRsServiceProvider/pom.xml index 68dc953d5..db4a04768 100644 --- a/services/JaxRsServiceProvider/pom.xml +++ b/services/JaxRsServiceProvider/pom.xml @@ -174,41 +174,24 @@ cspace-services package - + + + ../../build.properties + + + org.codehaus.cargo cargo-maven2-plugin @@ -222,7 +205,7 @@ runtime - 8180 + ${jboss.domain.cspace.port} cspace @@ -233,7 +216,7 @@ org.collectionspace.services org.collectionspace.services.jaxrs.provider war - http://127.0.0.1:8180 + http://${host}:${jboss.domain.cspace.port} diff --git a/services/build.xml b/services/build.xml index 74f86b6b9..754802ca1 100644 --- a/services/build.xml +++ b/services/build.xml @@ -132,6 +132,11 @@ + + + +