ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [4/4] ant git commit: record change, add @since tags, closes #36
Date Thu, 28 Sep 2017 10:45:44 GMT
record change, add @since tags, closes #36


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/01613e0d
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/01613e0d
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/01613e0d

Branch: refs/heads/1.9.x
Commit: 01613e0d8275665b850145fa02ae86a5a90a965d
Parents: 2c5430b
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Thu Sep 28 12:31:04 2017 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Thu Sep 28 12:45:25 2017 +0200

----------------------------------------------------------------------
 WHATSNEW                                          | 4 ++++
 src/main/org/apache/tools/ant/taskdefs/Zip.java   | 4 +++-
 src/main/org/apache/tools/ant/util/DateUtils.java | 3 +++
 3 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/01613e0d/WHATSNEW
----------------------------------------------------------------------
diff --git a/WHATSNEW b/WHATSNEW
index f8701a9..eeae3e8 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -35,6 +35,10 @@ Other changes:
    it uploads, if the preserveLastModified attribute is set to
    true for that task 
 
+ * zip and the related tasks can now set the modfication time of all
+   entries to a fixed timestamp.
+   Github Pull Request #36
+
 Changes from Ant 1.9.8 TO Ant 1.9.9
 ===================================
 

http://git-wip-us.apache.org/repos/asf/ant/blob/01613e0d/src/main/org/apache/tools/ant/taskdefs/Zip.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/Zip.java b/src/main/org/apache/tools/ant/taskdefs/Zip.java
index 00ba912..d1e1065 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Zip.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Zip.java
@@ -125,7 +125,7 @@ public class Zip extends MatchingTask {
             };
 
     private String fixedModTime = null; // User-provided.
-    protected long modTimeMillis = 0; // Calculated.
+    private long modTimeMillis = 0; // Calculated.
 
     /**
      * If this flag is true, execute() will run most operations twice,
@@ -597,6 +597,7 @@ public class Zip extends MatchingTask {
      *        that you must choose one of a or b, and [c] indicates that you
      *        may use or omit c. ±ZZZZ is the timezone offset, and may be
      *        literally "Z" to mean GMT.
+     * @since Ant 1.9.10
      */
     public void setModificationtime(String time) {
         fixedModTime = time;
@@ -605,6 +606,7 @@ public class Zip extends MatchingTask {
     /**
      * The file modification time previously provided to
      * {@link #setModificationtime(String)} or {@code null} if unset.
+     * @since Ant 1.9.10
      */
     public String getModificationtime() {
         return fixedModTime;

http://git-wip-us.apache.org/repos/asf/ant/blob/01613e0d/src/main/org/apache/tools/ant/util/DateUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java b/src/main/org/apache/tools/ant/util/DateUtils.java
index 992c3fc..016ce9d 100644
--- a/src/main/org/apache/tools/ant/util/DateUtils.java
+++ b/src/main/org/apache/tools/ant/util/DateUtils.java
@@ -95,6 +95,7 @@ public final class DateUtils {
      * Provides a thread-local US-style date format. Exactly as used by
      * {@code <touch>}, to minute precision:
      * {@code SimpleDateFormat("MM/dd/yyyy hh:mm a", Locale.US)}
+     * @since Ant 1.9.10
      */
     public static final ThreadLocal<DateFormat> EN_US_DATE_FORMAT_MIN =
         new ThreadLocal<DateFormat>() {
@@ -108,6 +109,7 @@ public final class DateUtils {
      * Provides a thread-local US-style date format. Exactly as used by
      * {@code <touch>}, to second precision:
      * {@code SimpleDateFormat("MM/dd/yyyy hh:mm:ss a", Locale.US)}
+     * @since Ant 1.9.10
      */
     public static final ThreadLocal<DateFormat> EN_US_DATE_FORMAT_SEC =
         new ThreadLocal<DateFormat>() {
@@ -349,6 +351,7 @@ public final class DateUtils {
      * where {a|b} indicates that you must choose one of a or b, and [c]
      * indicates that you may use or omit c. ±ZZZZ is the timezone offset, and
      * may be literally "Z" to mean GMT.
+     * @since Ant 1.9.10
      */
     public static Date parseLenientDateTime(String dateStr) throws ParseException {
         try {


Mime
View raw message