You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2023/03/05 13:20:37 UTC
[maven-shared-io] branch util created (now 0a0b0cc)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch util
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git
at 0a0b0cc prefer Apache Commons IO to maven-shared-utils
This branch includes the following new commits:
new 0a0b0cc prefer Apache Commons IO to maven-shared-utils
The 1 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.
[maven-shared-io] 01/01: prefer Apache Commons IO to maven-shared-utils
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch util
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git
commit 0a0b0ccaad40eb10d65f77ac9eb479841886981b
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sun Mar 5 08:20:28 2023 -0500
prefer Apache Commons IO to maven-shared-utils
---
pom.xml | 3 +--
.../org/apache/maven/shared/io/location/URLLocation.java | 14 ++++++--------
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/pom.xml b/pom.xml
index bd21d92..37f06a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,13 +105,12 @@
<artifactId>sisu-inject-plexus</artifactId>
<version>1.4.2</version>
</dependency>
-
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
- <scope>test</scope>
</dependency>
+
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
diff --git a/src/main/java/org/apache/maven/shared/io/location/URLLocation.java b/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
index cca1f24..56b0495 100644
--- a/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
+++ b/src/main/java/org/apache/maven/shared/io/location/URLLocation.java
@@ -23,11 +23,10 @@ import java.io.File;
import java.io.IOException;
import java.net.URL;
-import org.apache.maven.shared.utils.io.FileUtils;
+import org.apache.commons.io.FileUtils;
/**
* The URL Location.
- *
*/
public class URLLocation
extends FileLocation
@@ -42,11 +41,11 @@ public class URLLocation
private final boolean tempFileDeleteOnExit;
/**
- * @param url The URL.
- * @param specification The spec.
- * @param tempFilePrefix the prefix.
- * @param tempFileSuffix The suffix.
- * @param tempFileDeleteOnExit delete on exit.
+ * @param url the URL
+ * @param specification the spec
+ * @param tempFilePrefix the prefix
+ * @param tempFileSuffix the suffix
+ * @param tempFileDeleteOnExit delete on exit
*/
public URLLocation( URL url, String specification, String tempFilePrefix, String tempFileSuffix,
boolean tempFileDeleteOnExit )
@@ -63,7 +62,6 @@ public class URLLocation
protected void initFile()
throws IOException
{
- // TODO: Log this in the debug log-level...
if ( unsafeGetFile() == null )
{
File tempFile = File.createTempFile( tempFilePrefix, tempFileSuffix );