| 1 | <?xml version="1.0"?> |
|---|
| 2 | <!-- ====================================================================== |
|---|
| 3 | Mar 18, 2007 1:30:20 AM |
|---|
| 4 | |
|---|
| 5 | coldbox.deploy |
|---|
| 6 | ColdBox Deployment |
|---|
| 7 | |
|---|
| 8 | lmajano |
|---|
| 9 | ====================================================================== --> |
|---|
| 10 | <project name="coldbox.newbuild" default="build" basedir="../../"> |
|---|
| 11 | |
|---|
| 12 | <!--Build Properties--> |
|---|
| 13 | <property name="dir.build" value="/Users/lmajano/Documents/MyDocs/My Programs/exports/coldbox" /> |
|---|
| 14 | <property name="dir.dashboard" value="/Users/lmajano/Documents/MyDevelopment/applications/dashboard" /> |
|---|
| 15 | |
|---|
| 16 | <!--External Ant Tasks--> |
|---|
| 17 | <property name="ant.compilechecks" value="ant/framework/ant_compile.xml" /> |
|---|
| 18 | <property name="ant.dashboard" value="${dir.dashboard}/build.xml" /> |
|---|
| 19 | |
|---|
| 20 | <!--BUild--> |
|---|
| 21 | <target name="build" description="Build a new coldbox distribution"> |
|---|
| 22 | |
|---|
| 23 | <!--Need Compile Checks First --> |
|---|
| 24 | <ant antfile="${ant.compilechecks}" target="compile.checks" /> |
|---|
| 25 | |
|---|
| 26 | <copy todir="${dir.build}/system"> |
|---|
| 27 | <fileset dir="src/system"> |
|---|
| 28 | </fileset> |
|---|
| 29 | </copy> |
|---|
| 30 | |
|---|
| 31 | <copy todir="${dir.build}/samples"> |
|---|
| 32 | <fileset dir="samples"> |
|---|
| 33 | </fileset> |
|---|
| 34 | </copy> |
|---|
| 35 | |
|---|
| 36 | <copy todir="${dir.build}/install"> |
|---|
| 37 | <fileset dir="install" /> |
|---|
| 38 | </copy> |
|---|
| 39 | |
|---|
| 40 | <copy todir="${dir.build}/ApplicationTemplate"> |
|---|
| 41 | <fileset dir="ApplicationTemplate" /> |
|---|
| 42 | </copy> |
|---|
| 43 | |
|---|
| 44 | <!--Copy text files to install folder--> |
|---|
| 45 | <copy todir="${dir.build}/install"> |
|---|
| 46 | <fileset file="src/system/config/license.txt" /> |
|---|
| 47 | <fileset file="src/system/config/readme.txt" /> |
|---|
| 48 | </copy> |
|---|
| 49 | |
|---|
| 50 | <!--Copy Documents--> |
|---|
| 51 | <copy todir="${dir.build}/install/SchemaDocs"> |
|---|
| 52 | <fileset dir="documents/SchemaDocs"/> |
|---|
| 53 | </copy> |
|---|
| 54 | |
|---|
| 55 | <!--Copy Wallpapers--> |
|---|
| 56 | <copy todir="${dir.build}/install/wallpapers"> |
|---|
| 57 | <fileset dir="documents/workbench/wallpapers"/> |
|---|
| 58 | </copy> |
|---|
| 59 | |
|---|
| 60 | <!--Create Compiled source--> |
|---|
| 61 | <mkdir dir="${dir.build}/compiled_system" /> |
|---|
| 62 | |
|---|
| 63 | <!--CompileSource--> |
|---|
| 64 | <ant antfile="ant/framework/ant_compile.xml" target="deploy" /> |
|---|
| 65 | |
|---|
| 66 | <!--Move Compiled data--> |
|---|
| 67 | <copy todir="${dir.build}/compiled_system"> |
|---|
| 68 | <fileset dir="dist" /> |
|---|
| 69 | </copy> |
|---|
| 70 | |
|---|
| 71 | <!--Remove Dist--> |
|---|
| 72 | <delete dir="dist" /> |
|---|
| 73 | |
|---|
| 74 | <!--Copy Dashboard--> |
|---|
| 75 | <ant antfile="${ant.dashboard}" target="deploy.to.export" dir="${dir.dashboard}" /> |
|---|
| 76 | |
|---|
| 77 | </target> |
|---|
| 78 | |
|---|
| 79 | </project> |
|---|