feature/updating_warp-packer_and_adding_optional_prefix_parameter #16
13
warp4j
13
warp4j
@ -15,6 +15,9 @@ function print_help {
|
|||||||
echo ' adds additional classpaths to the jdeps call'
|
echo ' adds additional classpaths to the jdeps call'
|
||||||
echo ' --auto-class-path extract and get class-path values from jar file'
|
echo ' --auto-class-path extract and get class-path values from jar file'
|
||||||
echo ' ignored when -cp, --class-path is set'
|
echo ' ignored when -cp, --class-path is set'
|
||||||
|
echo ' --spring-boot extract and get class-path values from'
|
||||||
|
echo ' Spring-Boot application jar file'
|
||||||
|
echo ' ignored when -cp, --class-path is set'
|
||||||
echo ' -o, --output <directory>'
|
echo ' -o, --output <directory>'
|
||||||
echo ' override output directory;'
|
echo ' override output directory;'
|
||||||
echo ' this is relative to current PWD'
|
echo ' this is relative to current PWD'
|
||||||
@ -136,6 +139,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
AUTO_CLASS_PATH=true
|
AUTO_CLASS_PATH=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--spring-boot)
|
||||||
|
SPRING_BOOT_APPLICATION=true
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-j|--java-version)
|
-j|--java-version)
|
||||||
JAVA_VERSION="$2"
|
JAVA_VERSION="$2"
|
||||||
JAVA_VERSION_OVERRIDEN=true
|
JAVA_VERSION_OVERRIDEN=true
|
||||||
@ -679,6 +686,12 @@ if [[ $JAVA_DISTRO_TYPE == $DISTRO_TYPE_JDK ]]; then
|
|||||||
unzip -q "${JAR}" -d "${EXTRACTED_JAR_PATH}"
|
unzip -q "${JAR}" -d "${EXTRACTED_JAR_PATH}"
|
||||||
echo "Fetching modules"
|
echo "Fetching modules"
|
||||||
MODULES=$($JDEPS --ignore-missing-deps --print-module-deps --recursive --multi-release $JAVA_VERSION_BASE -quiet --class-path=${EXTRACTED_JAR_PATH}/* --module-path=${EXTRACTED_JAR_PATH}/* $JAR | grep -v Warning)
|
MODULES=$($JDEPS --ignore-missing-deps --print-module-deps --recursive --multi-release $JAVA_VERSION_BASE -quiet --class-path=${EXTRACTED_JAR_PATH}/* --module-path=${EXTRACTED_JAR_PATH}/* $JAR | grep -v Warning)
|
||||||
|
elif [ "$SPRING_BOOT_APPLICATION" ]
|
||||||
|
then
|
||||||
|
echo "Extracting Spring Boot jar file to get classpath"
|
||||||
|
unzip -q "${JAR}" -d "${EXTRACTED_JAR_PATH}"
|
||||||
|
echo "Fetching modules"
|
||||||
|
MODULES=$($JDEPS --ignore-missing-deps --print-module-deps --recursive --multi-release $JAVA_VERSION_BASE -quiet --class-path=${EXTRACTED_JAR_PATH}/BOOT-INF/lib/* --module-path=${EXTRACTED_JAR_PATH}/BOOT-INF/lib/BOOT-INF/lib/* $JAR | grep -v Warning)
|
||||||
else
|
else
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user