You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2004/08/20 07:44:46 UTC
svn commit: rev 36652 - forrest/trunk/src/java/org/apache/forrest/log
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.
- *
- * <p>The syntax of "format" is the same as in <code>CocoonTargetFactory</code>.</p>
- */
-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.
+ *
+ * <p>The syntax of "format" is the same as in <code>CocoonTargetFactory</code>.</p>
+ */
+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 );
+ }
}