| | 139 | |
| | 140 | <para>After this has completed the <path>build</path> directory will look |
| | 141 | like the following, and the <path>dist</path> directory will contain a |
| | 142 | zipped file of the same contents.</para> |
| | 143 | |
| | 144 | <command-listing>build/ |
| | 145 | classes/ |
| | 146 | config/ |
| | 147 | images/ |
| | 148 | lib/ |
| | 149 | web/ |
| | 150 | lcp.bat |
| | 151 | run.bat |
| | 152 | run.sh</command-listing> |
| | 153 | |
| | 154 | <heading>Creating a web-app</heading> |
| | 155 | |
| | 156 | <para>From the same set of project files we can create a <ital>war</ital> |
| | 157 | file for running Naked Objects on a web server such as Tomcat. Running Ant |
| | 158 | again with the <em>web-app</em> target will create war file in the |
| | 159 | <path>dist</path> directory. It is important to note that we do not need to |
| | 160 | provide and additional files or configurations to create the war.</para> |
| | 161 | |
| | 162 | <command-listing>$ ant web-app |
| | 163 | Buildfile: build.xml |
| | 164 | |
| | 165 | compile: |
| | 166 | web-app: |
| | 167 | [mkdir] Created dir: /home/rcm/no-development/release-trial/office-workspace/build/war |
| | 168 | [unwar] Expanding: /home/rcm/tmp/release/developer/lib/nos-web-app-3.0M4D2-SNAPSHOT.war into /home/rcm/no-development/release-trial/office-workspace/build/war |
| | 169 | [war] Building war: /home/rcm/no-development/release-trial/office-workspace/dist/example.war |
| | 170 | BUILD SUCCESSFUL |
| | 171 | Total time: 5 seconds</command-listing> |