You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by mb...@apache.org on 2022/02/13 20:38:12 UTC

[ant] branch master updated (382c07c -> ce494e8)

This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git.


    from 382c07c  cleanup
     new 10316f9  Address some Javadoc issues
     new 945fd25  move netrexx to end because it's prone to hang/fail
     new ce494e8  use coreLoader, if set, to create subordinate classLoaders

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 fetch.xml                                          |  2 +-
 src/main/org/apache/tools/ant/Project.java         |  8 ++++----
 src/main/org/apache/tools/zip/ZipEntry.java        | 22 +++++++++++++---------
 src/main/org/apache/tools/zip/ZipOutputStream.java |  6 ++++--
 4 files changed, 22 insertions(+), 16 deletions(-)

[ant] 02/03: move netrexx to end because it's prone to hang/fail

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git

commit 945fd2520f4cd59b07996fef6bb8e46c2a8f2bc2
Author: Matt Benson <mb...@apache.org>
AuthorDate: Sun Feb 13 12:01:50 2022 -0600

    move netrexx to end because it's prone to hang/fail
---
 fetch.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fetch.xml b/fetch.xml
index 7376ca8..2c09cd6 100644
--- a/fetch.xml
+++ b/fetch.xml
@@ -409,5 +409,5 @@ Set -Ddest=LOCATION on the command line
   <target name="all"
     description="load all the libraries (except jython)"
     depends="antunit,ivy,logging,junit,junitlauncher,xml,networking,regexp,antlr,bcel,jdepend,bsf,debugging,script,
-      javamail,jakartamail,jspc,jai,xz,netrexx,junit-engine-vintage,junit-engine-jupiter"/>
+      javamail,jakartamail,jspc,jai,xz,junit-engine-vintage,junit-engine-jupiter,netrexx"/>
 </project>

[ant] 01/03: Address some Javadoc issues

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git

commit 10316f910f43e6ea2a5a7c2f11320ce0efd798a5
Author: Matt Benson <mb...@apache.org>
AuthorDate: Sun Feb 13 11:49:19 2022 -0600

    Address some Javadoc issues
---
 src/main/org/apache/tools/zip/ZipEntry.java        | 22 +++++++++++++---------
 src/main/org/apache/tools/zip/ZipOutputStream.java |  6 ++++--
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java
index e90d5ff..a1afbda 100644
--- a/src/main/org/apache/tools/zip/ZipEntry.java
+++ b/src/main/org/apache/tools/zip/ZipEntry.java
@@ -169,7 +169,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
     }
 
     /**
-     * Overwrite clone.
+     * Override clone.
      *
      * @return a cloned copy of this ZipEntry
      * @since 1.1
@@ -486,7 +486,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
      * Looks up an extra field by its header id.
      *
      * @param type ZipShort
-     * @return null if no such field exists.
+     * @return {@code null} if no such field exists.
      */
     public ZipExtraField getExtraField(final ZipShort type) {
         if (extraFields != null) {
@@ -502,7 +502,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
     /**
      * Looks up extra field data that couldn't be parsed correctly.
      *
-     * @return null if no such field exists.
+     * @return {@code null} if no such field exists.
      */
     public UnparseableExtraFieldData getUnparseableExtraFieldData() {
         return unparseableExtra;
@@ -546,7 +546,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
     /**
      * Sets the central directory part of extra fields.
      *
-     * @param b boolean
+     * @param b {@code boolean}
      */
     public void setCentralDirectoryExtra(final byte[] b) {
         try {
@@ -587,7 +587,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
      *
      * @param size the size to use
      * @deprecated since 1.7.
-     *             Use setCompressedSize directly.
+     *             Use {@link #setCompressedSize(long)} directly.
      * @since 1.2
      */
     @Deprecated
@@ -609,7 +609,7 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
     /**
      * Is this entry a directory?
      *
-     * @return true if the entry is a directory
+     * @return {@code true} if the entry is a directory
      * @since 1.10
      */
     @Override
@@ -759,13 +759,17 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable {
         }
     }
 
-    /** {@inheritDoc} */
+    /**
+     * Get last modified time as {@link Date}.
+     *
+     * @return {@link Date}
+     */
     public Date getLastModifiedDate() {
         return new Date(getTime());
     }
 
-    /* (non-Javadoc)
-     * @see java.lang.Object#equals(java.lang.Object)
+    /**
+     * {@inheritDoc}
      */
     @Override
     public boolean equals(final Object obj) {
diff --git a/src/main/org/apache/tools/zip/ZipOutputStream.java b/src/main/org/apache/tools/zip/ZipOutputStream.java
index a2d44ed..9e216d8 100644
--- a/src/main/org/apache/tools/zip/ZipOutputStream.java
+++ b/src/main/org/apache/tools/zip/ZipOutputStream.java
@@ -495,7 +495,8 @@ public class ZipOutputStream extends FilterOutputStream {
     }
 
     /**
-     * {@inheritDoc}
+     * Finish writing the archive.
+     *
      * @throws Zip64RequiredException if the archive's size exceeds 4
      * GByte or there are more than 65535 entries inside the archive
      * and {@link #setUseZip64} is {@link Zip64Mode#Never}.
@@ -728,7 +729,8 @@ public class ZipOutputStream extends FilterOutputStream {
     }
 
     /**
-     * {@inheritDoc}
+     * Put the specified entry into the archive.
+     *
      * @throws Zip64RequiredException if the entry's uncompressed or
      * compressed size is known to exceed 4 GByte and {@link #setUseZip64}
      * is {@link Zip64Mode#Never}.

[ant] 03/03: use coreLoader, if set, to create subordinate classLoaders

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mbenson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git

commit ce494e8365658f76b2648f5d0ccfd6753c880249
Author: Matt Benson <mb...@apache.org>
AuthorDate: Sun Feb 13 14:37:53 2022 -0600

    use coreLoader, if set, to create subordinate classLoaders
---
 src/main/org/apache/tools/ant/Project.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java
index 5b20ca0..2cd2ba9 100644
--- a/src/main/org/apache/tools/ant/Project.java
+++ b/src/main/org/apache/tools/ant/Project.java
@@ -29,6 +29,7 @@ import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Hashtable;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Properties;
 import java.util.Set;
 import java.util.Stack;
@@ -339,8 +340,8 @@ public class Project implements ResourceFactory {
      * @return an appropriate classloader.
      */
     public AntClassLoader createClassLoader(final Path path) {
-        return AntClassLoader
-            .newAntClassLoader(getClass().getClassLoader(), this, path, true);
+        return createClassLoader(
+            Optional.ofNullable(getCoreLoader()).orElse(getClass().getClassLoader()), path);
     }
 
     /**
@@ -352,8 +353,7 @@ public class Project implements ResourceFactory {
      *
      * @return an appropriate classloader.
      */
-    public AntClassLoader createClassLoader(
-        final ClassLoader parent, final Path path) {
+    public AntClassLoader createClassLoader(final ClassLoader parent, final Path path) {
         return AntClassLoader.newAntClassLoader(parent, this, path, true);
     }