Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 50917 invoked from network); 9 Jul 2009 21:53:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 21:53:27 -0000 Received: (qmail 30931 invoked by uid 500); 9 Jul 2009 21:53:36 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 30883 invoked by uid 500); 9 Jul 2009 21:53:36 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 30872 invoked by uid 99); 9 Jul 2009 21:53:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:53:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.218.221 as permitted sender) Received: from [209.85.218.221] (HELO mail-bw0-f221.google.com) (209.85.218.221) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 21:53:26 +0000 Received: by bwz21 with SMTP id 21so749119bwz.0 for ; Thu, 09 Jul 2009 14:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=RpaLKpYQsis4UMyPNFYUbxdI5bVZHR6/xZXCYFhbm98=; b=Uju7bT04tY7W0iAyGw/5FpW6ci24cA6m+mipUXgSUbF3ABL+e0WNN0cRpaWyAspDz2 7dq2CQIgnr00OKd2NAXuWT+CJR7AUZEX3HtB2UEVcwFYhwtwQCajNUutRzAbDgo11wBL WSmAvUMJ2A4gv4JUDT0G4VOZ1WW1BSBMVzZko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KN1fSiH2DV00Bj82HEzSm8RTMfaewp4Uf4F+N72QeZMWrsq3j3Zo/3U9N8tfXaciLU oPE5yzVzUpOsOBTihfWRXFIzTFgjr9HwsE/1UVsBCQ/VkdvYcYC8VB3duWDB8MysrR77 JGn0VaKW5uzXfRzHnDD3B0LfDKMDbA4RzrAAM= MIME-Version: 1.0 Received: by 10.103.176.20 with SMTP id d20mr709414mup.27.1247176385018; Thu, 09 Jul 2009 14:53:05 -0700 (PDT) In-Reply-To: <20090709090652.56A2B2388877@eris.apache.org> References: <20090709090652.56A2B2388877@eris.apache.org> Date: Fri, 10 Jul 2009 01:53:04 +0400 Message-ID: <427155180907091453h5bd4dccdse813a01416a5c9cd@mail.gmail.com> Subject: Re: svn commit: r792462 - /tomcat/current/tc5.5.x/STATUS.txt From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/7/9 : > Author: markt > Date: Thu Jul =A09 09:06:51 2009 > New Revision: 792462 > > URL: http://svn.apache.org/viewvc?rev=3D792462&view=3Drev > Log: > Suggest alternative approach > > Modified: > =A0 =A0tomcat/current/tc5.5.x/STATUS.txt > > =A0 =A0 (well, even now one can set CLASSPATH there, or add tools.jar to > =A0 =A0 common.loader of catalina.properties - haven't tried the latter) > =A0 =A0 Though we already have a switch that controlls configuration: "-s= ecurity". > + =A0markt: > + =A0 =A0How about an alternative approach that removes the javac command= completely > + =A0 =A0rather than trying to fix it? As has been pointed out, setenv ca= n be used to > + =A0 =A0achieve the same end and is more consistent with how we do thing= s now, > Yes. I would like javac there to be removed completely. I would like adding tools.jar to the classpath to be also completely removed. How others think about it? The docs can then be made consistent with implementation. The way how tools.jar is added under Unix now (in setclasspath.sh) is definitely odd (both 5.5 and 6.0): if [ "$1" =3D "debug" -o "$1" =3D "javac" ] ; then CLASSPATH=3D"$JAVA_HOME"/lib/tools.jar fi There is no need to add tools.jar when running with jdb. Jdb does not need it. Thus actually we can count it as never added, on Unix. Also, if CLASSPATH was set by user, the above code completely redefines it, and that is wrong. In Windows bat files the tools.jar is always added (in 5.5; with existence check in 6.0), but I won't mind removing it from there, for consistency, and as hardly anyone uses them in production. The exe installer on Windows (I tried the 5.5 one) does not add tools.jar to the classpath. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org