Skip to content

Commit 551fb32

Browse files
committed
Release v0.9.2
1 parent 0ed17e6 commit 551fb32

File tree

7 files changed

+41
-7
lines changed

7 files changed

+41
-7
lines changed

CHANGELOG.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
= Changelog
22

3+
== Version 0.9.2
4+
[cols="1,2,<10a", options="header"]
5+
|===
6+
|ID|Type|Description
7+
|https://github.com/Axway-API-Management-Plus/apigw-maven-plugin/issues/28[#28]
8+
|Bug
9+
|The "process hasn't exited" error on executing external commands is fixed.
10+
|===
11+
312
== Version 0.9.1
413
[cols="1,2,<10a", options="header"]
514
|===

doc/getting-started/getting-started.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:sectnums:
66
:source-highlighter: prettify
77

8-
:mvn-plugin-ver: 0.9.1
8+
:mvn-plugin-ver: 0.9.2
99

1010
Here you get a simple introduction on how to use the _Maven Plugin for Axway API Gateway_.
1111
It assumes that you are familiar with https://maven.apache.org[Apache Maven] and that you are familiar with PolicyStudio and the API Gateway.

doc/manual/user-guide.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ifdef::env-github[]
1818
:warning-caption: :warning:
1919
endif::[]
2020

21-
:mvn-plugin-ver: 0.9.1
21+
:mvn-plugin-ver: 0.9.2
2222

2323
== About the Plugin
2424

example/getting-started/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packaging>pom</packaging>
88

99
<properties>
10-
<axway.maven.plugin.ver>0.9.0</axway.maven.plugin.ver>
10+
<axway.maven.plugin.ver>0.9.2</axway.maven.plugin.ver>
1111
</properties>
1212

1313
<modules>

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<groupId>com.axway.maven.plugins</groupId>
2121
<artifactId>apigw-maven-plugin</artifactId>
22-
<version>0.9.1</version>
22+
<version>0.9.2</version>
2323
<packaging>maven-plugin</packaging>
2424

2525
<name>Axway API Gateway Maven Plugin</name>
@@ -147,4 +147,11 @@
147147
</plugin>
148148
</plugins>
149149
</build>
150+
<distributionManagement>
151+
<repository>
152+
<id>github</id>
153+
<name>Axway API Gateway Maven Plugin Packages</name>
154+
<url>https://maven.pkg.github.com/Axway-API-Management-Plus/apigw-maven-plugin</url>
155+
</repository>
156+
</distributionManagement>
150157
</project>

src/main/java/com/axway/maven/apigw/utils/AbstractCommandExecutor.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public AbstractCommandExecutor(String name, Log log) {
2121
}
2222

2323
protected abstract File getCommand() throws IOException;
24-
24+
2525
protected Log getLog() {
2626
return this.log;
2727
}
@@ -62,6 +62,15 @@ protected int execute(List<String> parameters) throws IOException {
6262
br.close();
6363
}
6464

65-
return process.exitValue();
65+
int rc;
66+
67+
try {
68+
rc = process.waitFor();
69+
} catch (InterruptedException e) {
70+
this.log.error("Comman executor interrupted");
71+
rc = 1;
72+
}
73+
74+
return rc;
6675
}
6776
}

src/main/java/com/axway/maven/apigw/utils/JythonExecutor.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ private int executeScript(String scriptName, String[] args) throws IOException {
7878
this.log.info("--- " + scriptName + " (End) ------------------------------");
7979
}
8080

81-
return process.exitValue();
81+
int rc;
82+
83+
try {
84+
rc = process.waitFor();
85+
} catch (InterruptedException e) {
86+
this.log.error("Jython executor interrupted");
87+
rc = 1;
88+
}
89+
90+
return rc;
8291
}
8392

8493
private File getJython(File homeAxwayGateway) throws JythonExecutorException {

0 commit comments

Comments
 (0)