From sadhak001 at gmail.com Sun Jan 6 07:00:34 2013 From: sadhak001 at gmail.com (Mani Sarkar) Date: Sun, 6 Jan 2013 15:00:34 +0000 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: <50E8D2DB.6090206@oracle.com> References: <50E8D2DB.6090206@oracle.com> Message-ID: Hi, I have been recommended to post my below query to your mailing list, if it is the right place to post. If not could you recommend who would be best placed to answer the below questions. Thanks. Regards, Mani On 01/05/2013 04:05 PM, Mani Sarkar wrote: > Hi all, > > I have made some progress with the below three sub-projects, and have > successfully built jarzip. But still get new error messages with awt2d and > j2se. > > I answered my own question about the -source 8, its basically expecting the > images/j2sdk-image to be assigned to the respective ALT_... variables via > the make.options property in build.properties for all three projects. > > Unfortunately I wasn't able to build swing via the .../javax/swing/ folder > where the required make file(s) are present. > > But my other queries still stand, if you can throw some light on them, it > would be help make progress with these builds using the new build system. > > Thanks. > > Regards, > Mani > > On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar wrote: > > Hi All, >> >> I have furthered my pursuits with building *OpenJDK projects *by building >> >> the JDK sub-projects like swing, etc... but came across issues with >> building 3 different projects which I wasn't able to build due >> configuration issues. These sub-projects are located under the netbeans >> subfolder under the .../jdk/make/ folder. >> >> They all are getting compiled for version 8 with the below args (which is >> leading to a build failure): >> >> -source 8 -target 8 >> >> *jdk/awt2d* >> >> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >> EclipseProjectsForOpenJDK/**Logs/jdk/awt2d/awt2dAntBuild.**log >> >> *jdk/j2se* >> >> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >> EclipseProjectsForOpenJDK/**Logs/jdk/j2se/j2seAntBuild.log >> >> *jdk/jarzip* >> >> >> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >> EclipseProjectsForOpenJDK/**Logs/jdk/jarzip/**jarzipAntBuild.log >> >> Where is this version configuration set for these projects, that I can >> change either through file changes or alternative build.properties setting >> changes? My other question is why are there no make files available for >> the >> jdk sub-projects (i.e. *awt2d, j2se,* etc...) except for under * >> javax/swing* has make files to build this project instead Ant build.xml >> >> files are available. Is it possible to hook these ant files with the new >> build system, instead of only being able to build the sub-projects via the >> old build system (using the ALT_... variables via make.options). >> >> Thanks. >> >> Regards, >> mani >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.**com >> > >> >> *Don't chase success, rather aim for "Excellence", and success will come >> chasing after you!* >> >> > > -- Twitter: @theNeomatrix369 Blog: http://neomatrix369.wordpress.com *Don't chase success, rather aim for "Excellence", and success will come chasing after you!* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20130106/a66e12ad/attachment.html From Ulf.Zibis at CoSoCo.de Tue Jan 8 05:11:12 2013 From: Ulf.Zibis at CoSoCo.de (Ulf Zibis) Date: Tue, 08 Jan 2013 14:11:12 +0100 Subject: Fwd: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: References: <50E8D2DB.6090206@oracle.com> Message-ID: <50EC1AF0.8070804@CoSoCo.de> Hi Mani, nb-projects-dev at openjdk.java.net should be the right place, but there is "little" trafic. This keeps me wondering too since years, as NetBeans is an Oracle Product. It's a mystery why it seems so hard to have NetBeans working for JDK developement workflow. So I think it's OK to additionally put your question here in core-libs. -Ulf Am 08.01.2013 00:21, schrieb Mani Sarkar: > Hi, > > I have been recommended to post my below query to your mailing list, if it > is the right place to post. If not could you recommend who would be best > placed to answer the below questions. > > I couldn't find an appropriate mailing list for 'jarzip' (as it is > part of langtools) > - any suggestions? It would be great if you could answer my query about it > too. > > Thanks. > > Regards, > Mani > > On 01/05/2013 04:05 PM, Mani Sarkar wrote: > >> Hi all, >> >> I have made some progress with the below three sub-projects, and have >> successfully built jarzip. But still get new error messages with awt2d and >> j2se. >> >> I answered my own question about the -source 8, its basically expecting the >> images/j2sdk-image to be assigned to the respective ALT_... variables via >> the make.options property in build.properties for all three projects. >> >> Unfortunately I wasn't able to build swing via the .../javax/swing/ folder >> where the required make file(s) are present. >> >> But my other queries still stand, if you can throw some light on them, it >> would be help make progress with these builds using the new build system. >> >> Thanks. >> >> Regards, >> Mani >> >> On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar wrote: >> >> Hi All, >>> I have furthered my pursuits with building *OpenJDK projects *by building >>> >>> the JDK sub-projects like swing, etc... but came across issues with >>> building 3 different projects which I wasn't able to build due >>> configuration issues. These sub-projects are located under the netbeans >>> subfolder under the .../jdk/make/ folder. >>> >>> They all are getting compiled for version 8 with the below args (which is >>> leading to a build failure): >>> >>> -source 8 -target 8 >>> >>> *jdk/awt2d* >>> >>> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >>> EclipseProjectsForOpenJDK/**Logs/jdk/awt2d/awt2dAntBuild.**log >>> >>> *jdk/j2se* >>> >>> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >>> EclipseProjectsForOpenJDK/**Logs/jdk/j2se/j2seAntBuild.log >>> >>> *jdk/jarzip* >>> >>> >>> https://github.com/**neomatrix369/BuildHelpers/**blob/master/** >>> EclipseProjectsForOpenJDK/**Logs/jdk/jarzip/**jarzipAntBuild.log >>> >>> Where is this version configuration set for these projects, that I can >>> change either through file changes or alternative build.properties setting >>> changes? My other question is why are there no make files available for >>> the >>> jdk sub-projects (i.e. *awt2d, j2se,* etc...) except for under * >>> javax/swing* has make files to build this project instead Ant build.xml >>> >>> files are available. Is it possible to hook these ant files with the new >>> build system, instead of only being able to build the sub-projects via the >>> old build system (using the ALT_... variables via make.options). >>> >>> Thanks. >>> >>> Regards, >>> mani >>> >>> -- >>> Twitter: @theNeomatrix369 >>> Blog: http://neomatrix369.wordpress.**com >>> > >>> >>> *Don't chase success, rather aim for "Excellence", and success will come >>> chasing after you!* >>> >>> >> > > From anthony.petrov at oracle.com Wed Jan 9 05:58:30 2013 From: anthony.petrov at oracle.com (Anthony Petrov) Date: Wed, 09 Jan 2013 17:58:30 +0400 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: References: <50E8D2DB.6090206@oracle.com> Message-ID: <50ED7786.2000607@oracle.com> Hi Mani, Not many developers really use NetBeans when working on JDK code. And only a few (if any) actually build it from NetBeans. Since the main build system for JDK is makefiles-based, obviously the netbeans projects are almost never updated when something happens to the way the code is built. Thus the projects become outdated. The new build system (configure/make-based, see the makefiles/ directory in JDK) is very fast. It does a very good job with incremental builds, so I suggest to use it for your purposes. -- best regards, Anthony On 1/6/2013 19:00, Mani Sarkar wrote: > Hi, > > I have been recommended to post my below query to your mailing list, if > it is the right place to post. If not could you recommend who would be > best placed to answer the below questions. > > Thanks. > > Regards, > Mani > > On 01/05/2013 04:05 PM, Mani Sarkar wrote: > > Hi all, > > I have made some progress with the below three sub-projects, and have > successfully built jarzip. But still get new error messages with > awt2d and > j2se. > > I answered my own question about the -source 8, its basically > expecting the > images/j2sdk-image to be assigned to the respective ALT_... > variables via > the make.options property in build.properties for all three projects. > > Unfortunately I wasn't able to build swing via the .../javax/swing/ > folder > where the required make file(s) are present. > > But my other queries still stand, if you can throw some light on > them, it > would be help make progress with these builds using the new build > system. > > Thanks. > > Regards, > Mani > > On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar > wrote: > > Hi All, > > I have furthered my pursuits with building *OpenJDK projects *by > building > > the JDK sub-projects like swing, etc... but came across issues with > building 3 different projects which I wasn't able to build due > configuration issues. These sub-projects are located under the > netbeans > subfolder under the .../jdk/make/ folder. > > They all are getting compiled for version 8 with the below args > (which is > leading to a build failure): > > -source 8 -target 8 > > *jdk/awt2d* > > https://github.com/__neomatrix369/BuildHelpers/__blob/master/__EclipseProjectsForOpenJDK/__Logs/jdk/awt2d/awt2dAntBuild.__log > > > *jdk/j2se* > > https://github.com/__neomatrix369/BuildHelpers/__blob/master/__EclipseProjectsForOpenJDK/__Logs/jdk/j2se/j2seAntBuild.log > > > *jdk/jarzip* > > > https://github.com/__neomatrix369/BuildHelpers/__blob/master/__EclipseProjectsForOpenJDK/__Logs/jdk/jarzip/__jarzipAntBuild.log > > > Where is this version configuration set for these projects, that > I can > change either through file changes or alternative > build.properties setting > changes? My other question is why are there no make files > available for the > jdk sub-projects (i.e. *awt2d, j2se,* etc...) except for under * > javax/swing* has make files to build this project instead Ant > build.xml > > files are available. Is it possible to hook these ant files with > the new > build system, instead of only being able to build the > sub-projects via the > old build system (using the ALT_... variables via make.options). > > Thanks. > > Regards, > mani > > -- > Twitter: @theNeomatrix369 > Blog: http://neomatrix369.wordpress.__com > > > > *Don't chase success, rather aim for "Excellence", and success > will come > chasing after you!* > > > > > > > > -- > Twitter: @theNeomatrix369 > Blog: http://neomatrix369.wordpress.com > > */Don't chase success, rather aim for "Excellence", and success will > come chasing after you!/* From sadhak001 at gmail.com Wed Jan 9 16:31:10 2013 From: sadhak001 at gmail.com (Mani Sarkar) Date: Thu, 10 Jan 2013 00:31:10 +0000 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: <50ED7786.2000607@oracle.com> References: <50E8D2DB.6090206@oracle.com> <50ED7786.2000607@oracle.com> Message-ID: Hi Anthony, Thanks for responding to my post. I'm aware of the make files available for other projects and sub-projects from within the OpenJDK. But the reason I was requesting help on building the Awt2d and J2se as they form part of the JDK project and it would be handy to be able to build them separately (irrespective of the netbeans projects) to the whole JDK project itself. Given that the total build time for the JDK is longer than just building its underlying components - developers would love working on separate components in IDEs of their choice. I'm working on wiki instructions to help with the Adopt OpenJDK initiative which would assist adopters to build these projects via the CLI or from withiin Eclipse. At this stage I'm updating existing instructions to build OpenJDK and its sub-projects in Eclipse and CLI - I have been able to build most of the sub-projects except the two sub-projects under the *jdk* folder.Besides moving the make files of these projects to the new build system would also benefit future adopters to directly load them up in their IDE and amend the underlying code and see the build results in the console. There is a potential for a larger number of users in our group to do just this and more hence I'm involved in the process. Any hint or help would be most appreciated, as I think it might just be a matter of configuration - I did read about sustaining these build.xml files for future use on a couple of other mailing lists. Thanks. Regards, Mani On Wed, Jan 9, 2013 at 1:58 PM, Anthony Petrov wrote: > Hi Mani, > > Not many developers really use NetBeans when working on JDK code. And only > a few (if any) actually build it from NetBeans. Since the main build system > for JDK is makefiles-based, obviously the netbeans projects are almost > never updated when something happens to the way the code is built. Thus the > projects become outdated. > > The new build system (configure/make-based, see the makefiles/ directory > in JDK) is very fast. It does a very good job with incremental builds, so I > suggest to use it for your purposes. > > -- > best regards, > Anthony > > > On 1/6/2013 19:00, Mani Sarkar wrote: > >> Hi, >> >> I have been recommended to post my below query to your mailing list, if >> it is the right place to post. If not could you recommend who would be best >> placed to answer the below questions. >> >> Thanks. >> >> Regards, >> Mani >> >> On 01/05/2013 04:05 PM, Mani Sarkar wrote: >> >> Hi all, >> >> I have made some progress with the below three sub-projects, and have >> successfully built jarzip. But still get new error messages with >> awt2d and >> j2se. >> >> I answered my own question about the -source 8, its basically >> expecting the >> images/j2sdk-image to be assigned to the respective ALT_... >> variables via >> the make.options property in build.properties for all three projects. >> >> Unfortunately I wasn't able to build swing via the .../javax/swing/ >> folder >> where the required make file(s) are present. >> >> But my other queries still stand, if you can throw some light on >> them, it >> would be help make progress with these builds using the new build >> system. >> >> Thanks. >> >> Regards, >> Mani >> >> On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar > > wrote: >> >> Hi All, >> >> I have furthered my pursuits with building *OpenJDK projects *by >> building >> >> the JDK sub-projects like swing, etc... but came across issues >> with >> building 3 different projects which I wasn't able to build due >> configuration issues. These sub-projects are located under the >> netbeans >> subfolder under the .../jdk/make/ folder. >> >> They all are getting compiled for version 8 with the below args >> (which is >> leading to a build failure): >> >> -source 8 -target 8 >> >> *jdk/awt2d* >> >> https://github.com/__**neomatrix369/BuildHelpers/__** >> blob/master/__**EclipseProjectsForOpenJDK/__** >> Logs/jdk/awt2d/awt2dAntBuild._**_log >> > EclipseProjectsForOpenJDK/**Logs/jdk/awt2d/awt2dAntBuild.**log >> > >> >> *jdk/j2se* >> >> https://github.com/__**neomatrix369/BuildHelpers/__** >> blob/master/__**EclipseProjectsForOpenJDK/__** >> Logs/jdk/j2se/j2seAntBuild.log >> > EclipseProjectsForOpenJDK/**Logs/jdk/j2se/j2seAntBuild.log >> **> >> >> *jdk/jarzip* >> >> >> https://github.com/__**neomatrix369/BuildHelpers/__** >> blob/master/__**EclipseProjectsForOpenJDK/__**Logs/jdk/jarzip/__** >> jarzipAntBuild.log >> >> > EclipseProjectsForOpenJDK/**Logs/jdk/jarzip/**jarzipAntBuild.log >> > >> >> Where is this version configuration set for these projects, that >> I can >> change either through file changes or alternative >> build.properties setting >> changes? My other question is why are there no make files >> available for the >> jdk sub-projects (i.e. *awt2d, j2se,* etc...) except for under * >> javax/swing* has make files to build this project instead Ant >> build.xml >> >> files are available. Is it possible to hook these ant files with >> the new >> build system, instead of only being able to build the >> sub-projects via the >> old build system (using the ALT_... variables via make.options). >> >> Thanks. >> >> Regards, >> mani >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.**__com >> >> >__wordpress.com >> >> >> >> >> >> *Don't chase success, rather aim for "Excellence", and success >> will come >> chasing after you!* >> >> >> >> >> >> >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.**com< >> http://neomatrxi369.**wordpress.com > >> >> */Don't chase success, rather aim for "Excellence", and success will come >> chasing after you!/* >> > -- Twitter: @theNeomatrix369 Blog: http://neomatrix369.wordpress.com *Don't chase success, rather aim for "Excellence", and success will come chasing after you!* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20130110/0006a46b/attachment.html From anthony.petrov at oracle.com Thu Jan 10 06:25:36 2013 From: anthony.petrov at oracle.com (Anthony Petrov) Date: Thu, 10 Jan 2013 18:25:36 +0400 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: References: <50E8D2DB.6090206@oracle.com> <50ED7786.2000607@oracle.com> Message-ID: <50EECF60.8080309@oracle.com> Hi Mani, I realize this, and in fact the (now) old build system should have allow you to build e.g. AWT separately by invoking make from make/java/awt, make/sun/awt, and on X11 - make/sun/xawt directories. However, the new build system does not generally support this kind of partial builds. For any "sub"-projects. You can only invoke make for the whole JDK in the top-level directory. This is how it is designed to work. Note that this new build system is able to resolve dependencies very quickly, and as a result incremental builds (i.e. when you change just a few files) should take very small amount of time. Even building the whole JDK for the first time takes significantly less time than with the old build system. Given that we're switching to the new build system real soon, and the old build system will be deprecated and removed eventually, I strongly recommend you to try out the new one. You may want to clone the jdk8/build forest where it is fully implemented at the moment and play with it. -- best regards, Anthony On 01/10/13 04:31, Mani Sarkar wrote: > Hi Anthony, > > Thanks for responding to my post. > > I'm aware of the make files available for other projects and > sub-projects from within the OpenJDK. But the reason I was requesting > help on building the Awt2d and J2se as they form part of the JDK project > and it would be handy to be able to build them separately (irrespective > of the netbeans projects) to the whole JDK project itself. Given that > the total build time for the JDK is longer than just building its > underlying components - developers would love working on separate > components in IDEs of their choice. > > I'm working on wiki instructions to help with the Adopt OpenJDK > initiative which would assist adopters to build these projects via the > CLI or from withiin Eclipse. > > At this stage I'm updating existing instructions to build OpenJDK and > its sub-projects in Eclipse and CLI - I have been able to build most of > the sub-projects except the two sub-projects under the /jdk/ > folder.Besides moving the make files of these projects to the new build > system would also benefit future adopters to directly load them up in > their IDE and amend the underlying code and see the build results in the > console. > > There is a potential for a larger number of users in our group to do > just this and more hence I'm involved in the process. Any hint or help > would be most appreciated, as I think it might just be a matter of > configuration - I did read about sustaining these build.xml files for > future use on a couple of other mailing lists. > > Thanks. > > Regards, > Mani > > On Wed, Jan 9, 2013 at 1:58 PM, Anthony Petrov > > wrote: > > Hi Mani, > > Not many developers really use NetBeans when working on JDK code. > And only a few (if any) actually build it from NetBeans. Since the > main build system for JDK is makefiles-based, obviously the netbeans > projects are almost never updated when something happens to the way > the code is built. Thus the projects become outdated. > > The new build system (configure/make-based, see the makefiles/ > directory in JDK) is very fast. It does a very good job with > incremental builds, so I suggest to use it for your purposes. > > -- > best regards, > Anthony > > > On 1/6/2013 19:00, Mani Sarkar wrote: > > Hi, > > I have been recommended to post my below query to your mailing > list, if it is the right place to post. If not could you > recommend who would be best placed to answer the below questions. > > Thanks. > > Regards, > Mani > > On 01/05/2013 04:05 PM, Mani Sarkar wrote: > > Hi all, > > I have made some progress with the below three > sub-projects, and have > successfully built jarzip. But still get new error messages > with > awt2d and > j2se. > > I answered my own question about the -source 8, its basically > expecting the > images/j2sdk-image to be assigned to the respective ALT_... > variables via > the make.options property in build.properties for all three > projects. > > Unfortunately I wasn't able to build swing via the > .../javax/swing/ > folder > where the required make file(s) are present. > > But my other queries still stand, if you can throw some > light on > them, it > would be help make progress with these builds using the new > build > system. > > Thanks. > > Regards, > Mani > > On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar > > >> wrote: > > Hi All, > > I have furthered my pursuits with building *OpenJDK > projects *by > building > > the JDK sub-projects like swing, etc... but came across > issues with > building 3 different projects which I wasn't able to > build due > configuration issues. These sub-projects are located > under the > netbeans > subfolder under the .../jdk/make/ folder. > > They all are getting compiled for version 8 with the > below args > (which is > leading to a build failure): > > -source 8 -target 8 > > *jdk/awt2d* > > https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/awt2d/awt2dAntBuild.____log > > > > > *jdk/j2se* > > https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/j2se/j2seAntBuild.log > > __> > > *jdk/jarzip* > > > https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/jarzip/____jarzipAntBuild.log > > > > > > Where is this version configuration set for these > projects, that > I can > change either through file changes or alternative > build.properties setting > changes? My other question is why are there no make files > available for the > jdk sub-projects (i.e. *awt2d, j2se,* etc...) except > for under * > javax/swing* has make files to build this project > instead Ant > build.xml > > files are available. Is it possible to hook these ant > files with > the new > build system, instead of only being able to build the > sub-projects via the > old build system (using the ALT_... variables via > make.options). > > Thanks. > > Regards, > mani > > -- > Twitter: @theNeomatrix369 > Blog: http://neomatrix369.wordpress.____com > > __wordpress.com > > >> > > *Don't chase success, rather aim for "Excellence", and > success > will come > chasing after you!* > > > > > > > > -- > Twitter: @theNeomatrix369 > Blog: http://neomatrix369.wordpress.__com > > > > > */Don't chase success, rather aim for "Excellence", and success > will come chasing after you!/* > > > > > -- > Twitter: @theNeomatrix369 > Blog: http://neomatrix369.wordpress.com > > */Don't chase success, rather aim for "Excellence", and success will > come chasing after you!/* From Ulf.Zibis at CoSoCo.de Thu Jan 10 06:51:51 2013 From: Ulf.Zibis at CoSoCo.de (Ulf Zibis) Date: Thu, 10 Jan 2013 15:51:51 +0100 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: References: <50E8D2DB.6090206@oracle.com> <50ED7786.2000607@oracle.com> Message-ID: <50EED587.5070900@CoSoCo.de> Hi Mani, please note the conversation at the end of this post and my reference to my older attempts to solve your issue. Additionally please note these threads: http://mail.openjdk.java.net/pipermail/nb-projects-dev/2009-April/thread.html http://mail.openjdk.java.net/pipermail/nb-projects-dev/2010-June/000096.html http://openjdk.5641.n7.nabble.com/OpenJDK-Netbeans-and-Ant-Build-Scripts-f102175.html -Ulf Am 10.01.2013 01:31, schrieb Mani Sarkar: > Hi Anthony, > > Thanks for responding to my post. > > I'm aware of the make files available for other projects and sub-projects from within the OpenJDK. > But the reason I was requesting help on building the Awt2d and J2se as they form part of the JDK > project and it would be handy to be able to build them separately (irrespective of the netbeans > projects) to the whole JDK project itself. Given that the total build time for the JDK is longer > than just building its underlying components - developers would love working on separate > components in IDEs of their choice. > > I'm working on wiki instructions to help with the Adopt OpenJDK initiative which would assist > adopters to build these projects via the CLI or from withiin Eclipse. > > At this stage I'm updating existing instructions to build OpenJDK and its sub-projects in Eclipse > and CLI - I have been able to build most of the sub-projects except the two sub-projects under the > /jdk/ folder.Besides moving the make files of these projects to the new build system would also > benefit future adopters to directly load them up in their IDE and amend the underlying code and > see the build results in the console. > > There is a potential for a larger number of users in our group to do just this and more hence I'm > involved in the process. Any hint or help would be most appreciated, as I think it might just be > a matter of configuration - I did read about sustaining these build.xml files for future use on a > couple of other mailing lists. > > Thanks. > > Regards, > Mani > Am 09.01.2013 18:32, schrieb Mike Duigou: > On Jan 9 2013, at 02:41 , Ulf Zibis wrote: > >> Hi Mike, >> >> at the moment, I do not have any environment to create changesets or webrevs, will take some time. > No rush. I may also get to this. My suggestion was motivated towards getting your OpenJDK commit count up. > >> Mentioning the NB list in README would be a good idea. >> >> Some time ago, I tried some enhancements here: https://bugs.openjdk.java.net/attachment.cgi?id=125&action=diff >> Search for "/make/netbeans/common/". > I will look for these changes. > >> Have a nice day, > Happy New Year to you as well! > > Mike > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/nb-projects-dev/attachments/20130110/9fb6f007/attachment.html From mike.duigou at oracle.com Thu Jan 10 09:16:48 2013 From: mike.duigou at oracle.com (Mike Duigou) Date: Thu, 10 Jan 2013 09:16:48 -0800 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: <50EECF60.8080309@oracle.com> References: <50E8D2DB.6090206@oracle.com> <50ED7786.2000607@oracle.com> <50EECF60.8080309@oracle.com> Message-ID: I've made a few patches over the last couple of years to the NetBeans projects mostly to make editting code and tests within the IDE easier but haven't ever spent much effort trying to build from within the IDE. I have been anticipating doing some work to see if building from within the IDE can be done more simply with the new build infrastructure once it is in place. As Anthony suggest though this will likely be full builds of all of OpenJDK. Mike On Jan 10 2013, at 06:25 , Anthony Petrov wrote: > Hi Mani, > > I realize this, and in fact the (now) old build system should have allow you to build e.g. AWT separately by invoking make from make/java/awt, make/sun/awt, and on X11 - make/sun/xawt directories. > > However, the new build system does not generally support this kind of partial builds. For any "sub"-projects. You can only invoke make for the whole JDK in the top-level directory. This is how it is designed to work. Note that this new build system is able to resolve dependencies very quickly, and as a result incremental builds (i.e. when you change just a few files) should take very small amount of time. Even building the whole JDK for the first time takes significantly less time than with the old build system. > > Given that we're switching to the new build system real soon, and the old build system will be deprecated and removed eventually, I strongly recommend you to try out the new one. You may want to clone the jdk8/build forest where it is fully implemented at the moment and play with it. > > -- > best regards, > Anthony > > On 01/10/13 04:31, Mani Sarkar wrote: >> Hi Anthony, >> >> Thanks for responding to my post. >> >> I'm aware of the make files available for other projects and >> sub-projects from within the OpenJDK. But the reason I was requesting >> help on building the Awt2d and J2se as they form part of the JDK project >> and it would be handy to be able to build them separately (irrespective >> of the netbeans projects) to the whole JDK project itself. Given that >> the total build time for the JDK is longer than just building its >> underlying components - developers would love working on separate >> components in IDEs of their choice. >> >> I'm working on wiki instructions to help with the Adopt OpenJDK >> initiative which would assist adopters to build these projects via the >> CLI or from withiin Eclipse. >> >> At this stage I'm updating existing instructions to build OpenJDK and >> its sub-projects in Eclipse and CLI - I have been able to build most of >> the sub-projects except the two sub-projects under the /jdk/ >> folder.Besides moving the make files of these projects to the new build >> system would also benefit future adopters to directly load them up in >> their IDE and amend the underlying code and see the build results in the >> console. >> >> There is a potential for a larger number of users in our group to do >> just this and more hence I'm involved in the process. Any hint or help >> would be most appreciated, as I think it might just be a matter of >> configuration - I did read about sustaining these build.xml files for >> future use on a couple of other mailing lists. >> >> Thanks. >> >> Regards, >> Mani >> >> On Wed, Jan 9, 2013 at 1:58 PM, Anthony Petrov >> > wrote: >> >> Hi Mani, >> >> Not many developers really use NetBeans when working on JDK code. >> And only a few (if any) actually build it from NetBeans. Since the >> main build system for JDK is makefiles-based, obviously the netbeans >> projects are almost never updated when something happens to the way >> the code is built. Thus the projects become outdated. >> >> The new build system (configure/make-based, see the makefiles/ >> directory in JDK) is very fast. It does a very good job with >> incremental builds, so I suggest to use it for your purposes. >> >> -- >> best regards, >> Anthony >> >> >> On 1/6/2013 19:00, Mani Sarkar wrote: >> >> Hi, >> >> I have been recommended to post my below query to your mailing >> list, if it is the right place to post. If not could you >> recommend who would be best placed to answer the below questions. >> >> Thanks. >> >> Regards, >> Mani >> >> On 01/05/2013 04:05 PM, Mani Sarkar wrote: >> >> Hi all, >> >> I have made some progress with the below three >> sub-projects, and have >> successfully built jarzip. But still get new error messages >> with >> awt2d and >> j2se. >> >> I answered my own question about the -source 8, its basically >> expecting the >> images/j2sdk-image to be assigned to the respective ALT_... >> variables via >> the make.options property in build.properties for all three >> projects. >> >> Unfortunately I wasn't able to build swing via the >> .../javax/swing/ >> folder >> where the required make file(s) are present. >> >> But my other queries still stand, if you can throw some >> light on >> them, it >> would be help make progress with these builds using the new >> build >> system. >> >> Thanks. >> >> Regards, >> Mani >> >> On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar >> >> >> wrote: >> >> Hi All, >> >> I have furthered my pursuits with building *OpenJDK >> projects *by >> building >> >> the JDK sub-projects like swing, etc... but came across >> issues with >> building 3 different projects which I wasn't able to >> build due >> configuration issues. These sub-projects are located >> under the >> netbeans >> subfolder under the .../jdk/make/ folder. >> >> They all are getting compiled for version 8 with the >> below args >> (which is >> leading to a build failure): >> >> -source 8 -target 8 >> >> *jdk/awt2d* >> >> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/awt2d/awt2dAntBuild.____log >> >> > > >> >> *jdk/j2se* >> >> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/j2se/j2seAntBuild.log >> >> > __> >> >> *jdk/jarzip* >> >> >> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/jarzip/____jarzipAntBuild.log >> >> >> > > >> >> Where is this version configuration set for these >> projects, that >> I can >> change either through file changes or alternative >> build.properties setting >> changes? My other question is why are there no make files >> available for the >> jdk sub-projects (i.e. *awt2d, j2se,* etc...) except >> for under * >> javax/swing* has make files to build this project >> instead Ant >> build.xml >> >> files are available. Is it possible to hook these ant >> files with >> the new >> build system, instead of only being able to build the >> sub-projects via the >> old build system (using the ALT_... variables via >> make.options). >> >> Thanks. >> >> Regards, >> mani >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.____com >> > >> __wordpress.com >> >> > >> >> >> *Don't chase success, rather aim for "Excellence", and >> success >> will come >> chasing after you!* >> >> >> >> >> >> >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.__com >> >> > > >> >> */Don't chase success, rather aim for "Excellence", and success >> will come chasing after you!/* >> >> >> >> >> -- >> Twitter: @theNeomatrix369 >> Blog: http://neomatrix369.wordpress.com >> >> */Don't chase success, rather aim for "Excellence", and success will >> come chasing after you!/* From jonathan.gibbons at oracle.com Thu Jan 10 09:52:27 2013 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Thu, 10 Jan 2013 09:52:27 -0800 Subject: OpenJDK builds: Ant build issues with jdk (netbeans) sub-projects - awt2d, j2se and jarzip In-Reply-To: References: <50E8D2DB.6090206@oracle.com> <50ED7786.2000607@oracle.com> <50EECF60.8080309@oracle.com> Message-ID: <50EEFFDB.5060404@oracle.com> The genesis of these projects was two-fold -- at the time, IDEs could not slurp in all the JDK code without a serious case of indigestion, and the build times were fairly slow, leading to ad-hoc methods for incremental builds. Going forward, once sjavac (smart javac) is put in place for OpenJDK builds, incremental builds should be very fast, so that although you will take a hit for the initial build, subsequent builds will be much faster. And, IDEs are more likely now to take more of the OpenJDK code at once. Given that, I think we should revisit the goals and requirements for these projects, determining the targets that would most help the folk working on the code and potentially using the projects. I would like to do that sooner rather than later for the langtools project. It would be nice if, generally, we could have an overall project for all of OpenJDK, but failing that, ones for the primary areas, such as core-libs, client and so on. I suspect more than a few developers create their own mini-projects, so it would be interesting to survey folk to find the preferred editor/IDE of choice, and how folk tend to use it -- just for editing, or for edit/build, or even edit/build/debug. Note that an ongoing problem when using an IDE (that will never go away completely) is that much of OpenJDK uses the latest version of the language (i.e. currently 8) which is not yet officially supported by any IDE, although some pre-release versions may be available. Thus you will find use of lambda expressions creeping into JDK 8 source code -- which will likely cause red squiggly lines in your code, unless you revert (as some do!) to emacs, vi, etc. Welcome to the bleeding edge ;-) -- Jon On 01/10/2013 09:16 AM, Mike Duigou wrote: > I've made a few patches over the last couple of years to the NetBeans projects mostly to make editting code and tests within the IDE easier but haven't ever spent much effort trying to build from within the IDE. I have been anticipating doing some work to see if building from within the IDE can be done more simply with the new build infrastructure once it is in place. As Anthony suggest though this will likely be full builds of all of OpenJDK. > > Mike > > On Jan 10 2013, at 06:25 , Anthony Petrov wrote: > >> Hi Mani, >> >> I realize this, and in fact the (now) old build system should have allow you to build e.g. AWT separately by invoking make from make/java/awt, make/sun/awt, and on X11 - make/sun/xawt directories. >> >> However, the new build system does not generally support this kind of partial builds. For any "sub"-projects. You can only invoke make for the whole JDK in the top-level directory. This is how it is designed to work. Note that this new build system is able to resolve dependencies very quickly, and as a result incremental builds (i.e. when you change just a few files) should take very small amount of time. Even building the whole JDK for the first time takes significantly less time than with the old build system. >> >> Given that we're switching to the new build system real soon, and the old build system will be deprecated and removed eventually, I strongly recommend you to try out the new one. You may want to clone the jdk8/build forest where it is fully implemented at the moment and play with it. >> >> -- >> best regards, >> Anthony >> >> On 01/10/13 04:31, Mani Sarkar wrote: >>> Hi Anthony, >>> >>> Thanks for responding to my post. >>> >>> I'm aware of the make files available for other projects and >>> sub-projects from within the OpenJDK. But the reason I was requesting >>> help on building the Awt2d and J2se as they form part of the JDK project >>> and it would be handy to be able to build them separately (irrespective >>> of the netbeans projects) to the whole JDK project itself. Given that >>> the total build time for the JDK is longer than just building its >>> underlying components - developers would love working on separate >>> components in IDEs of their choice. >>> >>> I'm working on wiki instructions to help with the Adopt OpenJDK >>> initiative which would assist adopters to build these projects via the >>> CLI or from withiin Eclipse. >>> >>> At this stage I'm updating existing instructions to build OpenJDK and >>> its sub-projects in Eclipse and CLI - I have been able to build most of >>> the sub-projects except the two sub-projects under the /jdk/ >>> folder.Besides moving the make files of these projects to the new build >>> system would also benefit future adopters to directly load them up in >>> their IDE and amend the underlying code and see the build results in the >>> console. >>> >>> There is a potential for a larger number of users in our group to do >>> just this and more hence I'm involved in the process. Any hint or help >>> would be most appreciated, as I think it might just be a matter of >>> configuration - I did read about sustaining these build.xml files for >>> future use on a couple of other mailing lists. >>> >>> Thanks. >>> >>> Regards, >>> Mani >>> >>> On Wed, Jan 9, 2013 at 1:58 PM, Anthony Petrov >>> > wrote: >>> >>> Hi Mani, >>> >>> Not many developers really use NetBeans when working on JDK code. >>> And only a few (if any) actually build it from NetBeans. Since the >>> main build system for JDK is makefiles-based, obviously the netbeans >>> projects are almost never updated when something happens to the way >>> the code is built. Thus the projects become outdated. >>> >>> The new build system (configure/make-based, see the makefiles/ >>> directory in JDK) is very fast. It does a very good job with >>> incremental builds, so I suggest to use it for your purposes. >>> >>> -- >>> best regards, >>> Anthony >>> >>> >>> On 1/6/2013 19:00, Mani Sarkar wrote: >>> >>> Hi, >>> >>> I have been recommended to post my below query to your mailing >>> list, if it is the right place to post. If not could you >>> recommend who would be best placed to answer the below questions. >>> >>> Thanks. >>> >>> Regards, >>> Mani >>> >>> On 01/05/2013 04:05 PM, Mani Sarkar wrote: >>> >>> Hi all, >>> >>> I have made some progress with the below three >>> sub-projects, and have >>> successfully built jarzip. But still get new error messages >>> with >>> awt2d and >>> j2se. >>> >>> I answered my own question about the -source 8, its basically >>> expecting the >>> images/j2sdk-image to be assigned to the respective ALT_... >>> variables via >>> the make.options property in build.properties for all three >>> projects. >>> >>> Unfortunately I wasn't able to build swing via the >>> .../javax/swing/ >>> folder >>> where the required make file(s) are present. >>> >>> But my other queries still stand, if you can throw some >>> light on >>> them, it >>> would be help make progress with these builds using the new >>> build >>> system. >>> >>> Thanks. >>> >>> Regards, >>> Mani >>> >>> On Sat, Jan 5, 2013 at 12:39 AM, Mani Sarkar >>> >>> >> wrote: >>> >>> Hi All, >>> >>> I have furthered my pursuits with building *OpenJDK >>> projects *by >>> building >>> >>> the JDK sub-projects like swing, etc... but came across >>> issues with >>> building 3 different projects which I wasn't able to >>> build due >>> configuration issues. These sub-projects are located >>> under the >>> netbeans >>> subfolder under the .../jdk/make/ folder. >>> >>> They all are getting compiled for version 8 with the >>> below args >>> (which is >>> leading to a build failure): >>> >>> -source 8 -target 8 >>> >>> *jdk/awt2d* >>> >>> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/awt2d/awt2dAntBuild.____log >>> >>> >> > >>> >>> *jdk/j2se* >>> >>> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/j2se/j2seAntBuild.log >>> >>> >> __> >>> >>> *jdk/jarzip* >>> >>> >>> https://github.com/____neomatrix369/BuildHelpers/____blob/master/____EclipseProjectsForOpenJDK/____Logs/jdk/jarzip/____jarzipAntBuild.log >>> >>> >>> >> > >>> >>> Where is this version configuration set for these >>> projects, that >>> I can >>> change either through file changes or alternative >>> build.properties setting >>> changes? My other question is why are there no make files >>> available for the >>> jdk sub-projects (i.e. *awt2d, j2se,* etc...) except >>> for under * >>> javax/swing* has make files to build this project >>> instead Ant >>> build.xml >>> >>> files are available. Is it possible to hook these ant >>> files with >>> the new >>> build system, instead of only being able to build the >>> sub-projects via the >>> old build system (using the ALT_... variables via >>> make.options). >>> >>> Thanks. >>> >>> Regards, >>> mani >>> >>> -- >>> Twitter: @theNeomatrix369 >>> Blog: http://neomatrix369.wordpress.____com >>> >> >>> __wordpress.com >>> >>> >> >> >>> >>> *Don't chase success, rather aim for "Excellence", and >>> success >>> will come >>> chasing after you!* >>> >>> >>> >>> >>> >>> >>> >>> -- >>> Twitter: @theNeomatrix369 >>> Blog: http://neomatrix369.wordpress.__com >>> >>> >> > >>> >>> */Don't chase success, rather aim for "Excellence", and success >>> will come chasing after you!/* >>> >>> >>> >>> >>> -- >>> Twitter: @theNeomatrix369 >>> Blog: http://neomatrix369.wordpress.com >>> >>> */Don't chase success, rather aim for "Excellence", and success will >>> come chasing after you!/*