diff --git a/build.xml b/build.xml index 62d1a8b7..2ed78897 100644 --- a/build.xml +++ b/build.xml @@ -2,168 +2,44 @@ - + + - + + + + + + + + + + + - - - -Available targets: -all -- Runs "clean", then "deploy". -clean -- Removes any artifacts from previous builds, so the next build will be - a clean one. -deploy -- Rssembles the VIVO application and deploys it to the "webapps" - directory of your Tomcat server. - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/config/build.properties b/config/build.properties deleted file mode 100644 index 6cf14add..00000000 --- a/config/build.properties +++ /dev/null @@ -1,54 +0,0 @@ -# -# This is where we're assembling the source. -# -deploy.staging.dir = .deployStaging - -# -# Setting up the config properties. -# -deploy.properties.file = deploy.properties - -globalbuild.template.file = config/globalbuild.properties.template -vitrodeploy.template.file = config/vitrodeploy.properties.template -vitroUsers.template.file = config/vitroUsers.owl.template - -globalbuild.properties.file = ${deploy.staging.dir}/config/globalbuild.properties -vitrodeploy.properties.file = ${deploy.staging.dir}/webapp/config/deploy.properties -vitroUsers.owl.file = ${deploy.staging.dir}/webapp/ontologies/auth/vitroUsers.owl - -# -# Prepare the staging area -# -core-build.blocking.path = webapp/.build/**/* -themes.blocking.path = webapp/web/themes/**/* - -# -# Installing the themes. -# -themes.source.dir = themes/ -themes.destination.dir = ${deploy.staging.dir}/webapp/web/themes/ - -# -# Installing the Ontology. -# -ontology.source.dir = ontology -ontology.destination.dir = ${deploy.staging.dir}/webapp/ontologies/user - -# -# Installing the Model. -# -submodels.source.dir = model/submodels -submodels.destination.dir = ${deploy.staging.dir}/webapp/model/submodels -init-data.source.dir = model/init-data -init-data.destination.dir = ${deploy.staging.dir}/webapp/model/init-data - -# -# Adding modifications -# -modifications.source.dir = modifications -modifications.destination.dir = ${deploy.staging.dir}/webapp/web - -# -# The core compile and deploy. -# -vitro-core.build.file = ${deploy.staging.dir}/webapp/build.xml \ No newline at end of file diff --git a/config/globalbuild.properties.template b/config/globalbuild.properties.template deleted file mode 100644 index 2abd4bb5..00000000 --- a/config/globalbuild.properties.template +++ /dev/null @@ -1,49 +0,0 @@ -# these are ant build properties that all of the vitro and build.xml files might need. -# -# All of these paths must be absolute or relative to the vitro directory. Relative -# is preferred. - -# Notice that the use of relative paths is facilitated by the basedir attribute of the -# ant project elements. All projects should use the same base directory so that the -# relative paths will point to the correct files. -# See the ant documentation for project element basedir attribute. - -############## basic configuration ############### -java_api=/usr/local/java/java_home - -############ tomcat stuff #################### -tomcat.home=${deploy.tomcat.home} - -############# source directory ######################################### -##### This parameter is used for referencing a "permanent" home ####### -##### in the source directory of the project for uploaded files ####### -##### so that if the Tomcat webapp context is wiped out, any ####### -##### uploaded files (usually images) are not lost. ####### -######################################################################## -source.home=/usr/local/src/Vitro - -######################################################################## -##### Everything under this is used by the Vitro build.xml files ####### -##### You should not need to customize it for you local install ####### -######################################################################## - -########### ant contrib tasks ############### -ant.lib=./config/ant/lib -ant.contrib.jar=${ant.lib}/ant-contrib-1.0b2.jar - -#### locations of files in the build ##### -webapp.dir=./webapp -webapp.lib=${webapp.dir}/lib -webapp.build=${webapp.dir}/.build -webapp.dir.jar=${webapp.build}/vitro-webapp.jar -webapp.name=${deploy.webapp.name} -webapp.deploy.home=${tomcat.home}/webapps/${webapp.name} - -ingest.dir=./ingestTool -ingest.lib=${ingest.dir}/lib -ingest.build=${ingest.dir}/build - -ws.dir=./services -ws.lib=${ws.dir}/lib -ws.build=${webapp.dir}/build -ws.wsdd.dir=${ws.dir}/wsdd diff --git a/config/vitroUsers.owl.template b/config/vitroUsers.owl.template index 03b78b3d..a6911c6a 100644 --- a/config/vitroUsers.owl.template +++ b/config/vitroUsers.owl.template @@ -7,7 +7,7 @@ xml:base="http://vitro.mannlib.cornell.edu/ns/vitro/default"> - ${deploy.initialAdminUser} + ${initialAdminUser} 22BA075EC8951A70960A0A95C0BC2294 role:/50 diff --git a/config/vitrodeploy.properties.template b/config/vitrodeploy.properties.template deleted file mode 100644 index c6bb81ae..00000000 --- a/config/vitrodeploy.properties.template +++ /dev/null @@ -1,45 +0,0 @@ -# ----------------------------------------------------------------------------- -# -# Vitro deployment properties -# -# This file exists as a template in the vivoweb distribution. The property -# values are substituted in by the build script. -# -# ----------------------------------------------------------------------------- - -# -# The location where the VIVO application will store uploaded files -# (usually images). You should arrange for these files to be backed up in some -# way. -# -UploadImagesServlet.sourceDirName = ${deploy.upload.directory} - -# -# The location where the VIVO application will create its Lucene search -# index. -# -LuceneSetup.indexDir = ${deploy.LuceneSetup.indexDir} - -# -# This namespace will be used when generating URIs for objects created in the -# editor. Change it to reflect your own domain. For example, Cornell's -# namespace is http://vivo.cornell.edu/individual/ -# -# Note: it is essential that this namespace end with a trailing slash. -# -Vitro.defaultNamespace = ${deploy.Vitro.defaultNamespace} - -# -# SMTP host which the "Contact Us" form can use to send mail. If this is left -# empty, the "Contact Us" form will be disabled. -# -Vitro.smtpHost = - -# -# The basic parameters for a MySQL database connection. Change the end of the -# URL to reflect your database name (if it is not "vitro"). Change the username -# and password to match the authorized user you created in MySQL. -# -VitroConnection.DataSource.url = ${deploy.VitroConnection.DataSource.url} -VitroConnection.DataSource.username = ${deploy.VitroConnection.DataSource.username} -VitroConnection.DataSource.password = ${deploy.VitroConnection.DataSource.password} diff --git a/example.deploy.properties b/example.deploy.properties index fc1e9e6f..e8cdfe51 100644 --- a/example.deploy.properties +++ b/example.deploy.properties @@ -9,6 +9,16 @@ # # ----------------------------------------------------------------------------- +# +# Where is the Vitro core directory? +# In most deployments, this is set to ./vitro-core, but it commonly points +# elsewhere during development. +# Examples: +# vitro.core.dir = ./vitro-core +# vitro.core.dir = ../vitro +# vitro.core.dir = /usr/local/vitro/trunk +vitro.core.dir = ./vitro-core + # # The base install directory for your Tomcat server. The VIVO application # will be deployed in the /webapps directory below this base.