From linuxhippy at gmail.com Thu Apr 24 10:01:28 2008 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Thu, 24 Apr 2008 19:01:28 +0200 Subject: Project seems to ignore changes Message-ID: <194f62550804241001h1ec286deq70f2c27d6b157d48@mail.gmail.com> Hi there, I've tried using the 2d/awt project to implement some extensions in that area. Building on the command-line worked without any problems. (OpenJDK's build infrastructure is a great improvement to the closed-source packages I experimented in the past, thanks a lot). However with netbeans I experience some problems: I created the build.properties file (attached at the end of the mail). However when I call Clean&build I get: Leaving directory `/home/ce/OpenJDK7/jdk/make/com/sun/image' Entering directory `/home/ce/OpenJDK7/jdk/make/com/sun/java2d' /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:85: The following error occurred while executing this line: /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: The directory /home/ce/OpenJDK7/jdk/make/com/sun/java2d does not exist When I do build only: make: *** No rule to make target `/home/ce/OpenJDK7/openjdk-binary-plug/jre/lib/rt-closed.jar', needed by `import-binary-plug-awt-classes'. Stop. /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:42: The following error occurred while executing this line: /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: exec returned: 2 Any ideas what's wrong? Thank you in advance, lg Clemens build.properties: bootstrap.jdk=/home/ce/Programme/jdk1.7.0b25 make.options=\ ALT_BOOTDIR=/home/ce/Programme/jdk1.7.0b25 \ ALT_CLOSED_JDK_IMPORT_PATH=/home/ce/Programme/jdk1.7.0b25 \ ALT_BINARY_PLUGS_PATH=/home/ce/OpenJDK7/openjdk-binary-plug From David.Bristor at Sun.COM Thu Apr 24 13:55:44 2008 From: David.Bristor at Sun.COM (Dave Bristor) Date: Thu, 24 Apr 2008 13:55:44 -0700 Subject: Project seems to ignore changes In-Reply-To: <194f62550804241001h1ec286deq70f2c27d6b157d48@mail.gmail.com> References: <194f62550804241001h1ec286deq70f2c27d6b157d48@mail.gmail.com> Message-ID: <4810F3D0.3000408@sun.com> Clemens Eisserer wrote: > Hi there, > > I've tried using the 2d/awt project to implement some extensions in > that area. Building on the command-line worked without any problems. > (OpenJDK's build infrastructure is a great improvement to the > closed-source packages I experimented in the past, thanks a lot). > > However with netbeans I experience some problems: > > I created the build.properties file (attached at the end of the mail). > > However when I call Clean&build I get: > Leaving directory `/home/ce/OpenJDK7/jdk/make/com/sun/image' > Entering directory `/home/ce/OpenJDK7/jdk/make/com/sun/java2d' > /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:85: The following > error occurred while executing this line: > /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: The directory > /home/ce/OpenJDK7/jdk/make/com/sun/java2d does not exist That's because this project hasn't been adequately maintained (mea culpa). Fixes have been made in the OpenJDK6 sourcebase, but not yet ported to OpenJDK 7 :-( I only just started that work earlier this week. > When I do build only: > make: *** No rule to make target > `/home/ce/OpenJDK7/openjdk-binary-plug/jre/lib/rt-closed.jar', needed > by `import-binary-plug-awt-classes'. Stop. > /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:42: The following > error occurred while executing this line: > /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: exec returned: 2 That _might_ be resolved if you add OPENJDK=true to make.options. Regardless, you'll want to remove the lines referring to com/sun/java2d from build.xml. HTH, Dave > > Any ideas what's wrong? > > Thank you in advance, lg Clemens > > build.properties: > bootstrap.jdk=/home/ce/Programme/jdk1.7.0b25 > > make.options=\ > ALT_BOOTDIR=/home/ce/Programme/jdk1.7.0b25 \ > ALT_CLOSED_JDK_IMPORT_PATH=/home/ce/Programme/jdk1.7.0b25 \ > ALT_BINARY_PLUGS_PATH=/home/ce/OpenJDK7/openjdk-binary-plug From linuxhippy at gmail.com Thu Apr 24 14:28:18 2008 From: linuxhippy at gmail.com (Clemens Eisserer) Date: Thu, 24 Apr 2008 23:28:18 +0200 Subject: Project seems to ignore changes In-Reply-To: <4810F3D0.3000408@sun.com> References: <194f62550804241001h1ec286deq70f2c27d6b157d48@mail.gmail.com> <4810F3D0.3000408@sun.com> Message-ID: <194f62550804241428l3bee8678p63982ac87d52cb6f@mail.gmail.com> Hi Dave, Thanks a lot for letting me know the makefiles are broken. I was already afraid I could bother somebody by asking that much ... well maybe I still do ... but its not completly my fault that it does not work as intended ;) The reason I was asking with a wrong title was, that I tried a full clean+build procedure only because I was not able to compile individual files. I changed several classes, and it seems netbeans was not able to see changes at all. If I tried to build a single changed class (F9) which depended on other changes it did not build. This did even go as far as that netbeans did not even find new packages I had created. Is this intentional, or do I mis-using the build-single-file? Is it possible to have netbeans just compile the needed, changed classes? Thanks a lot, lg Clemens 2008/4/24, Dave Bristor : > Clemens Eisserer wrote: > > > Hi there, > > > > I've tried using the 2d/awt project to implement some extensions in > > that area. Building on the command-line worked without any problems. > > (OpenJDK's build infrastructure is a great improvement to the > > closed-source packages I experimented in the past, thanks a lot). > > > > However with netbeans I experience some problems: > > > > I created the build.properties file (attached at the end of the mail). > > > > However when I call Clean&build I get: > > Leaving directory > `/home/ce/OpenJDK7/jdk/make/com/sun/image' > > Entering directory > `/home/ce/OpenJDK7/jdk/make/com/sun/java2d' > > /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:85: > The following > > error occurred while executing this line: > > /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: > The directory > > /home/ce/OpenJDK7/jdk/make/com/sun/java2d does not exist > > > > That's because this project hasn't been adequately maintained (mea culpa). > Fixes have been made in the OpenJDK6 sourcebase, but not yet ported to > OpenJDK 7 :-( I only just started that work earlier this week. > > > > When I do build only: > > make: *** No rule to make target > > > `/home/ce/OpenJDK7/openjdk-binary-plug/jre/lib/rt-closed.jar', > needed > > by `import-binary-plug-awt-classes'. Stop. > > /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:42: > The following > > error occurred while executing this line: > > /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: > exec returned: 2 > > > > That _might_ be resolved if you add OPENJDK=true to make.options. > > Regardless, you'll want to remove the lines referring to com/sun/java2d > from build.xml. > > HTH, > Dave > > > > > > > Any ideas what's wrong? > > > > Thank you in advance, lg Clemens > > > > build.properties: > > bootstrap.jdk=/home/ce/Programme/jdk1.7.0b25 > > > > make.options=\ > > ALT_BOOTDIR=/home/ce/Programme/jdk1.7.0b25 \ > > > ALT_CLOSED_JDK_IMPORT_PATH=/home/ce/Programme/jdk1.7.0b25 \ > > > ALT_BINARY_PLUGS_PATH=/home/ce/OpenJDK7/openjdk-binary-plug > > > From David.Bristor at Sun.COM Thu Apr 24 15:21:10 2008 From: David.Bristor at Sun.COM (Dave Bristor) Date: Thu, 24 Apr 2008 15:21:10 -0700 Subject: Project seems to ignore changes In-Reply-To: <194f62550804241428l3bee8678p63982ac87d52cb6f@mail.gmail.com> References: <194f62550804241001h1ec286deq70f2c27d6b157d48@mail.gmail.com> <4810F3D0.3000408@sun.com> <194f62550804241428l3bee8678p63982ac87d52cb6f@mail.gmail.com> Message-ID: <481107D6.6090400@sun.com> Clemens Eisserer wrote: > Hi Dave, > > Thanks a lot for letting me know the makefiles are broken. I was > already afraid I could bother somebody by asking that much ... well > maybe I still do ... but its not completly my fault that it does not > work as intended ;) Just to clarify: the Makefiles themselves should be OK. What's amiss is the make/netbeans/awt2d/build.* files. make/netbeans/awt2d/build.xml specifies a set of makefiles that have to be maked, in order. One noted therein is make/com/sun/java2d: that directory no longer exists, ergo one of the errors you saw > The reason I was asking with a wrong title was, that I tried a full > clean+build procedure only because I was not able to compile > individual files. I changed several classes, and it seems netbeans was > not able to see changes at all. If I tried to build a single changed > class (F9) which depended on other changes it did not build. > This did even go as far as that netbeans did not even find new > packages I had created. This particular project is make-based, meaning that all building is done, under the covers, by repeated invocations of make in appropriate directories. I just tried a simple experiment: I changed java.awt.AWTError.java, and hit F9: I can see that the .class file changed. If you create new packages, you probably have to change the Makefiles to build them. > Is this intentional, or do I mis-using the build-single-file? > Is it possible to have netbeans just compile the needed, changed classes? build-single-file worked for me in that one limited test case. I usually just build whatever project. I poked at the awt2d project's files, but just a diff between the 6-open and OpenJDK 7 files isn't enough to make things work. I'll have to investigate further, and consult with folks more expert on this project than I, and do a proper commit to the repository. As a workaround, please try incremental builds from jdk/make. Unortunately this is a lot slower than F9: I made the same change and rebuilt, which took 3 minutes :-( Thanks, Dave > Thanks a lot, lg Clemens > > 2008/4/24, Dave Bristor : >> Clemens Eisserer wrote: >> >>> Hi there, >>> >>> I've tried using the 2d/awt project to implement some extensions in >>> that area. Building on the command-line worked without any problems. >>> (OpenJDK's build infrastructure is a great improvement to the >>> closed-source packages I experimented in the past, thanks a lot). >>> >>> However with netbeans I experience some problems: >>> >>> I created the build.properties file (attached at the end of the mail). >>> >>> However when I call Clean&build I get: >>> Leaving directory >> `/home/ce/OpenJDK7/jdk/make/com/sun/image' >>> Entering directory >> `/home/ce/OpenJDK7/jdk/make/com/sun/java2d' >>> /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:85: >> The following >>> error occurred while executing this line: >>> /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: >> The directory >>> /home/ce/OpenJDK7/jdk/make/com/sun/java2d does not exist >>> >> That's because this project hasn't been adequately maintained (mea culpa). >> Fixes have been made in the OpenJDK6 sourcebase, but not yet ported to >> OpenJDK 7 :-( I only just started that work earlier this week. >> >> >>> When I do build only: >>> make: *** No rule to make target >>> >> `/home/ce/OpenJDK7/openjdk-binary-plug/jre/lib/rt-closed.jar', >> needed >>> by `import-binary-plug-awt-classes'. Stop. >>> /home/ce/OpenJDK7/jdk/make/netbeans/awt2d/build.xml:42: >> The following >>> error occurred while executing this line: >>> /home/ce/OpenJDK7/jdk/make/netbeans/common/make.xml:61: >> exec returned: 2 >> That _might_ be resolved if you add OPENJDK=true to make.options. >> >> Regardless, you'll want to remove the lines referring to com/sun/java2d >> from build.xml. >> >> HTH, >> Dave >> >> >> >>> Any ideas what's wrong? >>> >>> Thank you in advance, lg Clemens >>> >>> build.properties: >>> bootstrap.jdk=/home/ce/Programme/jdk1.7.0b25 >>> >>> make.options=\ >>> ALT_BOOTDIR=/home/ce/Programme/jdk1.7.0b25 \ >>> >> ALT_CLOSED_JDK_IMPORT_PATH=/home/ce/Programme/jdk1.7.0b25 \ >> ALT_BINARY_PLUGS_PATH=/home/ce/OpenJDK7/openjdk-binary-plug