Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 90845 invoked from network); 20 Aug 2004 05:44:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Aug 2004 05:44:52 -0000 Received: (qmail 91370 invoked by uid 500); 20 Aug 2004 05:44:52 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 91293 invoked by uid 500); 20 Aug 2004 05:44:51 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Forrest Developers List" Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 91279 invoked by uid 99); 20 Aug 2004 05:44:51 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 19 Aug 2004 22:44:46 -0700 Received: (qmail 90800 invoked by uid 65534); 20 Aug 2004 05:44:46 -0000 Date: 20 Aug 2004 05:44:46 -0000 Message-ID: <20040820054446.90797.qmail@minotaur.apache.org> From: crossley@apache.org To: svn@forrest.apache.org Subject: svn commit: rev 36652 - forrest/trunk/src/java/org/apache/forrest/log X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: crossley Date: Thu Aug 19 22:44:45 2004 New Revision: 36652 Modified: forrest/trunk/src/java/org/apache/forrest/log/ForrestLogTargetFactory.java (contents, props changed) Log: dos2unix to fix line-endings. Do 'svn propset svn:eol-style native' for all text files. Modified: forrest/trunk/src/java/org/apache/forrest/log/ForrestLogTargetFactory.java ============================================================================== --- forrest/trunk/src/java/org/apache/forrest/log/ForrestLogTargetFactory.java (original) +++ forrest/trunk/src/java/org/apache/forrest/log/ForrestLogTargetFactory.java Thu Aug 19 22:44:45 2004 @@ -1,51 +1,51 @@ -/* - * Copyright 1999-2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.forrest.log; - -import org.apache.avalon.framework.context.Context; -import org.apache.avalon.framework.context.ContextException; -import org.apache.avalon.framework.context.DefaultContext; -import org.apache.cocoon.util.log.CocoonTargetFactory; -import org.apache.forrest.conf.ForrestConfUtils; -/** - * CocoonTargetFactory that uses the project build dir for normal Forrest processing. - * - *

The syntax of "format" is the same as in CocoonTargetFactory.

- */ -public class ForrestLogTargetFactory - extends CocoonTargetFactory { - - /** - * Get the Context object - */ - public void contextualize( Context context ) - throws ContextException - { - Context currentContext = context; - - try { - String projectHome = ForrestConfUtils.getProjectHome(); - if(!projectHome.equals(ForrestConfUtils.defaultHome)){ - DefaultContext newContext = new DefaultContext(context); - newContext.put("context-root",projectHome + "/build"); - currentContext = newContext; - } - } catch (Exception e) { - throw new ContextException("Error getting forrest.home java property.",e); - } - super.contextualize( currentContext ); - } +/* + * Copyright 1999-2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.forrest.log; + +import org.apache.avalon.framework.context.Context; +import org.apache.avalon.framework.context.ContextException; +import org.apache.avalon.framework.context.DefaultContext; +import org.apache.cocoon.util.log.CocoonTargetFactory; +import org.apache.forrest.conf.ForrestConfUtils; +/** + * CocoonTargetFactory that uses the project build dir for normal Forrest processing. + * + *

The syntax of "format" is the same as in CocoonTargetFactory.

+ */ +public class ForrestLogTargetFactory + extends CocoonTargetFactory { + + /** + * Get the Context object + */ + public void contextualize( Context context ) + throws ContextException + { + Context currentContext = context; + + try { + String projectHome = ForrestConfUtils.getProjectHome(); + if(!projectHome.equals(ForrestConfUtils.defaultHome)){ + DefaultContext newContext = new DefaultContext(context); + newContext.put("context-root",projectHome + "/build"); + currentContext = newContext; + } + } catch (Exception e) { + throw new ContextException("Error getting forrest.home java property.",e); + } + super.contextualize( currentContext ); + } }