|
Revision 2863, 1.1 kB
(checked in by michael, 5 years ago)
|
Basic project structure
|
| Line | |
|---|
| 1 |
<project name="restlet-jpa" default="help"> |
|---|
| 2 |
<!-- Sarugo common ant configuration --> |
|---|
| 3 |
<property name="ant.lib.dir" value="ant" /> |
|---|
| 4 |
<property name="ant.server" value="http://ant.sarugo.org" /> |
|---|
| 5 |
<property name="build.common.url" value="${ant.server}/build-common.xml" /> |
|---|
| 6 |
<property name="build.common.file" value="${ant.lib.dir}/build-common.xml" /> |
|---|
| 7 |
<condition property="download-build.common.required"> |
|---|
| 8 |
<not> |
|---|
| 9 |
<available file="${build.common.file}" type="file" /> |
|---|
| 10 |
</not> |
|---|
| 11 |
</condition> |
|---|
| 12 |
<condition property="bootstrap.required"> |
|---|
| 13 |
<not> |
|---|
| 14 |
<available file="${ant.lib.dir}" type="dir" /> |
|---|
| 15 |
</not> |
|---|
| 16 |
</condition> |
|---|
| 17 |
|
|---|
| 18 |
<target name="download-build.common"> |
|---|
| 19 |
<get src="${build.common.url}" dest="${build.common.file}" usetimestamp="true" /> |
|---|
| 20 |
</target> |
|---|
| 21 |
|
|---|
| 22 |
<import file="${build.common.file}" optional="true"/> |
|---|
| 23 |
|
|---|
| 24 |
<target name="bootstrap" description="Download build dependencies and libraries"> |
|---|
| 25 |
<mkdir dir="${ant.lib.dir}" /> |
|---|
| 26 |
<antcall target="download-build.common"/> |
|---|
| 27 |
<antcall target="common.bootstrap"/> |
|---|
| 28 |
</target> |
|---|
| 29 |
|
|---|
| 30 |
<target name="help"> |
|---|
| 31 |
<echo message="Run ant -p to see a list of targets." /> |
|---|
| 32 |
</target> |
|---|
| 33 |
|
|---|
| 34 |
</project> |
|---|