Attempting to put the include inside the move element, one has the following 
error:

BUILD FAILED
/home/tomcat/build.xml:49: The following error occurred while executing this 
line:
/home/tomcat/jakarta-tomcat-5/build.xml:1896: The following error occurred 
while executing this line:
/home/tomcat/jakarta-tomcat-5/build.xml:670: The following error occurred 
while executing this line:
/home/tomcat/jakarta-tomcat-5/build.xml:682: The following error occurred 
while executing this line:
/home/tomcat/jakarta-tomcat-5/build.xml:718: The <move> type doesn't support 
the nested "include" element.



On 5/8/05, FL <[EMAIL PROTECTED]> wrote:
> 
> I'm iafraind I don't understand. Where should the line be?
> 
> I've done the following
> <mkdir dir="${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp" />
> 
> <move todir="${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp">
> <fileset dir="${tomcat-dbcp.home}/src/java/org/apache/commons"/>
> <fileset dir="${tomcat-dbcp.home}/src/java/org/apache/commons/">
> <include name="**/*.java" />
> </fileset>
> </move>
> 
> But this is the result:
> 
> BUILD FAILED
> /home/tomcat/build.xml:49: The following error occurred while executing 
> this line:
> /home/tomcat/jakarta-tomcat-5/build.xml:1901: The following error occurred 
> while executing this line:
> /home/tomcat/jakarta-tomcat-5/build.xml:670: The following error occurred 
> while executing this line:
> /home/tomcat/jakarta-tomcat-5/build.xml:682: The following error occurred 
> while executing this line:
> /home/tomcat/jakarta-tomcat-5/build.xml:718: Cannot replace directory 
> /usr/share/java/tomcat-deps/src/java/org/apache/tomcat/dbcp with directory 
> /usr/share/java/tomcat-deps/src/java/org/apache/commons
> 
> Total time: 8 seconds
> [EMAIL PROTECTED]:/home/tomcat# 
> 
> On 5/8/05, Kent R. Spillner <[EMAIL PROTECTED]> wrote: 
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Hi, FL-
> > 
> > I just encountered the same problem building tomcat that you reported 
> > on tomcat-user@ last
> > week. In my case, I'm trying to install tomcat 5.5.9 on Mac OS X
> > 10.4, using darwinports.
> > 
> > Personally, I think removing both the <mkdir> & <move> tasks is
> > risky; tomcat-dbcp 
> > obviously wants the commons source code to be relocated to an
> > org.apache.tomcat.dbcp
> > subpackage. I would be worried that while this might allow tomcat to
> > build, it will cause
> > breakage during normal use.
> > 
> > Instead, add an explicit <include> to the <fileset> inside the
> > problematic <move> task, i.e.:
> > <fileset dir="${tomcat-dbcp.home}/src/java/org/
> > apache/commons/">
> > <include name="**/*.java" />
> > </fileset>
> > 
> > HTH,
> > Kent
> > 
> > socrates:~ sl4mmy$ uname -a
> > Darwin socrates.local 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26
> > 14:15:22 PST 2005; 
> > root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc
> > socrates:~ sl4mmy$ java -version
> > java version "1.5.0_02"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-56)
> > Java HotSpot(TM) Client VM (build 1.5.0_02-36, mixed mode, sharing)
> > socrates:~ sl4mmy$ ant -version
> > Apache Ant version 1.6.3 compiled on April 28 2005
> > 
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (Darwin)
> > 
> > iD8DBQFCfn/R2DzcNcFR0iwRAk01AJ9S+f02D10AVeAdB6dCox69ACj+RACgjJhr 
> > gCS3ihcRGhEXhDaZ47dvoBw=
> > =/WEP
> > -----END PGP SIGNATURE-----
> > 
> 
>

Reply via email to