Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 43356 invoked from network); 28 Mar 2005 17:24:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2005 17:24:57 -0000 Received: (qmail 66910 invoked by uid 500); 28 Mar 2005 17:24:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66550 invoked by uid 500); 28 Mar 2005 17:24:51 -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 66528 invoked by uid 99); 28 Mar 2005 17:24:51 -0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_YAHOO_RCVD,HTML_20_30,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30205.mail.mud.yahoo.com (HELO web30205.mail.mud.yahoo.com) (68.142.200.88) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 28 Mar 2005 09:24:50 -0800 Received: (qmail 13053 invoked by uid 60001); 28 Mar 2005 17:24:47 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=xjaT7kcA+zjKgv0txFhSTUyouoQxD05woXcVvro5rNGrz+808dx8io7Jx3E3/B4bwm2OsZ6fGRauz1ZkBwy7O1c01l0Y7eYiGxcc1wPlzmr164Zzd+jmgyUs7wXPdCu7uTFv+kzTw9sfHtTQnZx9Yff8AtEC1ytTtvqycApJR5g= ; Message-ID: <20050328172447.13051.qmail@web30205.mail.mud.yahoo.com> Received: from [198.190.171.222] by web30205.mail.mud.yahoo.com via HTTP; Mon, 28 Mar 2005 09:24:47 PST Date: Mon, 28 Mar 2005 09:24:47 -0800 (PST) From: Ninju Bohra Subject: Re: Forcing the classpath To: Ant Users List In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-999304169-1112030687=:10995" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-999304169-1112030687=:10995 Content-Type: text/plain; charset=us-ascii Possibly you can create a custom task that extends from org.apache.tools.ant.taskdefs.Javac, set the classpath attribute in the constructor and override the .setClasspath() implementation to throw your warning text.. Steve McIntosh wrote: I am attempting to find a way to force the contents of the classpath passed to javac. To put that another way, I would like to remove the ability for a user on my network to pass any classpath to javac other than the one I (the administrator) specify. Ideally, a user could write a build.xml which contains a javac task, and it would work normally, except that if they try to set the classpath property, they would get a warning like "Warning: setting classpath for javac not allowed. Using [my classpath] instead." I know this may sound a little weird, but you can assume that I am operating in an environment where malicious users might attempt to add unapproved or unsafe code to the classpath. Does anyone have any experience with a situation like this? I'd be greatful for any advice. -Steve __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! --0-999304169-1112030687=:10995--