I'm trying to decode this build file. Line 3, the project tag, sets the default attribute (am I correct in calling this an attribute?) to "build" and the basedir to "." which I am assuming is the directory from which you launch the "ant deploy" or "ant all deploy" command, or whatever else you want to do. If this is correct, then on my system, the project tag has told
Ant to put stuff (or look for it?) in C:\java\build\.
(Am I on the right track so far?)
I noticed on lines 9 and 10 that the property tags for src.dir and resources.dir indicate that these directories are to be put inside the basedir, so they will be found at C:\java\src\ and C:\java\resources\ respectively. But line 11 puts the build.dir directly at build\. I am assuming that the project tag has already told Ant to put build in the basedir, therefore it doesn't have to give the fully qualified location as it did in lines 9 and 10. Is this correct? (Also, is my terminology correct? I hate calling things by the wrong name. It adds to my confusion, as well as making discussion confusing.
<?xml version="1.0"?>
< !-- This build file uses ant 1.6 -->
<project name="bee" default="build" basedir=".">
<target name="init">
<property file="${user.home}/build.properties"/>
<property name="app.name" value="bee"/>
<property name="src.dir" location="${basedir}/src"/>
<property name="resources.dir" value="${basedir}/resources"/>
<property name="build.dir" location="build"/>
<property name="classes.dir" location="${build.dir}/classes"/>
<property name="dist.dir" location="${build.dir}/dist"/>
</target>
(I didn't ask for my title without good reason.....)
[ February 27, 2006: Message edited by: Carol Murphy ]