Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 90095 invoked from network); 27 Oct 2003 19:29:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Oct 2003 19:29:56 -0000 Received: (qmail 77170 invoked by uid 500); 27 Oct 2003 19:29:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 77139 invoked by uid 500); 27 Oct 2003 19:29:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 77126 invoked from network); 27 Oct 2003 19:29:35 -0000 Received: from unknown (HELO web10805.mail.yahoo.com) (216.136.130.247) by daedalus.apache.org with SMTP; 27 Oct 2003 19:29:35 -0000 Message-ID: <20031027192939.63394.qmail@web10805.mail.yahoo.com> Received: from [208.3.243.2] by web10805.mail.yahoo.com via HTTP; Mon, 27 Oct 2003 11:29:39 PST Date: Mon, 27 Oct 2003 11:29:39 -0800 (PST) From: Erik Price Subject: Re: AW: AW: two diff't JDKs To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --- Antoine_Levy-Lambert wrote: > 1) ant cannot guess where the java 1.1 compiler is. If you want to > compile > with java 1.1, you have to give > ant the full path of the compiler in the executable attribute of the > javac > task > > You might additionally need to set the "compiler" attribute, which > tells ant > how to pass arguments to the compiler. I never noticed that attribute before. Much thanks, that is exactly what I was trying to describe earlier. (Incidentally, Ant says that the "compiler" attribute gets ignored if "fork" is set to true, and in order to use the "executable" attribute, you have to set "fork" to true.) > 2) to avoid out of memory errors, set ANT_OPTS in your environment > export ANT_OPTS="-Xmx128M -Xms64M" for instance > (this only applies if you are starting ant from the command line; if > you are > starting ant from within an IDE I do not know) Indeed, I am trying from the command line but I wonder if there is a way to confirm that this environment variable is being propagated into Ant when I run Ant? I set this environment variable but it doesn't seem to have any effect on the output of a task (which is usually what I use to gauge my Ant settings). And even with the value set to "-Xmx512M", I run out of memory, so I wonder if perhaps it's not getting picked up? Any suggestions? (I'm on Win2K.) Warm regards, Erik ===== -- Copyright. Copy right. The right to copy. That's all it is. Contrary to popular belief, there's no such thing as intellectual "property". __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org