User: vharcq
Date: 02/02/28 23:21:39
Modified: core/src/xdoclet/ant AntPropertyTask.java ReplaceCopy.java
Log:
Ant code cleanup : Use protected variable project instead of getProject()
Thanks to Erik Hatcher
Revision Changes Path
1.6 +2 -2 xdoclet/core/src/xdoclet/ant/AntPropertyTask.java
Index: AntPropertyTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ant/AntPropertyTask.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -r1.5 -r1.6
--- AntPropertyTask.java 22 Feb 2002 16:28:21 -0000 1.5
+++ AntPropertyTask.java 1 Mar 2002 07:21:39 -0000 1.6
@@ -21,7 +21,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Aslak Helles�y</a>
* @created 5. januar 2002
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
* @deprecated Use ReplaceCopy instead
*/
public class AntPropertyTask extends Task
@@ -71,7 +71,7 @@
// Create a template engine with a null TemplateContext. We're not
going to
// extract any info from classes, but from ant properties. Therefore,
// we don't need a TemplateContext.
- Hashtable properties = getProject().getProperties();
+ Hashtable properties = project.getProperties();
AntTagsHandler antTagsHandler = new AntTagsHandler( properties );
try
1.5 +2 -2 xdoclet/core/src/xdoclet/ant/ReplaceCopy.java
Index: ReplaceCopy.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ant/ReplaceCopy.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- ReplaceCopy.java 22 Feb 2002 16:28:21 -0000 1.4
+++ ReplaceCopy.java 1 Mar 2002 07:21:39 -0000 1.5
@@ -29,7 +29,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Aslak Helles�y</a>
* @created 5. januar 2002
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @todo Write docs!!!!!!!!!!!!!!!!!
*/
public class ReplaceCopy extends Copy
@@ -46,7 +46,7 @@
// Create a template engine with a null TemplateContext. We're not
going to
// extract any info from classes, but from ant properties. Therefore,
// we don't need a TemplateContext.
- Hashtable properties = getProject().getProperties();
+ Hashtable properties = project.getProperties();
AntPropertyTagsHandler antPropertyTagsHandler = new
AntPropertyTagsHandler( properties );
TemplateEngine engine = null;
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel