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 2017/12/09 15:27:21 UTC
[maven-jdeps-plugin] 09/34: pick up last match of toolchains: jdeps
of JDK9 has more options compared to JDK8
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jdeps-plugin.git
commit d7c2651b2a51977e7daecdaeecd7c7541e2cd2df
Author: Robert Scholte <rf...@apache.org>
AuthorDate: Sat Feb 7 20:39:32 2015 +0000
pick up last match of toolchains: jdeps of JDK9 has more options compared to JDK8
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1658107 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java b/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java
index 5892600..fdb8c2e 100644
--- a/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java
+++ b/src/main/java/org/apache/maven/plugin/jdeps/AbstractJDepsMojo.java
@@ -447,7 +447,8 @@ public abstract class AbstractJDepsMojo
if ( tcs != null && tcs.size() > 0 )
{
- tc = tcs.get( 0 );
+ // pick up latest, jdeps of JDK9 has more options compared to JDK8
+ tc = tcs.get( tcs.size() - 1 );
}
}
catch ( NoSuchMethodException e )
--
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.