Revision 23537 trunk/extensions/extJCRS/build.xml
build.xml | ||
---|---|---|
4 | 4 |
</description> |
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<property name="src" location="src"/> |
7 |
<property name="without_src" location="without_src"/> |
|
7 | 8 |
<property name="src-test" location="src-test"/> |
8 | 9 |
<property name="build" location="bin"/> |
9 | 10 |
<property name="build-test" location="bin-test"/> |
... | ... | |
26 | 27 |
<mkdir dir="${dist}"/> |
27 | 28 |
</target> |
28 | 29 |
|
29 |
<target name="buildNumber"> |
|
30 |
<buildnumber/> |
|
31 |
</target> |
|
30 |
<target name="buildNumber"> |
|
31 |
<propertyfile file="build.number" |
|
32 |
comment="Build Number for ANT. Do not edit!"> |
|
33 |
<entry key="build.number" default="0" type="int" operation="+" /> |
|
34 |
</propertyfile> |
|
35 |
<property file="build.number" /> |
|
36 |
</target> |
|
32 | 37 |
|
33 |
<target name="distribution" depends="buildNumber, generate-without-source"> |
|
38 |
<target name="distribution" depends="buildNumber, copy-data-files, generate-without-source">
|
|
34 | 39 |
</target> |
35 | 40 |
|
36 | 41 |
<target name="compile" |
... | ... | |
93 | 98 |
</copy> |
94 | 99 |
|
95 | 100 |
</target> |
101 |
|
|
102 |
<target name="copy-data-files"> |
|
103 |
<copy file="config/config.xml" todir="${without_src}"/> |
|
104 |
<copy file="build.number" todir="${without_src}"/> |
|
105 |
<copy file="config/about.htm" todir="${without_src}"/> |
|
106 |
<loadproperties srcFile="build.number"/> |
|
107 |
<replace casesensitive="true" |
|
108 |
file="${without_src}/about.htm" |
|
109 |
token="#build.number#" |
|
110 |
value="${build.number}"/> |
|
111 |
<copy todir="${without_src}"> |
|
112 |
<fileset dir="config" includes="text*.properties"/> |
|
113 |
</copy> |
|
114 |
<copy todir="${without_src}/images"> |
|
115 |
<fileset dir="images/" includes="*"/> |
|
116 |
</copy> |
|
117 |
</target> |
|
96 | 118 |
|
97 | 119 |
<target name="batch-build" |
98 | 120 |
description="compile the sources, create the jar file" |
Also available in: Unified diff