You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by he...@apache.org on 2007/05/03 16:07:01 UTC

svn commit: r534871 - in /velocity/anakia/trunk/src/java/org/apache/anakia: AnakiaException.java AnakiaLog.java

Author: henning
Date: Thu May  3 07:07:00 2007
New Revision: 534871

URL: http://svn.apache.org/viewvc?view=rev&rev=534871
Log:
Add helper classes to allow clean separation of the Anakia engine from the Ant task.


Added:
    velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java   (with props)
    velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java   (with props)

Added: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java
URL: http://svn.apache.org/viewvc/velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java?view=auto&rev=534871
==============================================================================
--- velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java (added)
+++ velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java Thu May  3 07:07:00 2007
@@ -0,0 +1,52 @@
+package org.apache.anakia;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+/**
+ * Exception thrown by the Anakia transformator.
+ *
+ * @author <a href="mailto:dev@velocity.apache.org">The Velocity developers community</a>
+ * @version $Id$
+ */
+public class AnakiaException
+        extends RuntimeException
+{
+     private static final long serialVersionUID = 1L;
+
+    public AnakiaException()
+    {
+        super();
+    }
+
+    public AnakiaException(final String msg)
+    {
+        super(msg);
+    }
+
+    public AnakiaException(final Throwable t)
+    {
+        super(t);
+    }
+
+    public AnakiaException(final String msg, final Throwable t)
+    {
+        super(msg, t);
+    }
+}

Propchange: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaException.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java
URL: http://svn.apache.org/viewvc/velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java?view=auto&rev=534871
==============================================================================
--- velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java (added)
+++ velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java Thu May  3 07:07:00 2007
@@ -0,0 +1,35 @@
+package org.apache.anakia;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+/**
+ * Logging Facade to use logging in various contexts.
+ *
+ * @author <a href="mailto:dev@velocity.apache.org">The Velocity developers community</a>
+ * @version $Id$
+ */
+public interface AnakiaLog
+{
+    void info(final String message);
+
+    void error(final String message);
+
+    void log(final String message, final int level);
+}

Propchange: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: velocity/anakia/trunk/src/java/org/apache/anakia/AnakiaLog.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision