Show
Ignore:
Timestamp:
08/09/07 18:45:38 (3 years ago)
Author:
rcmatthews
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documents/trunk/documentation/src/app-dev/build-app.xml

    r9828 r9830  
    118118  <chmod file="${build.dir}/run.sh" perm="ugo+x"/> 
    119119 
    120   <mkdir dir="dist" /> 
     120  <mkdir dir="${dist.dir}" /> 
    121121  <zip destfile="dist/no-application.zip" > 
    122122    <zipfileset dir="${build.dir}" prefix="no-application" /> 
     
    130130Buildfile: build.xml 
    131131 
     132compile: 
    132133dist: 
    133134     [copy] Copying 45 files to /home/rcm/workspace/project/build/lib 
     
    136137BUILD SUCCESSFUL 
    137138Total time: 6 seconds</command-listing> 
     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 
     163Buildfile: build.xml 
     164 
     165compile: 
     166web-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 
     170BUILD SUCCESSFUL 
     171Total time: 5 seconds</command-listing> 
    138172</section>