NIHVIVO-1258 Modify "productCompile" step in the build so a class in the product will replace an identically named class from the Vitro core.
This commit is contained in:
parent
9b52ad335c
commit
5c1c0b2936
1 changed files with 11 additions and 3 deletions
|
@ -134,14 +134,22 @@
|
||||||
target: productCompile
|
target: productCompile
|
||||||
- - - - - - - - - - - - - - - - - -->
|
- - - - - - - - - - - - - - - - - -->
|
||||||
<target name="productCompile" depends="productPrepare" if="product.sources.exist">
|
<target name="productCompile" depends="productPrepare" if="product.sources.exist">
|
||||||
|
<property name="product.classes.dir" value="${build.dir}/${ant.project.name}/classes" />
|
||||||
|
<mkdir dir="${product.classes.dir}" />
|
||||||
<javac srcdir="${product.source.dir}"
|
<javac srcdir="${product.source.dir}"
|
||||||
destdir="${build.dir}/war/WEB-INF/classes"
|
destdir="${product.classes.dir}"
|
||||||
debug="true"
|
debug="true"
|
||||||
deprecation="true"
|
deprecation="true"
|
||||||
optimize="true"
|
optimize="true"
|
||||||
source="1.6">
|
source="1.6">
|
||||||
<classpath refid="compile.classpath" />
|
<classpath>
|
||||||
|
<path refid="compile.classpath" />
|
||||||
|
<pathelement location="${build.dir}/war/WEB-INF/classes"/>
|
||||||
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
<copy todir="${build.dir}/war/WEB-INF/classes" overwrite="true">
|
||||||
|
<fileset dir="${product.classes.dir}" />
|
||||||
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- =================================
|
<!-- =================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue