Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 44393 invoked by uid 500); 29 Jul 2001 04:21:37 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 44384 invoked by uid 500); 29 Jul 2001 04:21:36 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 29 Jul 2001 04:17:48 -0000 Message-ID: <20010729041748.38869.qmail@icarus.apache.org> From: vgritsenko@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/generator ProgramGeneratorImpl.java X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N vgritsenko 01/07/28 21:17:47 Modified: src/org/apache/cocoon/components/language/generator ProgramGeneratorImpl.java Log: Fix bug 2737 Revision Changes Path 1.14 +6 -2 xml-cocoon2/src/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java Index: ProgramGeneratorImpl.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- ProgramGeneratorImpl.java 2001/07/24 17:21:25 1.13 +++ ProgramGeneratorImpl.java 2001/07/29 04:17:47 1.14 @@ -49,7 +49,7 @@ /** * The default implementation of ProgramGenerator * @author Ricardo Rocha - * @version CVS $Revision: 1.13 $ $Date: 2001/07/24 17:21:25 $ + * @version CVS $Revision: 1.14 $ $Date: 2001/07/29 04:17:47 $ */ public class ProgramGeneratorImpl extends AbstractLoggable implements ProgramGenerator, Contextualizable, Composable, Configurable, ThreadSafe, Disposable { @@ -143,7 +143,11 @@ // Set filenames StringBuffer contextFilename = new StringBuffer(this.rootPackage.replace('.', File.separatorChar)); contextFilename.append(File.separator); - contextFilename.append(fileName); + /* + * VG: Filename here is relative to (sub)sitemap - cannot be used + * to generate classname. + */ + contextFilename.append(source.getSystemId()); String normalizedName = IOUtils.normalizedFilename(contextFilename.toString()); // Ensure no 2 requests for the same file overlap ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org