|
Revision 3104
(checked in by douglm, 2 years ago)
|
Remove definition of property "base.name" from (almost) every build file. Was not used.
Stop defining, creating and copying to libapi. Wasn't in use.
Remove build directory from every project and use the build files in the main bedework project. improves consistency and maintainability. Also allowed some bugs to be fixed.
Allow setting of message level during build and set it at quiet. Allows error messages to be more obvious.
Create macro to handle the common property definitions. Reduces size and complexity of build files.
Add a build-jar macro. Removes need for build files for sub-modules. Partway through converting to use that.
|
| Line | |
|---|
| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- ============= deployutil classes build Targets ============ |
|---|
| 4 |
This is the ant build file for the deployment classes for bedework. |
|---|
| 5 |
|
|---|
| 6 |
Authors: Mike Douglass douglm@rpi.edu |
|---|
| 7 |
=================================================================== --> |
|---|
| 8 |
|
|---|
| 9 |
<project name="bedework.deployutil" default="build"> |
|---|
| 10 |
<property name="lib.dir" location="${org.bedework.default.lib}"/> |
|---|
| 11 |
|
|---|
| 12 |
<target name="init"> |
|---|
| 13 |
<delete dir="${lib.dir}" /> |
|---|
| 14 |
<mkdir dir="${lib.dir}" /> |
|---|
| 15 |
|
|---|
| 16 |
<dirname property="this.dir" file="${ant.file}"/> |
|---|
| 17 |
<property name="source.home" location="${this.dir}/src"/> |
|---|
| 18 |
|
|---|
| 19 |
<!-- ==================== Compilation Classpath ==================== --> |
|---|
| 20 |
|
|---|
| 21 |
<path id="compile.classpath"> |
|---|
| 22 |
<fileset dir="${lib.dir}"> |
|---|
| 23 |
<include name="*.jar"/> |
|---|
| 24 |
</fileset> |
|---|
| 25 |
<fileset dir="${dist.home}"> |
|---|
| 26 |
<include name="*.jar"/> |
|---|
| 27 |
</fileset> |
|---|
| 28 |
</path> |
|---|
| 29 |
</target> |
|---|
| 30 |
|
|---|
| 31 |
<target name="build" depends="init" |
|---|
| 32 |
description="Compile bedework deployutil classes"> |
|---|
| 33 |
<!-- ==================== Sources and classes ====================== --> |
|---|
| 34 |
|
|---|
| 35 |
<fileset id="buildjar.java.sources" dir="${source.home}" > |
|---|
| 36 |
<include name="org/bedework/*/*.java"/> |
|---|
| 37 |
</fileset> |
|---|
| 38 |
|
|---|
| 39 |
<patternset id="base.class.patternset"> |
|---|
| 40 |
<include name="org/bedework/*/*.class"/> |
|---|
| 41 |
</patternset> |
|---|
| 42 |
|
|---|
| 43 |
<ant antfile="${buildjar}" inheritRefs="true" target="build" /> |
|---|
| 44 |
</target> |
|---|
| 45 |
</project> |
|---|