Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 92354 invoked from network); 24 Sep 2007 21:29:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2007 21:29:24 -0000 Received: (qmail 32253 invoked by uid 500); 24 Sep 2007 21:29:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32041 invoked by uid 500); 24 Sep 2007 21:29:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 32030 invoked by uid 99); 24 Sep 2007 21:29:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 14:29:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.49.1] (HELO web52812.mail.re2.yahoo.com) (206.190.49.1) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Sep 2007 21:31:20 +0000 Received: (qmail 85311 invoked by uid 60001); 24 Sep 2007 21:28:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=S0N1P+gwHJthyWcuvrlvAU1YNKDv2xlf2itpOyhApZumC90KtadgVih5RF+8WNClzUpG1Owb1QQIWuf1Bws08Nuw6cYOVzamRARbI3CbnbPCPOeRbWhvJGG5AmQjaIoGURZZgATD5RKI8V+LbKfTv7QKktHrQTWoxdNtr4lvJbs=; X-YMail-OSG: EEpWSS4VM1khZ.H4x_xGSLX8OwlkqAP5DCdarCn7 Received: from [63.111.224.163] by web52812.mail.re2.yahoo.com via HTTP; Mon, 24 Sep 2007 14:28:46 PDT Date: Mon, 24 Sep 2007 14:28:46 -0700 (PDT) From: "Anthony N. Frasso" Reply-To: anf4@cornell.edu Subject: Re: Setting the Endorsed Directory Location To: Martin Gainty , Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <560370.84448.qm@web52812.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Ugh.... my apologies, Martin. My system had been set to use Java 5 as the default. Inside the buildfile I was using Java 1.4, but when I typed "javac -help" from the command line I saw the -endorseddirs option! In any case... I tried the extdirs option, but that doesn't work either; I'm beginning to think I need to modify the boot classpath... but apparently when I set that option, it *overrides* the boot classpath instead of appending to it. This may not be appropriate for this list, since this becomes more of a javac question, but how does one modify the bootclasspath instead of overriding it? Regards, Anthony Frasso --- Martin Gainty wrote: > Hello Anthony- > > J2SE142 > Usage: javac > where possible options include: > -g Generate all debugging info > -g:none Generate no debugging info > -g:{lines,vars,source} Generate only some debugging info > -nowarn Generate no warnings > -verbose Output messages about what the compiler is doing > -deprecation Output source locations where deprecated APIs > are us > ed > -classpath Specify where to find user class files > -sourcepath Specify where to find input source files > -bootclasspath Override location of bootstrap class files > -extdirs Override location of installed extensions > -d Specify where to place generated class files > -encoding Specify character encoding used by source files > -source Provide source compatibility with specified > release > -target Generate class files for specific VM version > -help Print a synopsis of standard options > > I dont see support for endorsedirs > what happens when you try extdirs instead of endorsedirs? > > M-- > ----- Original Message ----- > From: "Anthony N. Frasso" > To: > Sent: Sunday, September 23, 2007 6:01 PM > Subject: Setting the Endorsed Directory Location > > > > Hello, and thanks for all of your help in advance. > > > > I'm using Ant version 1.6.5 with the JDK v. 1.4.2. I'm attempting to > compile a > > project that uses Xerces v. 2.9.1. In order to compile properly, the XML > API > > included with Xerces needs to override the default XML API that comes with > > JDK.1.4.2. As I understand it, this is done by setting the "endorsed > > directory" location to be the location of the Xerces jar files. > > > > Unfortunately, using the tag inside the task doesn't > seem > > to be accomplishing this. > > > > Here is my target: > > > > > > > > > > > > > > > > > > > > > > Here is the console output: > > > > $ ant > > Buildfile: build.xml > > > > init: > > > > clean: > > [delete] Deleting directory C:\Projects\Project\build > > > > compile: > > [mkdir] Created dir: C:\Projects\Project\build\classes > > [javac] Compiling 97 source files to C:\Projects\Project\build\classes > > [javac] javac: invalid flag: -endorseddirs lib > > [javac] Usage: javac > > [javac] where possible options include: > > [javac] -g Generate all debugging info > > [javac] -g:none Generate no debugging info > > [javac] -g:{lines,vars,source} Generate only some debugging info > > [javac] -nowarn Generate no warnings > > [javac] -verbose Output messages about what the > compiler > > is doing > > [javac] -deprecation Output source locations where > > deprecated > > APIs are used > > [javac] -classpath Specify where to find user class > files > > [javac] -sourcepath Specify where to find input source > > files > > [javac] -bootclasspath Override location of bootstrap > class > > files > > [javac] -extdirs Override location of installed > > extensions > > [javac] -d Specify where to place generated > class > > files > > [javac] -encoding Specify character encoding used by > > source files > > [javac] -source Provide source compatibility with > > specified release > > [javac] -target Generate class files for specific > VM > > version > > [javac] -help Print a synopsis of standard > options > > > > BUILD FAILED > > C:\Projects\Project\build.xml:141: Compile failed; see the compiler error > > output for details. > > > > Total time: 2 seconds > > > > Any ideas on what I'm doing incorrectly? > > > > Regards, > > Anthony Frasso > > > > > > > > > ____________________________________________________________________________ > ________ > > Pinpoint customers who are looking for what you sell. > > http://searchmarketing.yahoo.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > ____________________________________________________________________________________ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org