NIHVIVO-2811 remove product-build.xml, since the code is now small enough and ideosyncratic enough to go into VIVO and VivoCornell's build files.

This commit is contained in:
j2blake 2011-09-12 20:39:44 +00:00
parent 9fcac79e34
commit 66252c17f1

101
build.xml
View file

@ -15,6 +15,13 @@
====================================================================== --> ====================================================================== -->
<project name="nihvivo" default="describe"> <project name="nihvivo" default="describe">
<!--
The build directory goes in the product directory.
Everything else hangs from the build directory.
-->
<property name="build.dir" location="./.build" />
<property name="appbase.dir" location="${build.dir}/appBase" />
<!-- <!--
Load the properties from deploy.properties. Load the properties from deploy.properties.
--> -->
@ -31,25 +38,89 @@
message="${deploy.properties.file} must contain a value for vitro.core.dir" /> message="${deploy.properties.file} must contain a value for vitro.core.dir" />
<!-- <!--
Override the default location for project modifications. Base it all on the core build file.
--> -->
<property name="product.modifications.dir" location="./productMods" /> <import file="${vitro.core.dir}/webapp/build.xml" />
<!-- <!-- - - - - - - - - - - - - - - - - -
Set this property so the core themes will not be included in the build. target: prepare
-->
<property name="skip.core.themes" value="true" />
<!-- Override the core version, so we can merge the three levels before building.
Tell the licenser where to find its properties for this product. - - - - - - - - - - - - - - - - - -->
--> <target name="prepare" depends="compileUtilities,product-prepare,vitroCore.prepare" />
<!-- - - - - - - - - - - - - - - - - -
target: product-prepare
- - - - - - - - - - - - - - - - - -->
<target name="product-prepare">
<mkdir dir="${appbase.dir}" />
<mkdir dir="${appbase.dir}/web" />
<copy todir="${appbase.dir}/web" includeemptydirs="true">
<dirDifference dir="${corebase.dir}/web">
<blockingPath>
<pathelement location="./productMods" />
</blockingPath>
</dirDifference>
<fileset dir="./productMods" />
</copy>
<patternset id="appbase.patterns">
<include name="src/**/*" />
<include name="lib/**/*" />
<include name="test/**/*" />
<include name="themes/**/*" />
<include name="config/*.properties" />
<include name="config/solr/*" />
<include name="context.xml" />
</patternset>
<copy todir="${appbase.dir}" includeemptydirs="true">
<dirDifference dir="${corebase.dir}">
<patternset refid="appbase.patterns" />
<exclude name="themes/**/*" if="skip.core.themes" />
<blockingPath>
<pathelement location="." />
</blockingPath>
</dirDifference>
<fileset dir=".">
<patternset refid="appbase.patterns" />
</fileset>
</copy>
</target>
<import file="${vitro.core.dir}/webapp/build.xml" />
<!-- =================================
target: revisionInfo
Override the core version, to get the 2-level effect.
================================= -->
<target name="revisionInfo"
depends="vitroCore.revisionInfo"
description="--> Store revision info in build">
<addRevisionInfoLine productName="${ant.project.name}" productCheckoutDir="${basedir}" />
</target>
<!-- =================================
target: licenser
In regular use, checks that all appropriate source files have license tags.
At release time, applies license text to source files.
The files are handled as properties so they can be overridden from the command line, if desired.
Override the core version, to get the 2-level effect.
================================= -->
<target name="licenser" description="--> Check source files for licensing tags">
<property name="licenser.product.properties.file" <property name="licenser.product.properties.file"
location="config/licenser/licenser.properties" /> location="./config/licenser/licenser.properties" />
<property name="licenser.core.properties.file"
<!-- location="${corebase.dir}/config/licenser/licenser.properties" />
Now get the standard product-build file. <runLicenserScript productname="${ant.project.name}"
--> propertiesfile="${licenser.product.properties.file}" />
<import file="${vitro.core.dir}/webapp/product-build.xml" /> <runLicenserScript productname="Vitro core"
propertiesfile="${licenser.core.properties.file}" />
</target>
<!-- ================================= <!-- =================================
target: acceptance target: acceptance