Version 43.1 by Kieran Kelleher on 2007/12/10 20:52

Hide last authors
George Domurot 21.1 1 == Introduction ==
2
Kieran Kelleher 37.1 3 The previous tutorial articles provide details of customization of the default ant build script that is present in your WebObjects projects. This article provides a fully custom build script that you can just drop into your project and use it as an alternative to the default build.xml. This script is called the "split//embedded//build" script. Along with providing the script, this article explains in detail what deployment artifacts are produced by the build. Hopefully the functionality in this script will make their way into the standard script someday with configuration parameters settable in a simple way in the build.properties file.
George Domurot 21.1 4
5 == Pre-requisites ==
6
Kieran Kelleher 25.1 7 This script only works with the modern WOLips project format and the WOnderApplication project template format (since the layout of regular. However the script is easily changed to accommodate the "old" standard format by changing the dir names in the script (for example "Sources" in the new project layout was "src" in the old layout)
Kieran Kelleher 37.1 8
9 {{info title="Modern WebObjects Project Layout"}}
10
11 This layout is the standard layout for all WebObjects projects created by WOLips (rev #4735 at least). The distinct folder names indicate if your project is in this modern format and if yours is the same, then this ant script should work.
12
13 !modern_project_layout.jpg!
14
15 {{/info}}
16
17 == Installation and Usage of the Script ==
18
Kieran Kelleher 41.1 19 Have no fear ;-) , you will not break anything by dropping this script as is into your project and trying it out. YOu can just use it as is without replacing your default build.xml
Kieran Kelleher 37.1 20
21 * So, download the script and drag it to the root of your project.
22
Kieran Kelleher 43.1 23 * Open the Ant run configuration for the script
Kieran Kelleher 37.1 24
25 {{info title="Using the Ant Script"}}
Kieran Kelleher 43.1 26
27 !running_the_script.jpg!
Kieran Kelleher 37.1 28
29 {{/info}}
30
Kieran Kelleher 43.1 31 * Next, right-click on the script and select the "clean" and compileAndBuild" tasks. If necessary use the "Order..." button to ensure that "clean" comes before "compileAndBuild".
Kieran Kelleher 37.1 32
33 {{info title="Configure the Ant Tasks to be run"}}
Kieran Kelleher 43.1 34
35 !ant_tasks.jpg!
Kieran Kelleher 37.1 36
37 {{/info}}