Compare commits

..

5 Commits

Author SHA1 Message Date
d9d6db6913 Merge pull request 'release/v1.2.0' (#31) from release/v1.2.0 into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #31
2024-06-01 19:29:10 +02:00
david
190ed8d227 Updating CHANGELOD.md
All checks were successful
continuous-integration/drone/pr Build is passing
2024-06-01 19:24:06 +02:00
ea6923df79 Merge pull request 'Adding parameter to add additional modules to optimized JDK' (#30) from feature/add_modules into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #30
2024-06-01 19:22:27 +02:00
david
6969e81737 Adding parameter to add additional modules to optimized JDK
All checks were successful
continuous-integration/drone/pr Build is passing
2024-06-01 19:02:02 +02:00
15c6543eaf Merge pull request 'master' (#29) from master into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #29
2024-05-31 21:04:47 +02:00
3 changed files with 20 additions and 1 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [v1.2.0] - 2024-06-01
### Added
- Additional modules that aren't fetched by jdeps can be added with `--add-modules module_1,...,module_n`
## [v1.1.0] - 2024-05-31 ## [v1.1.0] - 2024-05-31
### Changed ### Changed
- Improved macOS runnable execution in the tar.gz file. The executable file is now placed inside a folder named `application.app`, allowing it to be launched with a double-click. - Improved macOS runnable execution in the tar.gz file. The executable file is now placed inside a folder named `application.app`, allowing it to be launched with a double-click.
@ -24,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- See origin repository: https://github.com/guziks/warp4j - See origin repository: https://github.com/guziks/warp4j
[unreleased]: https://git.phoenix.ipv64.de/public/warp4j/compare/master...HEAD [unreleased]: https://git.phoenix.ipv64.de/public/warp4j/compare/master...HEAD
[v1.2.0]: https://git.phoenix.ipv64.de/public/warp4j/compare/v1.1.0...v1.2.0
[v1.1.0]: https://git.phoenix.ipv64.de/public/warp4j/compare/v1.0.0...v1.1.0 [v1.1.0]: https://git.phoenix.ipv64.de/public/warp4j/compare/v1.0.0...v1.1.0
[v1.0.0]: https://git.phoenix.ipv64.de/public/warp4j/compare/stable...v1.0.0 [v1.0.0]: https://git.phoenix.ipv64.de/public/warp4j/compare/stable...v1.0.0
[origin warp4j]: https://github.com/guziks/warp4j [origin warp4j]: https://github.com/guziks/warp4j

View File

@ -85,6 +85,9 @@ Options:
"--java-version", "--no-optimize", "--jvm-impl"; "--java-version", "--no-optimize", "--jvm-impl";
The output may be used to specify concrete The output may be used to specify concrete
"--java-version" "--java-version"
--add-modules A list of additional java modules that should
be added to the optimized JDK. Separate each
module with commas and no spaces
--no-optimize Use JRE instead of optimized JDK; --no-optimize Use JRE instead of optimized JDK;
By default jdeps and jlink are used to create By default jdeps and jlink are used to create
optimized JDK for the particular jar; optimized JDK for the particular jar;

11
warp4j
View File

@ -31,6 +31,9 @@ function print_help {
echo ' "--java-version", "--no-optimize", "--jvm-impl";' echo ' "--java-version", "--no-optimize", "--jvm-impl";'
echo ' The output may be used to specify concrete' echo ' The output may be used to specify concrete'
echo ' "--java-version"' echo ' "--java-version"'
echo ' --add-modules A list of additional java modules that should'
echo ' be added to the optimized JDK. Separate each'
echo ' module with commas and no spaces'
echo ' --no-optimize Use JRE instead of optimized JDK;' echo ' --no-optimize Use JRE instead of optimized JDK;'
echo ' By default jdeps and jlink are used to create' echo ' By default jdeps and jlink are used to create'
echo ' optimized JDK for the particular jar;' echo ' optimized JDK for the particular jar;'
@ -159,6 +162,10 @@ while [[ $# -gt 0 ]]; do
LIST_RELEASES=true LIST_RELEASES=true
shift shift
;; ;;
--add-modules)
ADD_MODULES="$2"
shift 2
;;
--no-optimize) --no-optimize)
NO_OPTIMIZE=true NO_OPTIMIZE=true
shift shift
@ -695,6 +702,10 @@ if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then
echo "Fetch modules with default behavior" echo "Fetch modules with default behavior"
MODULES=$("$JDEPS" --print-module-deps --ignore-missing-deps --multi-release $JAVA_VERSION_BASE "$JAR" | grep -v Warning) MODULES=$("$JDEPS" --print-module-deps --ignore-missing-deps --multi-release $JAVA_VERSION_BASE "$JAR" | grep -v Warning)
fi fi
if [ -n "$ADD_MODULES" ]; then
echo "Adding additional modules to optimized JDK: $ADD_MODULES"
MODULES=$ADD_MODULES,$MODULES
fi
fi fi
# creates minimized runtime for the platform # creates minimized runtime for the platform