ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S I" <>
Subject RE: What's wrong with this script?
Date Sun, 19 Jun 2005 18:50:55 GMT
Looks like you have indicated to start at the ${basedir} and to include "**" 
everything from the base.dir and since the active files under webapps are 
held hostage by Tomcat (running), it will most definitely complain trying to 
copy locked files but if that's actually your intention, you have to stop 
Tomcat 1st.  Change it to "**/*" or "**/**/**" Something like that. Play 
around with the path.

----Original Message Follows----
From: Yaakov Chaikin <>
Reply-To: Yaakov Chaikin <>
To: Ant User <>
Subject: What's wrong with this script?
Date: Sun, 19 Jun 2005 14:19:23 -0400
MIME-Version: 1.0
Received: from ([]) by 
with Microsoft SMTPSVC(6.0.3790.211); Sun, 19 Jun 2005 11:19:49 -0700
Received: (qmail 95045 invoked by uid 500); 19 Jun 2005 18:19:44 -0000
Received: (qmail 95023 invoked by uid 99); 19 Jun 2005 18:19:44 -0000
Received: from (HELO (    by (qpsmtpd/0.29) with ESMTP; Sun, 19 Jun 2005 11:19:41 -0700
Received: pass ( domain of 
designates as permitted sender)
Received: from [] (HELO (    
by (qpsmtpd/0.29) with ESMTP; Sun, 19 Jun 2005 11:19:18 -0700
Received: by with SMTP id 9so643502nzo        for 
<>; Sun, 19 Jun 2005 11:19:23 -0700 (PDT)
Received: by with SMTP id n8mr2575713nzb;        Sun, 19 Jun 2005 
11:19:23 -0700 (PDT)
Received: by with HTTP; Sun, 19 Jun 2005 11:19:23 -0700 (PDT)
X-Message-Info: JGTYoYF78jGGqB6H9D3GYFpS39cOb/lASw+lixU4KAo=
Mailing-List: contact; run by ezmlm
Precedence: bulk
List-Unsubscribe: <>
List-Help: <>
List-Post: <>
List-Id: "Ant Users List" <>
Delivered-To: mailing list
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=RCVD_BY_IP
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=RCVD_BY_IP
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;        s=beta;; 

X-OriginalArrivalTime: 19 Jun 2005 18:19:49.0183 (UTC) 


I've been using ANT for a long time, but I guess, I am kind of rusty
on creating the scripts themselves.

Here is a simple script. All it does is copy a directory structure to
another directory. For some reason, I get all the directories PLUS
another directory called {tomcat.dir.deploy} (that's its literal
name). That directory has inside of it once again the entire directory
structure I want to copy plus yet another directory
{tomcat.dir.deploy}. This keeps going about 3 levels down, until
finally there is only the directories I wanted to copy without the
{tomcat.dir.deploy} directory.

Could someone point out to me what I am doing wrong?

Here is the build.xml I am using. It sits
<project name="deployDemo" default="deploy" basedir=".">
<property name="tomcat.dir.deploy"
location="C:/tomcat/jakarta-tomcat-5.5.9/webapps" />
<property name="" value="deployDemo"/>
<target name="deploy">
<copy todir="${tomcat.dir.deploy}/${}">
<fileset dir="${basedir}">
<include name="**"/>
<exclude name="build.xml" />
<target name="clean">
<delete dir="${tomcat.dir.deploy}/${}" />


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message