From david.bosschaert at gmail.com Thu Feb 23 12:22:12 2012 From: david.bosschaert at gmail.com (david.bosschaert at gmail.com) Date: Thu, 23 Feb 2012 20:22:12 +0000 Subject: hg: penrose/jigsaw/jdk: Fix spaces/tabs in Sanity.gmk to make build work with gmake 3.82 Message-ID: <20120223202239.A1ACF47670@hg.openjdk.java.net> Changeset: 0fdce48c6802 Author: David Bosschaert Date: 2012-02-23 20:13 +0000 URL: http://hg.openjdk.java.net/penrose/jigsaw/jdk/rev/0fdce48c6802 Fix spaces/tabs in Sanity.gmk to make build work with gmake 3.82 ! make/common/shared/Sanity.gmk From david.bosschaert at gmail.com Fri Feb 24 05:13:53 2012 From: david.bosschaert at gmail.com (David Bosschaert) Date: Fri, 24 Feb 2012 13:13:53 +0000 Subject: Building Penrose Message-ID: For those who, like me, had to learn how to build OpenJDK 8 / Penrose, I've recorded the steps needed to get it built on Fedora 16 here: http://coderthoughts.blogspot.com/2012/02/building-project-penrose-or-openjdk-8.html Cheers, David From zhangshj at linux.vnet.ibm.com Sun Feb 26 19:28:10 2012 From: zhangshj at linux.vnet.ibm.com (Shi Jun Zhang) Date: Mon, 27 Feb 2012 11:28:10 +0800 Subject: Building Penrose In-Reply-To: References: Message-ID: <4F4AF84A.3030801@linux.vnet.ibm.com> On 2/24/2012 9:13 PM, David Bosschaert wrote: > For those who, like me, had to learn how to build OpenJDK 8 / Penrose, > I've recorded the steps needed to get it built on Fedora 16 here: > http://coderthoughts.blogspot.com/2012/02/building-project-penrose-or-openjdk-8.html > > Cheers, > > David > Great job, David. You'd better copy all the drops downloaded during the building process into one folder and set another env var "ALT_DROPS_DIR=". Then these drops will not be downloaded every time when you do a clean build again. All the drops are build//jaxws/drop/bundles/*.zip and build//jaxp/drop/bundles/*.zip -- Regards, Shi Jun Zhang From zhangshj at linux.vnet.ibm.com Sun Feb 26 22:28:54 2012 From: zhangshj at linux.vnet.ibm.com (Shi Jun Zhang) Date: Mon, 27 Feb 2012 14:28:54 +0800 Subject: Building Penrose In-Reply-To: References: Message-ID: <4F4B22A6.8000902@linux.vnet.ibm.com> On 2/24/2012 9:13 PM, David Bosschaert wrote: > For those who, like me, had to learn how to build OpenJDK 8 / Penrose, > I've recorded the steps needed to get it built on Fedora 16 here: > http://coderthoughts.blogspot.com/2012/02/building-project-penrose-or-openjdk-8.html > > Cheers, > > David > Here is my experience of building OpenJDK8/Jigsaw/Penrose on Windows XP 32bit machine. Basically follow the instruction in README-builds.html, you can get the build successfully. 1. Pre-requirement 1.1 NTFS required 1.2 cygwin: package required: Binary Name Category Package ar.exe Devel binutils m4.exe Interpreters m4 cpio.exe Utils cpio gawk.exe Utils awk file.exe Utils file zip.exe Archive zip unzip.exe Archive unzip free.exe System procps 1.3 Microsoft Visual Studio C++ 2010 Professional Edition or Express compiler required 1.4 ant >= 1.7.1. Get the latest ant from here: http://ant.apache.org/ivy/download.cgi 1.5 bootstrap jdk >= jdk7 1.6 freetype a. Get the latest code from http://freetype.sourceforge.net/download.html#stable b. Build the project. The output are freetype.dll in ALT_FREETYPE_LIB_PATH and src/include as ALT_FREETYPE_HEADER_PATH 1.7 make 3.80: make 3.80 is no longer provided by the cygwin. Please get it from http://www.go-mono.com/archive/helper/make-3.80-1.tar.bz2 1.8 Microsoft Direct SDK: Please get it from http://www.microsoft.com/downloads/details.aspx?FamilyId=FD044A42-9912-42A3-9A9E-D857199F888E&displaylang=en 2. Get the code Get mercurial from: http://mercurial.selenic.com/ Get the source hg clone http://hg.openjdk.java.net/penrose/jigsaw cd jigsaw chmod +x get_source.sh ./get_source.sh 3. Build Using vs studio command prompt: set CLASSPATH= set JAVA_HOME= make ALT_BOOTDIR= ALT_FREETYPE_LIB_PATH= ALT_FREETYPE_HEADERS_PATH= ALLOW_DOWNLOADS=true -- Regards, Shi Jun Zhang From zhangshj at linux.vnet.ibm.com Tue Feb 28 01:18:05 2012 From: zhangshj at linux.vnet.ibm.com (Shi Jun Zhang) Date: Tue, 28 Feb 2012 17:18:05 +0800 Subject: RFR: demo to show module can be loaded by both Jigsaw and OSGi Message-ID: <4F4C9BCD.90108@linux.vnet.ibm.com> Hi, I want to contribute my simple demo which can demonstrate the capability that a module/bundle can be loaded and ran by both Jigsaw and OSGi. When a module is installed into a library, all the class files will be packaged into a jar file named classes. Adding OSGi metadata into this jar file can make it as an OSGi bundle. The main part of the src are from java2d demo. I repackage them into 3 modules and add module-info.java/MANIFEST.MF for these modules. There is a README file in root folder tells how to build and run. Here is the webrev link http://cr.openjdk.java.net/~zhangshj/penrose_java2d_demo/webrev.00/ -- Regards, Shi Jun Zhang From david.bosschaert at gmail.com Tue Feb 28 02:44:37 2012 From: david.bosschaert at gmail.com (David Bosschaert) Date: Tue, 28 Feb 2012 10:44:37 +0000 Subject: RFR: demo to show module can be loaded by both Jigsaw and OSGi In-Reply-To: <4F4C9BCD.90108@linux.vnet.ibm.com> References: <4F4C9BCD.90108@linux.vnet.ibm.com> Message-ID: Hi Shi Jun, It's a nice start but one thing that I think needs to be improved is that the module metadata is completely separated for OSGi and Jigsaw. There is the module-info.java for Jigsaw while the OSGi module metadata is totally isolated in the MANIFEST.MF file. I think that we ultimately want to come to a single module metadata file that is extensible and can be used both by Jigsaw as well as OSGi... Best regards, David On 28 February 2012 09:18, Shi Jun Zhang wrote: > Hi, > > I want to contribute my simple demo which can demonstrate the capability > that a module/bundle can be loaded and ran by both Jigsaw and OSGi. When a > module is installed into a library, all the class files will be packaged > into a jar file named classes. Adding OSGi metadata into this jar file can > make it as an OSGi bundle. > > The main part of the src are from java2d demo. I repackage them into 3 > modules and add module-info.java/MANIFEST.MF for these modules. There is a > README file in root folder tells how to build and run. > > Here is the webrev link > http://cr.openjdk.java.net/~zhangshj/penrose_java2d_demo/webrev.00/ > > -- > Regards, > > Shi Jun Zhang > > From david.bosschaert at gmail.com Tue Feb 28 02:54:39 2012 From: david.bosschaert at gmail.com (David Bosschaert) Date: Tue, 28 Feb 2012 10:54:39 +0000 Subject: Penrose work items Message-ID: Hi all, Just thinking about the work that will be done in Penrose and how we keep visibility of everything. Should we collect all the work items on the wiki, or is there a Jira/Bugzilla instance that we will be using? Best regards, David From sstark at redhat.com Tue Feb 28 12:17:30 2012 From: sstark at redhat.com (Scott Stark) Date: Tue, 28 Feb 2012 15:17:30 -0500 (EST) Subject: Penrose work items In-Reply-To: Message-ID: <1ed7bc80-1579-4463-b39f-295dde078d74@zmail10.collab.prod.int.phx2.redhat.com> Good question. A prototype I am interested in pursuing in the context of the penrose project is to investigate jdk module implementation changes that allow our jboss modules and jboss osgi bundles to work on top of the jdk modules more effectively as the proof of concept. Currently we have hacks to workaround issues with class loaders and module design. ----- Original Message ----- From: "David Bosschaert" To: penrose-dev at openjdk.java.net Sent: Tuesday, February 28, 2012 2:54:39 AM Subject: Penrose work items Hi all, Just thinking about the work that will be done in Penrose and how we keep visibility of everything. Should we collect all the work items on the wiki, or is there a Jira/Bugzilla instance that we will be using? Best regards, David From zhangshj at linux.vnet.ibm.com Tue Feb 28 23:53:51 2012 From: zhangshj at linux.vnet.ibm.com (Shi Jun Zhang) Date: Wed, 29 Feb 2012 15:53:51 +0800 Subject: RFR: demo to show module can be loaded by both Jigsaw and OSGi In-Reply-To: References: <4F4C9BCD.90108@linux.vnet.ibm.com> Message-ID: <4F4DD98F.8060104@linux.vnet.ibm.com> On 2/28/2012 6:44 PM, David Bosschaert wrote: > Hi Shi Jun, > > It's a nice start but one thing that I think needs to be improved is > that the module metadata is completely separated for OSGi and Jigsaw. > There is the module-info.java for Jigsaw while the OSGi module > metadata is totally isolated in the MANIFEST.MF file. > I think that we ultimately want to come to a single module metadata > file that is extensible and can be used both by Jigsaw as well as > OSGi... > > Best regards, > > David > > On 28 February 2012 09:18, Shi Jun Zhang wrote: >> Hi, >> >> I want to contribute my simple demo which can demonstrate the capability >> that a module/bundle can be loaded and ran by both Jigsaw and OSGi. When a >> module is installed into a library, all the class files will be packaged >> into a jar file named classes. Adding OSGi metadata into this jar file can >> make it as an OSGi bundle. >> >> The main part of the src are from java2d demo. I repackage them into 3 >> modules and add module-info.java/MANIFEST.MF for these modules. There is a >> README file in root folder tells how to build and run. >> >> Here is the webrev link >> http://cr.openjdk.java.net/~zhangshj/penrose_java2d_demo/webrev.00/ >> >> -- >> Regards, >> >> Shi Jun Zhang >> >> Hi David, I totally agree that our final goal is to have a single metadata file which can be used by Jigsaw and OSGi. But this is just a simple demo to show the possibility that a module can be used by both Jigsaw and OSGi without modifying any Jigsaw or OSGi implementation. -- Regards, Shi Jun Zhang From david.bosschaert at gmail.com Wed Feb 29 11:28:33 2012 From: david.bosschaert at gmail.com (David Bosschaert) Date: Wed, 29 Feb 2012 19:28:33 +0000 Subject: Building Penrose In-Reply-To: <4F4B22A6.8000902@linux.vnet.ibm.com> References: <4F4B22A6.8000902@linux.vnet.ibm.com> Message-ID: On 27 February 2012 06:28, Shi Jun Zhang wrote: > On 2/24/2012 9:13 PM, David Bosschaert wrote: >> >> For those who, like me, had to learn how to build OpenJDK 8 / Penrose, >> I've recorded the steps needed to get it built on Fedora 16 here: >> >> http://coderthoughts.blogspot.com/2012/02/building-project-penrose-or-openjdk-8.html >> >> Cheers, >> >> David >> > Here is my experience of building OpenJDK8/Jigsaw/Penrose on Windows XP > 32bit machine. Basically follow the instruction in README-builds.html, you > can get the build successfully. > > 1. Pre-requirement > > ? ?1.1 NTFS required > ? ?1.2 cygwin: package required: > ? ?Binary Name ?Category ? ? ?Package > ? ?ar.exe ? ? ? Devel ? ? ? ? binutils > ? ?m4.exe ? ? ? Interpreters ?m4 > ? ?cpio.exe ? ? Utils ? ? ? ? cpio > ? ?gawk.exe ? ? Utils ? ? ? ? awk > ? ?file.exe ? ? Utils ? ? ? ? file > ? ?zip.exe ? ? ?Archive ? ? ? zip > ? ?unzip.exe ? ?Archive ? ? ? unzip > ? ?free.exe ? ? System ? ? ? ?procps > ? ?1.3 Microsoft Visual Studio C++ 2010 Professional Edition or Express > compiler required > ? ?1.4 ant >= 1.7.1. Get the latest ant from here: > http://ant.apache.org/ivy/download.cgi > ? ?1.5 bootstrap jdk >= jdk7 > ? ?1.6 freetype > > ? ? ? ?a. Get the latest code from > http://freetype.sourceforge.net/download.html#stable > ? ? ? ?b. Build the project. The output are freetype.dll in > ALT_FREETYPE_LIB_PATH and src/include as ALT_FREETYPE_HEADER_PATH > > ? ?1.7 make 3.80: make 3.80 is no longer provided by the cygwin. Please get > it from http://www.go-mono.com/archive/helper/make-3.80-1.tar.bz2 > > ? ?1.8 Microsoft Direct SDK: Please get it from > http://www.microsoft.com/downloads/details.aspx?FamilyId=FD044A42-9912-42A3-9A9E-D857199F888E&displaylang=en > > 2. Get the code > > ? ?Get mercurial from: http://mercurial.selenic.com/ > ? ?Get the source > > ? ? hg clone http://hg.openjdk.java.net/penrose/jigsaw > ? ? cd jigsaw > ? ? chmod +x get_source.sh > ? ? ./get_source.sh > > 3. Build > > ? ?Using vs studio command prompt: > > ? ?set CLASSPATH= > ? ?set JAVA_HOME= > ? ?make ALT_BOOTDIR= ALT_FREETYPE_LIB_PATH= > ALT_FREETYPE_HEADERS_PATH= ALLOW_DOWNLOADS=true > > > > > -- > Regards, > > Shi Jun Zhang > > In the mean time I figured out how to run the tests, for those who are interested, you can read my findings here: http://coderthoughts.blogspot.com/2012/02/running-penrose-or-openjdk-8-tests.html Best regards, David