Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 40834 invoked from network); 9 May 2003 14:58:49 -0000 Received: from f19.law11.hotmail.com (HELO hotmail.com) (64.4.17.19) by daedalus.apache.org with SMTP; 9 May 2003 14:58:49 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 9 May 2003 07:58:52 -0700 Received: from 63.78.207.135 by lw11fd.law11.hotmail.msn.com with HTTP; Fri, 09 May 2003 14:58:51 GMT X-Originating-IP: [63.78.207.135] X-Originating-Email: [mmedwith@hotmail.com] From: "Mike Medwith" To: ant-user@apache.org Bcc: Subject: RE: JSPC task and package names Date: Fri, 09 May 2003 10:58:51 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 May 2003 14:58:52.0165 (UTC) FILETIME=[811E8B50:01C3163B] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Actually I am getting the package "org.apache.jsp" which matches what tomcat does to the jsp files. What I dont understand is tomcat compiles each java version to the same directory as the jsp file for example: test.jsp is under /general/jsp test_jsp.java is place in the work directory under: /general/jsp test_jsp.class is compiled by tomcat with the package "org.apache.jsp" but under: /general/jsp ant compiles the java file under: /org/apache/jsp and tomcat cannot find it and recompiles the jsp itself Any ideas? for your problem change the destdir in the jspc task to the base dir for the jsps.... the "." will just put them wherever you curretnly are..... my tasks are a little messy I had to break up the compilation I run AIX which doesn't like more than a few hundred files at once and I am up to 400 or something..... -Mike ------------------------------------------- hello mike. Funny you should say that,because I think I am having the opposite problem. First I think you need to define define the package="com.mypackage.jsp" in your task. But my problem is that I actually want the java files to be placed in the the same directory as the original jsp file for now. But it is placing them in the Base dir of the ant project. In addition it is not creating the subdirectory names based off of the package attribute I supplied to my task. I guess it is because of the fact that I defined srcdir=".". But what do I define it to have the files placed where I want them and the subdirectories based off of that package name? Here is what my task looks like: Can You show my what your jspc tasks looks like? -----Original Message----- From: Mike Medwith [mailto:mmedwith@hotmail.com] Sent: Thursday, May 08, 2003 3:05 PM To: user@ant.apache.org Subject: JSPC task and package names All my jsps end up with a package name of org.apache.jsp and when these files are compiled they are placed under those directories instead of the subdirectories where the original jsp and java file curretnly live... is there any way to keep the package name the same as the sub dirs that the jsps are found in? -Mike _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail