Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 00:21:36 -0500
From:      Mikhail Teterin <mi+kde@aldan.algebra.com>
To:        java@freebsd.org
Subject:   jdk15..._14 update
Message-ID:  <200711210021.36414@aldan>

next in thread | raw e-mail | index | archive | help
--Boundary-00=_gB8QHJoDDRw5kt5
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello!

The attached patches both update the JDK to the recently released patch-level 
14.

They also both modify the extraction algorithm to make it more reliable -- it 
currently hard-codes the line-number, where the data begins -- the number 
needs to change every time the JDK changes.

The first method simply looks for the line "^exit 0", which is a more reliable 
indicator of the end of the shell-script, than a hard-coded line number.

I like the second method even better, though, because it avoids running a 
Linux program at extract time (using a native unzip instead) and is, likely, 
even more reliable, than relying on "^exit 0" being in the right place.

Whichever method you chose, future updates to the port should consist of 
simply bumping the JDK patch-level...

Yours,

	-mi


--Boundary-00=_gB8QHJoDDRw5kt5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711210021.36414>