diff options
author | Sven Gothel <[email protected]> | 2012-04-25 11:19:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-25 11:19:44 +0200 |
commit | 14f5d5a1d1cbf9c8b829c11211030b8bd63fbfd6 (patch) | |
tree | 49dcc679955afd408adb683052581f2c2a6f15b0 /deployment/funcs_jars_pack_sign.sh | |
parent | b06b44ffb5652f9fca872b88c8c5b7b8a4dbd6fb (diff) |
Workaround pack200 bug, adding unlimited segment option
#
# see Java Bug 5078608
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5078608
#
PACK200_OPTIONS="--segment-limit=-1"
Diffstat (limited to 'deployment/funcs_jars_pack_sign.sh')
-rwxr-xr-x | deployment/funcs_jars_pack_sign.sh | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/deployment/funcs_jars_pack_sign.sh b/deployment/funcs_jars_pack_sign.sh index 941fd3a..ba72af5 100755 --- a/deployment/funcs_jars_pack_sign.sh +++ b/deployment/funcs_jars_pack_sign.sh @@ -6,6 +6,12 @@ # wsdir_jars_sign <wsdir> <pkcs12-keystore> <storepass> [signarg] # +# +# see Java Bug 5078608 +# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5078608 +# +PACK200_OPTIONS="--segment-limit=-1" + function wsdir_jars_repack() { local wsdir=$1 @@ -30,8 +36,8 @@ if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then cp -a *jar orig/ for i in *.jar ; do - echo pack200 --repack $i - pack200 --repack $i + echo pack200 --repack $PACK200_OPTIONS $i + pack200 --repack $PACK200_OPTIONS $i done fi @@ -42,8 +48,8 @@ if [ -e atomic ] ; then cp -a *jar orig/ for i in *.jar ; do - echo pack200 --repack $i - pack200 --repack $i + echo pack200 --repack $PACK200_OPTIONS $i + pack200 --repack $PACK200_OPTIONS $i done fi @@ -79,8 +85,8 @@ if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then for i in *.jar ; do echo gzip -9 $i to $i.gz gzip -9 -cv $i > $i.gz - echo pack200 -E9 $i.pack.gz $i - pack200 -E9 $i.pack.gz $i + echo pack200 -E9 $PACK200_OPTIONS $i.pack.gz $i + pack200 -E9 $PACK200_OPTIONS $i.pack.gz $i done mv DLLS/* . @@ -96,8 +102,8 @@ if [ -e atomic ] ; then for i in *.jar ; do echo gzip -9 $i to $i.gz gzip -9 -cv $i > $i.gz - echo pack200 -E9 $i.pack.gz $i - pack200 -E9 $i.pack.gz $i + echo pack200 -E9 $PACK200_OPTIONS $i.pack.gz $i + pack200 -E9 $PACK200_OPTIONS $i.pack.gz $i done mv DLLS/* . |