From user-return-50048-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu May 05 01:56:19 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 16888 invoked from network); 5 May 2005 01:56:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2005 01:56:18 -0000 Received: (qmail 9846 invoked by uid 500); 5 May 2005 01:58:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9607 invoked by uid 500); 5 May 2005 01:58:15 -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 8951 invoked by uid 99); 5 May 2005 00:46:15 -0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Message-ID: <004a01c5510b$80fcabe0$1b31b843@helen> Reply-To: "Bob Bronson" From: "Bob Bronson" To: Subject: My Classpath Should be Separate From Ant's Date: Wed, 4 May 2005 19:43:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All, I tracked down a problem I'm having to the fact that when Ant compiles my code (using the task), it uses the "Ant execution classpath". What I'm saying is that the same classpath Ant sets up for itself in order to run is also used as the classpath when compiling *my* code. In the task, set the "verbose" attribute to "yes" and you will see tons of Ant-supplied JARs. I don't want to go into too many details except to say that it causes versioning problems when my code is compiled against those JARs and then run against different JARs. I was hoping to tell the task something like, "compile my code against these JARs AND THESE JARS ONLY. Do not consider the JARs needed by Ant as part of my classpath". I hope this is making sense. Is there a way to specify this? Thanks very much. Bob --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org