NIHVIVO-2811 Rewrite the build for vivoCornell; minor tweaks for the others.
This commit is contained in:
parent
52104e2e77
commit
60e92e9bf0
3 changed files with 19 additions and 38 deletions
|
@ -39,6 +39,10 @@ public abstract class AbstractWrappedFileSet implements ResourceCollection {
|
||||||
return fileSet.createInclude();
|
return fileSet.createInclude();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PatternSet.NameEntry createExclude() {
|
||||||
|
return fileSet.createExclude();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object clone() {
|
public Object clone() {
|
||||||
throw new BuildException(this.getClass().getSimpleName()
|
throw new BuildException(this.getClass().getSimpleName()
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
<property name="war-webinf.dir" location="${war.dir}/WEB-INF" />
|
<property name="war-webinf.dir" location="${war.dir}/WEB-INF" />
|
||||||
<property name="war-classes.dir" location="${war-webinf.dir}/classes" />
|
<property name="war-classes.dir" location="${war-webinf.dir}/classes" />
|
||||||
<property name="war-resources.dir" location="${war-webinf.dir}/resources" />
|
<property name="war-resources.dir" location="${war-webinf.dir}/resources" />
|
||||||
|
<property name="revisionInfo.build.file" location="${war-resources.dir}/revisionInfo.txt" />
|
||||||
|
|
||||||
<property name="test-classes.dir" location="${build.dir}/testclasses" />
|
<property name="test-classes.dir" location="${build.dir}/testclasses" />
|
||||||
|
|
||||||
|
@ -224,6 +225,14 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
||||||
</java>
|
</java>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- =================================
|
||||||
|
target: jar
|
||||||
|
================================= -->
|
||||||
|
<target name="jar" depends="test" description="--> Compile the Java, and build a JAR file">
|
||||||
|
<jar basedir="${war-classes.dir}"
|
||||||
|
destfile="${build.dir}/${ant.project.name}.jar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- =================================
|
<!-- =================================
|
||||||
target: revisionInfo
|
target: revisionInfo
|
||||||
================================= -->
|
================================= -->
|
||||||
|
@ -231,10 +240,6 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
||||||
depends="test"
|
depends="test"
|
||||||
unless="skipinfo"
|
unless="skipinfo"
|
||||||
description="--> Store revision info in build">
|
description="--> Store revision info in build">
|
||||||
|
|
||||||
<property name="revisionInfo.build.file" location="${war-resources.dir}/revisionInfo.txt" />
|
|
||||||
<delete file="${revisionInfo.build.file}" />
|
|
||||||
|
|
||||||
<tstamp>
|
<tstamp>
|
||||||
<format property="revisionInfo.timestamp" pattern="yyyy-MM-dd HH:mm:ss" />
|
<format property="revisionInfo.timestamp" pattern="yyyy-MM-dd HH:mm:ss" />
|
||||||
</tstamp>
|
</tstamp>
|
||||||
|
@ -330,7 +335,7 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
||||||
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.properties.file}" />
|
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.properties.file}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
MACROS
|
MACROS
|
||||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
It should be invoked from the build script of a Vivo product.
|
It should be invoked from the build script of a Vivo product.
|
||||||
</fail>
|
</fail>
|
||||||
|
|
||||||
<fail unless="inner.basedir"
|
|
||||||
message="The build script for the product must define a value for inner.basedir" />
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The build directory goes in the product directory.
|
The build directory goes in the product directory.
|
||||||
Everything else hangs from the build directory.
|
Everything else hangs from the build directory.
|
||||||
|
@ -56,34 +53,28 @@
|
||||||
<mkdir dir="${appbase.dir}/web" />
|
<mkdir dir="${appbase.dir}/web" />
|
||||||
|
|
||||||
<copy todir="${appbase.dir}/web" includeemptydirs="true">
|
<copy todir="${appbase.dir}/web" includeemptydirs="true">
|
||||||
<dirDifference dir="${inner.basedir}/web">
|
<dirDifference dir="${corebase.dir}/web">
|
||||||
<blockingPath>
|
<blockingPath>
|
||||||
<pathelement location="${product.modifications.dir}" />
|
<pathelement location="${product.modifications.dir}" />
|
||||||
</blockingPath>
|
</blockingPath>
|
||||||
</dirDifference>
|
</dirDifference>
|
||||||
</copy>
|
|
||||||
<copy todir="${appbase.dir}/web" includeemptydirs="true">
|
|
||||||
<fileset dir="${product.modifications.dir}" />
|
<fileset dir="${product.modifications.dir}" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<copy todir="${appbase.dir}/config" includeemptydirs="true">
|
|
||||||
<fileset dir="${inner.basedir}/config" />
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy todir="${appbase.dir}" includeemptydirs="true">
|
<copy todir="${appbase.dir}" includeemptydirs="true">
|
||||||
<dirDifference dir="${inner.basedir}">
|
<dirDifference dir="${corebase.dir}">
|
||||||
<include name="src/**/*" />
|
<include name="src/**/*" />
|
||||||
<include name="lib/**/*" />
|
<include name="lib/**/*" />
|
||||||
<include name="test/**/*" />
|
<include name="test/**/*" />
|
||||||
<include name="themes/**/*" unless="skip.core.themes" />
|
<include name="themes/**/*" unless="skip.core.themes" />
|
||||||
|
<include name="config/*.properties" />
|
||||||
|
<include name="config/solr/*" />
|
||||||
<include name="context.xml" />
|
<include name="context.xml" />
|
||||||
<blockingPath>
|
<blockingPath>
|
||||||
<pathelement location="." />
|
<pathelement location="." />
|
||||||
</blockingPath>
|
</blockingPath>
|
||||||
</dirDifference>
|
</dirDifference>
|
||||||
</copy>
|
<fileset dir=".">
|
||||||
<copy todir="${appbase.dir}" includeemptydirs="true">
|
|
||||||
<fileset dir="." erroronmissingdir="false">
|
|
||||||
<include name="src/**/*" />
|
<include name="src/**/*" />
|
||||||
<include name="lib/**/*" />
|
<include name="lib/**/*" />
|
||||||
<include name="test/**/*" />
|
<include name="test/**/*" />
|
||||||
|
@ -121,23 +112,4 @@
|
||||||
<runLicenserScript productname="${ant.project.name}" propertiesfile="${licenser.product.properties.file}" />
|
<runLicenserScript productname="${ant.project.name}" propertiesfile="${licenser.product.properties.file}" />
|
||||||
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.core.properties.file}" />
|
<runLicenserScript productname="Vitro core" propertiesfile="${licenser.core.properties.file}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!--
|
|
||||||
===========================================================================
|
|
||||||
===========================================================================
|
|
||||||
===========================================================================
|
|
||||||
NOT YET USING ANYTHING BELOW HERE
|
|
||||||
===========================================================================
|
|
||||||
===========================================================================
|
|
||||||
===========================================================================
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- =================================
|
|
||||||
target: jar
|
|
||||||
================================= -->
|
|
||||||
<target name="jar" depends="revisionInfo" description="--> Build the app and create a JAR file">
|
|
||||||
<jar basedir="${build.dir}/war/WEB-INF/classes"
|
|
||||||
destfile="${build.dir}/${webapp.name}.jar" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue