You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/12/13 22:44:53 UTC

[maven-invoker-plugin] branch MINVOKER-272 updated (1c99831 -> a46bf19)

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

hboutemy pushed a change to branch MINVOKER-272
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git.


 discard 1c99831  [MINVOKER-272] use Java 7 Files.createTempDirectory(...) API
     add 8ebd1c5  [MINVOKER-267] Update maven-script-interpreter to 1.3
     add 9f4d423  [MINVOKER-267] Update BeanShell to 2.0b6 (sync with script-interpreter)
     add 8865333  Updated junit to 4.13.1 in integration tests
     add dac4381  Bump plexus-i18n from 1.0-beta-7 to 1.0-beta-10
     add c18d8e5  Enable Dependabot v2
     new a46bf19  [MINVOKER-272] use Java 7 Files.createTempDirectory(...) API

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (1c99831)
            \
             N -- N -- N   refs/heads/MINVOKER-272 (a46bf19)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 .github/dependabot.yml                             | 46 +++++++++++++++++++
 .github/workflows/maven.yml                        | 17 ++++---
 pom.xml                                            | 12 ++---
 src/it/MINVOKER-191/module-a/pom.xml               |  2 +-
 src/it/MINVOKER-191/module-b/pom.xml               |  2 +-
 src/it/staging-dependencies/pom.xml                |  2 +-
 src/it/staging-dependencies/verify.bsh             |  4 +-
 .../maven/plugins/invoker/AbstractInvokerMojo.java | 52 ++++++++++------------
 .../apache/maven/plugins/invoker/FileLogger.java   | 17 ++++---
 ...okerToolchain.java => RunFailureException.java} | 40 ++++++++---------
 10 files changed, 118 insertions(+), 76 deletions(-)
 create mode 100644 .github/dependabot.yml
 copy src/main/java/org/apache/maven/plugins/invoker/{InvokerToolchain.java => RunFailureException.java} (68%)


[maven-invoker-plugin] 01/01: [MINVOKER-272] use Java 7 Files.createTempDirectory(...) API

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

hboutemy pushed a commit to branch MINVOKER-272
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit a46bf19905ec0560c3119537836b4391e43f44ee
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed Nov 11 12:24:31 2020 +0100

    [MINVOKER-272] use Java 7 Files.createTempDirectory(...) API
---
 .../java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
index cb4f853..8357948 100644
--- a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
+++ b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java
@@ -1144,9 +1144,7 @@ public abstract class AbstractInvokerMojo
                         // avoid infinite recursion if the cloneTo path is a subdirectory.
                         if ( cloneSubdir != null )
                         {
-                            File temp = File.createTempFile( "pre-invocation-clone.", "" );
-                            temp.delete();
-                            temp.mkdirs();
+                            File temp = Files.createTempDirectory( "pre-invocation-clone." ).toFile();
 
                             copyDirectoryStructure( projectsDirectory, temp );