Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 42882 invoked by uid 500); 29 Aug 2001 07:24:06 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 42866 invoked from network); 29 Aug 2001 07:24:05 -0000 Subject: RE: Fileset initialization problem To: ant-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: Sivaprasad.Kancherla@itsindia.com Date: Wed, 29 Aug 2001 12:58:27 +0530 X-MIMETrack: Serialize by Router on BLRMS2/ITS(Release 5.0.4 |June 8, 2000) at 08/29/2001 07:28:27 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS perl-11 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I found a solution to this problem. The support element happens to be a fileset. Initially I was using it like this: . . . Now I changed it to the following, obviating the need for fileset which was causing the problem. . . - Siva Sivaprasad.Kancherla@it sindia.com To: ant-user@jakarta.apache.org cc: 08/29/01 11:34 AM Subject: RE: Fileset initialization problem Please respond to ant-user > replace > > > > It is actually ${build.dir}. Sorry about the confusion. I need to create this directory in the init target. Now the problem is that the build fails saying the directory does not exist. How do I create a directory before Ant evaluates the fileset? > > with just > > > > BTW, everything outside a target is evaluated before any targets. > > Conor > > > > -----Original Message----- > > From: Sivaprasad.Kancherla@itsindia.com > > [mailto:Sivaprasad.Kancherla@itsindia.com] > > Sent: Wednesday, 29 August 2001 3:34 PM > > To: ant-user@jakarta.apache.org > > Subject: Fileset initialization problem > > > > > > I need few filesets to be referenced at a later point. The > > following is the > > skeleton of my build.xml file. > > > > > > > > > > > > > > > > > > > > > > > > > > > > . > > > > . > > . > > > > > > > > > > When I execute, the build file fails saying that directory ${src.dir} does > > not exist. It looks like ant is doing some fileset initiliazation > > before it > > calls the default target. It works perfectly, if I hardcode the fileset > > dir, instead of giving a property reference. Is there a > > workaround for this > > problem? > > > > I am writing a generic ejbjar target which can be passed the required > > paramters (descriptordir, support files etc), so that I can use to create > > any EJB I need. Since the support element of ejbjar task needs a > > fileset, I > > need a way of passing a fileset to the generic EJB target. Is there any > > other way of doing this without passing filesets. > > > > Thanks, > > Siva Prasad > > > > > > > >