RE: ant build.xml help

[email protected] (Dan McCarty) Fri, 9 Jan 2004 08:23:59 -0700
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Apologies if you've tried this already but sometimes running Ant in verbose
mode (with the '-verbose' switch) and reading the diagnostics helps.
Otherwise, this ant script looks fine unless the 'prepare' target is doing
something incorrect or unexpected.

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Jacob Kjome
Sent: Thursday, January 08, 2004 11:24 PM
To: [email protected]
Subject: Re: [Barracuda] ant build.xml help


At 11:42 AM 1/9/2004 +0800, you wrote:
>
>Hi,
>
>I have the following project file structure:
>
>1.    /Project/src/project -- root
>
>2.    /Project/src/project/presentation -- all java files are here.
>
>3.    /Project/src/project/resources -- All directories with html files
>are here.  I have created several directories under this to separate
>related html files from one another.  All html files related to main, for
>example, are at /Project/src/project/resources/main, and images for this
>directories are at /Project/src/project/resources/main/graphics.
>
>When I compile, all text hmtl files comes ok, but not the images.  I have
>the following in the build.xml:
>
><target name="content" depends="prepare">
>      <copy todir="${dir.content}">
>         <fileset dir="${dir.src}/${dir.package}/resources">
>     <include name="**/*.css"/>
>     <include name="**/*.gif"/>
>     <include name="**/*.jpg"/>
>     <include name="**/*.js"/>
>     <include name="**/*.jsp"/>
>         </fileset>
>      </copy>
>   </target>
>
>Can some body on the list point me to direction how and where can I solve
>this problem in build.xml?
>
>My apology that this may not be very much barracuda related question.
>
>Damar

Yes, this would have been a better question for the Ant list, but I can't
see anything wrong other than the fact that I don't know what exactly this
translates to...

${dir.src}/${dir.package}/resources

Does ${dir.src} map to:  "/Project/src"

and ${dir.package} map to:  "project"

???

If so, then it seems as if the copy should work fine.  Double check these
details.  It is unlikely that Ant is doing the wrong thing.  It is just
doing what it is told which is, likely, incorrect.....at least in my
experience.

Jake



_______________________________________________
Barracuda mailing list
[email protected]
http://barracudamvc.org/lists/listinfo/barracuda