Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 99204 invoked by uid 500); 5 Jun 2001 19:53:41 -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 99195 invoked from network); 5 Jun 2001 19:53:40 -0000 X-Originating-IP: [63.76.194.67] From: "Pinar Bicioglu" To: ant-user@jakarta.apache.org Bcc: Subject: Re: build.xml help - making a dist Date: Tue, 05 Jun 2001 19:53:14 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Jun 2001 19:53:14.0419 (UTC) FILETIME=[283E6030:01C0EDF9] X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I am myself a new user of ant. And I know what you are going through now :) I wrote a little script for my project with using tomcat and ant.It works fine. So I am going to post the part of it for you... ${deploy.homeRoot} is where I installed Tomcat on my computer. And you may want to check what the "compile" target generates in details by writing "ant -verbose compile" in the command line. I believe you'll get more help than this but I'll be happy if I could help a little :) Good luck, >From: "David Koontz \(MapQuest\)" >Reply-To: >To: >Subject: build.xml help - making a dist >Date: Tue, 5 Jun 2001 13:38:45 -0600 > >I'm a new user of ant - think I understand it ... somewhat, I got the >included >build.xml from somewhere and have made minor modifications for my project. > >Several questions have come up: > >1) When I build dist I get an error about "A zip file cannot include >itself" >what do I have misconfigured? > C:\Documents and Settings\dkoontz\My >Documents\MapQuest\VerticalMarkets\Locator> > > ant dist > Buildfile: build.xml > prepare: > compile: > dist: > [jar] Building jar: >C:\Java\tomcat\jakarta-tomcat-3.2.1\webapps\CopyCenter\CopyCenter.jar > BUILD FAILED > C:\Documents and Settings\dkoontz\My >Documents\MapQuest\VerticalMarkets\Locator\ > build.xml:159: A zip file cannot include itself > Total time: 1 second > >It appears to make the JAR & WAR files. > >2) The WAR/JAR files do not have compiled class files in them - is this >good >or bad? >- I think it's bad, because the compile step is compiling and putting the >class files in >the TOMCAT....webapp dir. Is this the "best practice"? > > >Here's the build.xml ---- > > > > > > > > > value="C:\Java\tomcat\jakarta-tomcat-3.2.1"/> > > > value="${tomcat.home}/webapps/${app.name}"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > classpath="${deploy.home}/WEB-INF/classes" > debug="on" optimize="off" deprecation="on"/> > > > > > > > > > > destdir="${javadoc.home}"/> > > > > > > > > > > > > basedir="."/> > basedir="${deploy.home}"/> > > > > > >---- end of build.xml ---- > > >Thanks for the help or pointers! > >David Koontz dkoontz@mapquest.com >Software Engineer - Enterprise Services >MapQuest www.mapquest.com >Denver, CO 303 244 0305 > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com