Cleaning and some optimizations
This commit is contained in:
@@ -369,15 +369,28 @@ if [ -d "$SCRIPT_DIR/lib3270j/src/main/resources" ]; then
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# 5. Package Standalone Executable JAR
|
||||
# 5. Package Standalone JARs
|
||||
# ------------------------------------------------------------------------------
|
||||
log_info "Packaging standalone lib3270j library JAR..."
|
||||
|
||||
cat << 'EOF' > "$BUILD_DIR/LIB_MANIFEST.MF"
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Title: lib3270j
|
||||
Implementation-Version: 1.2.4
|
||||
Created-By: j3270 setup.sh
|
||||
|
||||
EOF
|
||||
|
||||
"$JAR_BIN" cvfm "$BUILD_DIR/lib3270j.jar" "$BUILD_DIR/LIB_MANIFEST.MF" \
|
||||
-C "$BUILD_DIR/lib3270j" . > /dev/null
|
||||
|
||||
log_info "Packaging standalone executable JAR..."
|
||||
|
||||
cat << 'EOF' > "$BUILD_DIR/MANIFEST.MF"
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: haus.nightmare.j3270.J3270App
|
||||
Implementation-Title: j3270
|
||||
Implementation-Version: 0.1.0
|
||||
Implementation-Version: 1.2.4
|
||||
Created-By: j3270 setup.sh
|
||||
|
||||
EOF
|
||||
@@ -391,8 +404,10 @@ if [ ! -f "$BUILD_DIR/j3270.jar" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
JAR_SIZE=$(ls -lh "$BUILD_DIR/j3270.jar" | awk '{print $5}')
|
||||
LIB_JAR_SIZE=$(du -h "$BUILD_DIR/lib3270j.jar" | awk '{print $1}')
|
||||
JAR_SIZE=$(du -h "$BUILD_DIR/j3270.jar" | awk '{print $1}')
|
||||
printf "\n%b=== Build Successful ===%b\n" "$BOLD" "$RESET"
|
||||
log_success "Library JAR: $BUILD_DIR/lib3270j.jar ($LIB_JAR_SIZE)"
|
||||
log_success "Executable JAR: $BUILD_DIR/j3270.jar ($JAR_SIZE)"
|
||||
|
||||
printf "\n%bTo run j3270:%b\n" "$BOLD" "$RESET"
|
||||
|
||||
Reference in New Issue
Block a user