You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2010/02/25 10:36:27 UTC
svn commit: r916200 -
/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/template/velocity/TorqueGfVelocity.java
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