jvanzyl 02/02/09 07:08:51
Modified: src/tdk/task/org/apache/tdk Get.java
Log:
- allow comments and blank lines to be present in the payload descriptor.
Revision Changes Path
1.4 +8 -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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Get.java 8 Feb 2002 22:19:52 -0000 1.3
+++ Get.java 9 Feb 2002 15:08:50 -0000 1.4
@@ -104,6 +104,14 @@
while ((line=in.readLine()) != null)
{
line = line.trim();
+
+ // Allow comments to be placed in the payload
+ // descriptor.
+ if (line.startsWith("#") || line.startsWith("--") || line.length()
< 1)
+ {
+ continue;
+ }
+
l.add(line);
}
}
@@ -351,7 +359,6 @@
touch.setMillis(timemillis);
touch.touch();
return true;
-
}
else
{
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>