Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 29511 invoked from network); 1 Aug 2002 20:32:15 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Aug 2002 20:32:15 -0000 Received: (qmail 27255 invoked by uid 97); 1 Aug 2002 20:32:08 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 27146 invoked by uid 97); 1 Aug 2002 20:32:07 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 27119 invoked by uid 98); 1 Aug 2002 20:32:06 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <004501c2399a$5908a200$117a48c7@tbird.com> From: "Rick Fincher" To: "Tomcat Users List" References: <017f01c238c1$ecdac8c0$117a48c7@tbird.com> <861y9iuzrn.fsf@earthlink.net> Subject: Re: JSPC Precompiling Issues and a handy utility Date: Thu, 1 Aug 2002 16:30:59 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi David, Thanks for the response. I'm using an IDE and all it does is spit out a war file with the JSP sources and WEB-INF. I guess it can't use class files because it has no knowlege of the container environment it will be deployed in. So it looks like what I need to do is write an ant script (or somethin similar) to take the webapp name as an argument and: 1. Call jspc.sh with the appropriate parameters to compile the servlets into the work directory. 2. Pull the common/lib jars and common/classes into the classpath. 3. Pull the WEB-INF/lib jars and WEB-INF/classes of the webapp into the class path 4. Call javac with that classpath and compile all the .java files in the work directory. A shell script won't work because the classpath is too long for 1024 character limit, unless I use a shell without that restriction. Rick ----- Original Message ----- snip > > The Tomcat JspC process only generates the servlet code. You have to compile > the code yourself. It's easy enough to set that up as part of your build > process. > > -- > =================================================================== > David M. Karr ; Java/J2EE/XML/Unix/C++ > dmkarr@earthlink.net -- To unsubscribe, e-mail: For additional commands, e-mail: