db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r916200 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java
Date Thu, 25 Feb 2010 09:36:27 GMT
Author: tfischer
Date: Thu Feb 25 09:36:27 2010
New Revision: 916200

URL: http://svn.apache.org/viewvc?rev=916200&view=rev
Log:
expose the currently processed source file directly.

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java?rev=916200&r1=916199&r2=916200&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java
Thu Feb 25 09:36:27 2010
@@ -19,6 +19,7 @@
  * under the License.
  */
 
+import java.io.File;
 import java.util.Date;
 import java.util.List;
 
@@ -255,6 +256,16 @@
     }
 
     /**
+     * Returns the currently processed source file.
+     * 
+     * @return the source file which is currently processed.
+     */
+    public File getSourceFile()
+    {
+        return controllerState.getSourceFile();
+    }
+    
+    /**
      * Returns the current date.
      *
      * @return the current date, not null.



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message