| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<project name="portal" default="all" basedir=".."> |
| 4 |
|
| 5 |
<property file="${basedir}/override.properties" /> |
| 6 |
<property file="${basedir}/build.properties" /> |
| 7 |
|
| 8 |
<taskdef resource="net/sf/antcontrib/antlib.xml"> |
| 9 |
<classpath> |
| 10 |
<pathelement location="${basedir}/lib/ant-contrib-1.0b2.jar" /> |
| 11 |
</classpath> |
| 12 |
</taskdef> |
| 13 |
|
| 14 |
<property name="files.dir" value="${portal.home}/files"/> |
| 15 |
<property name="patches.dir" value="${portal.home}/patches"/> |
| 16 |
|
| 17 |
<property name="shell.cmd" value="sh"/> |
| 18 |
<property name="shell.options" value="-c"/> |
| 19 |
|
| 20 |
<target name="check.os" |
| 21 |
description="--> Check OS"> |
| 22 |
<condition property="isWindows"> |
| 23 |
<os family="windows" /> |
| 24 |
</condition> |
| 25 |
</target> |
| 26 |
|
| 27 |
<target name="setup.shell" depends="check.os" if="isWindows" |
| 28 |
description="--> Setup shell parameters"> |
| 29 |
<property name="shell.cmd" value="cmd.exe"/> |
| 30 |
<property name="shell.options" value="/c"/> |
| 31 |
</target> |
| 32 |
|
| 33 |
<!-- =================================================================== --> |
| 34 |
<!-- CLEAN INSTALLER --> |
| 35 |
<!-- =================================================================== --> |
| 36 |
|
| 37 |
<target name="clean.installer" |
| 38 |
description="--> Build Installer"> |
| 39 |
<exec |
| 40 |
executable="${shell.cmd}" |
| 41 |
failonerror="true" |
| 42 |
dir="${installer.dir}" |
| 43 |
> |
| 44 |
<arg line="${shell.options} 'maven ${jetspeed2.installer.options} clean'"/> |
| 45 |
</exec> |
| 46 |
</target> |
| 47 |
<!-- =================================================================== --> |
| 48 |
<!-- BUILD INSTALLER --> |
| 49 |
<!-- =================================================================== --> |
| 50 |
|
| 51 |
<target name="build.installer" |
| 52 |
description="--> Build Installer"> |
| 53 |
<exec |
| 54 |
executable="${shell.cmd}" |
| 55 |
failonerror="true" |
| 56 |
dir="${installer.dir}" |
| 57 |
> |
| 58 |
<arg line="${shell.options} 'maven ${jetspeed2.installer.options} build'"/> |
| 59 |
</exec> |
| 60 |
</target> |
| 61 |
|
| 62 |
</project> |
| 63 |
|