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/11/14 21:52:03 UTC

svn commit: r595050 - /velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java

Author: henning
Date: Wed Nov 14 12:52:00 2007
New Revision: 595050

URL: http://svn.apache.org/viewvc?rev=595050&view=rev
Log:
A Texen File Resolver resolves given file names (e.g. from property includes) in the context of e.g. an Ant task.

Added:
    velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java   (with props)

Added: velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java
URL: http://svn.apache.org/viewvc/velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java?rev=595050&view=auto
==============================================================================
--- velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java (added)
+++ velocity/texen/trunk/src/java/org/apache/texen/TexenFileResolver.java Wed Nov 14 12:52:00 2007
@@ -0,0 +1,41 @@
+package org.apache.texen;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+
+/**
+ * A File resolver is needed to resolve a given, potentially relative File name to
+ * a File. File resolution depends on the context, e.g. an Ant task wants to use ant for
+ * filename resolving.
+ *
+ * @author Henning P. Schmiedehausen
+ *
+ */
+public interface TexenFileResolver
+{
+    /**
+     * Resolve the given file name into a file reference.
+     *
+     * @param fileName The file name to resolve.
+     * @return A File object representing the requested file.
+     */
+    File resolveFile(final String fileName);
+}

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

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