Re: ant build.xml help
Jacob Kjome <[email protected]> Fri, 09 Jan 2004 00:24:23 -0600
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
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