Skip to content

Commit

Permalink
Merge pull request #26 from qtc-de/develop
Browse files Browse the repository at this point in the history
Prepare v3.1.1 Release
  • Loading branch information
qtc-de authored Jan 19, 2023
2 parents 1c8a9c9 + 52e3a3a commit d4d91b6
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [3.1.1] - Jan 19, 2022

### Changed

* Small bugfix in JarHandler that occured when using a file system jar during deployment


## [3.1.0] - Jan 19, 2022

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
![](https://github.com/qtc-de/beanshooter/workflows/develop%20maven%20CI/badge.svg?branch=develop)
![](https://img.shields.io/badge/java-8%2b-blue)
[![](https://img.shields.io/badge/build%20system-maven-blue)](https://maven.apache.org/)
[![](https://img.shields.io/badge/version-3.1.0-blue)](https://github.com/qtc-de/beanshooter/releases)
[![](https://img.shields.io/badge/version-3.1.1-blue)](https://github.com/qtc-de/beanshooter/releases)
[![](https://img.shields.io/badge/license-GPL%20v3.0-blue)](https://github.com/qtc-de/beanshooter/blob/master/LICENSE)


Expand Down
2 changes: 1 addition & 1 deletion beanshooter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.qtc.beanshooter</groupId>
<artifactId>reactor</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</parent>

<artifactId>beanshooter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion beanshooter/src/de/qtc/beanshooter/mbean/MBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public enum MBean implements IMBean
"general purpose bean for executing commands and uploading or download files",
Utils.getObjectName("MLetTonkaBean:name=TonkaBean,id=1"),
"de.qtc.beanshooter.tonkabean.TonkaBean",
"tonka-bean-3.1.0-jar-with-dependencies.jar",
"tonka-bean-3.1.1-jar-with-dependencies.jar",
TonkaBeanOperation.values(),
TonkaBeanOption.values()
);
Expand Down
11 changes: 8 additions & 3 deletions beanshooter/src/de/qtc/beanshooter/networking/JarHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ public JarHandler(String filename, StagerServer parent) throws IOException
*/
private byte[] getJar(String filename) throws IOException
{
byte[] content = null;
InputStream stream = this.getClass().getResourceAsStream("/" + filename);
byte[] content = IOUtils.toByteArray(stream);

if (content.length != 0)
return content;
if (stream != null)
{
content = IOUtils.toByteArray(stream);

if (content.length != 0)
return content;
}

File file = new File(filename);

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>reactor</artifactId>
<name>reactor</name>
<packaging>pom</packaging>
<version>3.1.0</version>
<version>3.1.1</version>
<description>JMX enumeration and attacking tool</description>

<modules>
Expand Down
8 changes: 6 additions & 2 deletions tests/jmx-example-server/deploy/rmi/tricot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ tests:
values:
- Exporting MBean jar file
- Exporting MLet HTML file to
- file_exists:
files:
- tonka-bean-3.1.1-jar-with-dependencies.jar
- index.html


- title: Deploy Tonka Bean
Expand All @@ -185,7 +189,7 @@ tests:
- de.qtc.beanshooter.tonkabean.TonkaBean
- 'de.qtc.beanshooter:type=Test'
- --jar-file
- ./tonka-bean-3.0.0-jar-with-dependencies.jar
- ./tonka-bean-3.1.1-jar-with-dependencies.jar
- --stager-url
- http://${DOCKER-GW}:4444

Expand All @@ -208,7 +212,7 @@ tests:
- file_exists:
cleanup: True
files:
- tonka-bean-3.0.0-jar-with-dependencies.jar
- tonka-bean-3.1.1-jar-with-dependencies.jar
- index.html


Expand Down
2 changes: 1 addition & 1 deletion tonka-bean/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>de.qtc.beanshooter</groupId>
<artifactId>reactor</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</parent>

<artifactId>tonka-bean</artifactId>
Expand Down

0 comments on commit d4d91b6

Please sign in to comment.