You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tdk-dev@turbine.apache.org by jv...@apache.org on 2002/01/16 06:10:29 UTC
cvs commit: jakarta-turbine-tdk/src/tdk/task/org/apache/tdk Get.java
jvanzyl 02/01/15 21:10:29
Modified: src/tdk/task/org/apache/tdk Get.java
Log:
- changing how the touch is handled as letting ant create the task
from outside its package constraints causes class cast exceptions.
the timestamp now works correctly so that only changed jars are
downloaded.
Revision Changes Path
1.2 +2 -1 jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/Get.java
Index: Get.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/Get.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Get.java 16 Jan 2002 04:59:32 -0000 1.1
+++ Get.java 16 Jan 2002 05:10:29 -0000 1.2
@@ -331,7 +331,8 @@
if (project.getJavaVersion() != Project.JAVA_1_1)
{
- Touch touch = (Touch) project.createTask("touch");
+ Touch touch = new Touch();
+ touch.setProject(project);
touch.setOwningTarget(target);
touch.setTaskName(getTaskName());
touch.setLocation(getLocation());
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>