Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62453 invoked from network); 2 Sep 2008 08:37:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 08:37:40 -0000 Received: (qmail 25312 invoked by uid 500); 2 Sep 2008 08:37:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25293 invoked by uid 500); 2 Sep 2008 08:37:38 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25282 invoked by uid 99); 2 Sep 2008 08:37:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 01:37:38 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 08:36:38 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m828b26P001060 for ; Tue, 2 Sep 2008 08:37:02 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K6K00K0176YCJ00@fe-emea-10.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Tue, 02 Sep 2008 09:37:02 +0100 (BST) Received: from [129.159.112.237] by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K6K006SB7XBEGC0@fe-emea-10.sun.com> for derby-dev@db.apache.org; Tue, 02 Sep 2008 09:36:47 +0100 (BST) Date: Tue, 02 Sep 2008 10:36:46 +0200 From: Kristian Waagan Subject: Re: Help with build.xml so that DataDictionary class will compile with jdk1.5 and higher... In-reply-to: Sender: Kristian.Waagan@Sun.COM To: derby-dev@db.apache.org Message-id: <48BCFB1E.7010309@Sun.com> Organization: Sun Microsystems Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <48B84B59.6080709@sun.com> <48B85AF2.4010805@sun.com> <48B86291.1090900@sun.com> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; no-NO; rv:1.8.1.14) Gecko/20080714 Lightning/0.8 Thunderbird/2.0.0.14 Mnenhy/0.7.5.0 X-Virus-Checked: Checked by ClamAV on apache.org On 09/02/08 08:26, Mamta Satoor wrote: > Hi Rick, > > You are right, I did have typo in my build,xml file. I have fixed that > and I think simplified the build,xml more than what I had last Friday > but I still continue to get build errors about missing > java.util.concurrent. package. Hi Mamta, I haven't looked into this, but earlier it has been a problem that when you compile classes with a lower version of Java, the build system might pull in dependencies (other classes) that require a higher version of Java. The order of the build targets can be of importance in this case. Have you investigated if this can be what happens for you? Can you identify under which build target the failure is happening? regards, -- Kristian > > The latest build.xml is attached. > > thanks, > Mamta > > On 8/29/08, Rick Hillegas wrote: >> Hi Mamta, >> >> One think that looks odd to me in the build.xml from your original post is >> this: you are exluding >> ${derby.dir}/iapi/sql/DataDictionary.java. I think you may >> mean to exclude >> ${derby.dir}/iapi/sql/dictionary/DataDictionary.java >> >> >> Hope this helps, >> -Rick >> >> Mamta Satoor wrote: >>> [javac] >> C:\p4clients\svnmain\client1\trunk\java\engine\org\apache\derby\iapi\sql\dictionary\DataDictionary.java:52: >>> package java.util.concurrent does not exist >>> [javac] import >> java.util.concurrent.ThreadPoolExecutor; >>> [javac] ^ >>> [javac] 1 error >>> >>> thanks, >>> Mamta >>> >>> On 8/29/08, Rick Hillegas wrote: >>> >>> >>>> Hi Mamta, >>>> >>>> What error are you seeing? >>>> >>>> -Rick >>>> >>>> >>>> Mamta Satoor wrote: >>>> >>>> >>>>> Thanks for your reply, Rick. I changed my build.xml as shown in the >>>>> attached file and still no luck yet :( >>>>> >>>>> Mamta >>>>> >>>>> On 8/29/08, Rick Hillegas wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Mamta, >>>>>> >>>>>> Here's a target from java/demo/build.xml which compiles some classes >>>>>> >>>>>> >>>> with >>>> >>>> >>>>>> the 1.5 compiler. This may work better for you: >>>>>> >>>>>> >>>>>> >>>>> source="1.5" >>>>>> target="1.5" >>>>>> bootclasspath="${empty}" >>>>>> nowarn="on" >>>>>> debug="${debug}" >>>>>> depend="${depend}" >>>>>> deprecation="${deprecation}" >>>>>> optimize="${optimize}" >>>>>> proceed="${proceed}" >>>>>> verbose="${verbose}" >>>>>> srcdir="${derby.demo.src.dir}/vtis/java" >>>>>> destdir="${out.dir}"> >>>>>> >>>>>> > path="${java15compile.classpath}"/> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Hope this helps, >>>>>> -Rick >>>>>> >>>>>> >>>>>> Mamta Satoor wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I am adding an import of >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> java.util.concurrent.ThreadPoolExecutor in >>>>>> >>>>>> >>>>>> >>>>>> >> org.apache.derby.iapi.sql.dictionary.DataDictionary >>>>>>> >>>> and >>>> >>>> >>>>>>> >>>>>> when I compile >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> it without any changes to build.xml, I ofcourse get errors for >> that >>>>>>> import because it is only available in jdk1.5 and higher. >>>>>>> >>>>>>> In order to fix this, I have made changes to >>>>>>> org.apache.derby.iapi.sql.build.xml (attached to >> this >>>>>>> >>>>>>> >>>>>>> >>>>>> mail) so that >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> DataDictionary is excluded from compile with jdk1.4 and will be >>>>>>> compiled with jdk1.6 But that is not fixing the problem. I was >>>>>>> wondering if someone more familiar with build.xml can help me on >> this? >>>>>>> This is my first time trying to add a new target and my attempt at >>>>>>> changes in this build.xml are based on other build.xmls in the >> Derby >>>>>>> engine code. >>>>>>> >>>>>>> thanks, >>>>>>> Mamta >>>>>>> ps this is a temporary thing to put something jdk1.5 specific in >>>>>>> DataDictionary. I later plan subclass it and then jdk1.5 specific >>>>>>> stuff will go into that new class. But I will have to go through >> the >>>>>>> same exercise of changing build,xml for that new file and hence >> this >>>>>>> exercise of changing the build.xml will be useful later. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>> >>