2010-01-29 22:12:41 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
2010-02-21 18:46:05 +00:00
|
|
|
<!-- ======================================================================
|
2010-04-08 18:51:09 +00:00
|
|
|
Build script for the NIH VIVO product.
|
2010-02-21 18:46:05 +00:00
|
|
|
|
|
|
|
The deploy.properties file contains both build properties and runtime
|
|
|
|
properties.
|
|
|
|
|
|
|
|
The required build properties are:
|
|
|
|
vitroCore.dir
|
|
|
|
tomcat.home
|
|
|
|
webapp.name
|
|
|
|
====================================================================== -->
|
2010-04-08 18:51:09 +00:00
|
|
|
<project name="nihvivo" default="describe">
|
2010-02-21 18:46:05 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Load the properties from deploy.properties.
|
|
|
|
-->
|
|
|
|
<property name="deploy.properties.file" location="deploy.properties" />
|
|
|
|
<fail message="You must create a "${deploy.properties.file}" file.">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="${deploy.properties.file}" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
<property file="${deploy.properties.file}" />
|
|
|
|
<fail unless="vitro.core.dir"
|
|
|
|
message="${deploy.properties.file} must contain a value for vitro.core.dir" />
|
|
|
|
|
2010-08-03 18:54:07 +00:00
|
|
|
<!--
|
|
|
|
Locate the core script in terms that the product script requires.
|
|
|
|
-->
|
|
|
|
<property name="inner.basedir" location="${vitro.core.dir}/webapp" />
|
|
|
|
|
2010-02-21 20:43:33 +00:00
|
|
|
<!--
|
|
|
|
Override the default location for project modifications.
|
|
|
|
-->
|
|
|
|
<property name="product.modifications.dir" location="./productMods" />
|
|
|
|
|
2010-02-21 18:46:05 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Set this property so the core themes will not be included in the build.
|
|
|
|
-->
|
|
|
|
<property name="skip.core.themes" value="true" />
|
|
|
|
|
2010-04-15 20:20:35 +00:00
|
|
|
<!--
|
2010-06-03 19:01:27 +00:00
|
|
|
Tell the licenser where to find its properties for this product.
|
2010-04-15 20:20:35 +00:00
|
|
|
-->
|
2010-06-03 19:01:27 +00:00
|
|
|
<property name="licenser.product.properties.file"
|
|
|
|
location="config/licenser/licenser.properties" />
|
2010-02-21 18:46:05 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Now get the standard product-build file.
|
|
|
|
-->
|
|
|
|
<import file="${vitro.core.dir}/webapp/product-build.xml" />
|
2010-01-29 22:12:41 +00:00
|
|
|
|
2010-03-15 20:22:16 +00:00
|
|
|
<!-- =================================
|
2010-06-03 19:01:27 +00:00
|
|
|
target: acceptance
|
2010-03-15 20:22:16 +00:00
|
|
|
================================= -->
|
2010-06-03 19:01:27 +00:00
|
|
|
<target name="acceptance" description="--> Run the Selenium acceptance tests.">
|
|
|
|
<ant dir="${vitro.core.dir}/utilities/testrunner" target="run" inheritall="false">
|
|
|
|
<property name="acceptance.dir" location="${basedir}/utilities/acceptance-tests" />
|
|
|
|
<property name="acceptance.batch" value="${acceptance.batch}" />
|
|
|
|
</ant>
|
2010-03-15 20:22:16 +00:00
|
|
|
</target>
|
2010-06-03 19:01:27 +00:00
|
|
|
|
2010-01-29 22:12:41 +00:00
|
|
|
</project>
|