diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-12-08 15:56:59 +0100 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-12-08 15:56:59 +0100 |
commit | ed40597a6de869bd1634ab6b27baf2c4478c89fa (patch) | |
tree | 4e61a189143f66111f983691e116fcbb9fe6acf6 /src/main/java/org | |
parent | 8984c192a541668463dd099693182415531918f8 (diff) | |
download | maven-nar-plugin-ed40597a6de869bd1634ab6b27baf2c4478c89fa.tar.gz maven-nar-plugin-ed40597a6de869bd1634ab6b27baf2c4478c89fa.tar.bz2 maven-nar-plugin-ed40597a6de869bd1634ab6b27baf2c4478c89fa.tar.xz maven-nar-plugin-ed40597a6de869bd1634ab6b27baf2c4478c89fa.zip |
Fixed NAR-117
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/Linker.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/Linker.java b/src/main/java/org/apache/maven/plugin/nar/Linker.java index 9b9edcb..dfdea08 100644 --- a/src/main/java/org/apache/maven/plugin/nar/Linker.java +++ b/src/main/java/org/apache/maven/plugin/nar/Linker.java @@ -233,6 +233,20 @@ public class Linker throw new MojoFailureException( "Cannot deduce version number from: " + out ); } } + else if ( name.equals( "icl" ) ) + { + NarUtil.runCommand( "icl", new String[] { "/QV" }, null, null, out, err, dbg ); + Pattern p = Pattern.compile( "\\d+\\.\\d+" ); + Matcher m = p.matcher( err.toString() ); + if ( m.find() ) + { + version = m.group( 0 ); + } + else + { + throw new MojoFailureException( "Cannot deduce version number from: " + out.toString() ); + } + } else { throw new MojoFailureException( "Cannot find version number for linker '" + name + "'" ); |