3. Creation of scripts Table of contents

3.2. The file "build.xml"

 

The project's directory (“bin\application\sample\myworld”) must contain a "build.xml" file.

Create a new file with your editor and name it “build.xml”. You will find the link to this file on the right side. Just copy and paste the contents to the file you have created. But modifications are necessary.

 

(1) Add your name and email to the file header.

@author Your Namer <your.name@domain.de>

 

(2) Specify the project name and the location where your project files are stored.

<project name="myworld_sample_application" default="compile" basedir="c:/Studienarbeit/cvs">

 

(3) We have to indicate several directories. First the /build and /lib directory.

<property name="builddir" value="${basedir}/build"/>

<property name="libdir" value="${basedir}/lib"/>

 

(4) Then specify the path where the project sources are stored.

<property name="sub_srcdir" value="${basedir}/src/application/sample/myworld"/>

  

(5) If we want to put all class-files in one jar-file (option archive), a name for this jar-file is needed.

<property name="name" value="myworld_sample_application"/>

  

(6) Here the name of the package and its location is specified.

<property name="package" value="org.resmedicinae.application.sample.myworld"/>

<property name="packagedir" value="org/resmedicinae/application/sample/myworld"/>

 

That’s all. If you take a closer look to the XML-file you will see the three sections for the “compile”, “archive” and “clean” option. This is used by ANT and therefore we maintain this code.

 

<<PREVIOUS                                                                   NEXT>>

Contents of build.bat

Contents of build.xml

Contents of start.bat

Contents of build.sh

Contents of start.sh

 
Copyright (c) 1999-2002. Dirk Behrendt All rights reserved. GNU FDL license. Last Update: 10.07.2002