Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C0B310B38 for ; Sat, 31 Aug 2013 06:00:55 +0000 (UTC) Received: (qmail 30815 invoked by uid 500); 31 Aug 2013 06:00:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 30788 invoked by uid 500); 31 Aug 2013 06:00:52 -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 30780 invoked by uid 99); 31 Aug 2013 06:00:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Aug 2013 06:00:51 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [178.254.33.213] (HELO samaflost.de) (178.254.33.213) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Aug 2013 06:00:46 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 07B62588C554 for ; Sat, 31 Aug 2013 07:59:54 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MRy+EOaAhT-V for ; Sat, 31 Aug 2013 07:59:30 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id D1C21588C555; Sat, 31 Aug 2013 07:59:30 +0200 (CEST) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: Use of XML Catalog with Ant (xslt task) - request for example References: <61C67DC73308BD49B2D4B65072480DBA153FFB57@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> <87ioz51ngw.fsf@v35516.1blu.de> <61C67DC73308BD49B2D4B65072480DBA15400B03@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> <87eh9k78x9.fsf@v35516.1blu.de> <87974F52-7DC4-4588-8EB4-4B865C3456AB@pbw.id.au> <61C67DC73308BD49B2D4B65072480DBA15400BA4@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> <61C67DC73308BD49B2D4B65072480DBA154019AE@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> <61C67DC73308BD49B2D4B65072480DBA154019FB@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> Date: Sat, 31 Aug 2013 07:59:29 +0200 In-Reply-To: <61C67DC73308BD49B2D4B65072480DBA154019FB@DEFTHW99EZ1MSX.ww931.my-it-solutions.net> (Richard Kerry's message of "Fri, 30 Aug 2013 14:37:38 +0000") Message-ID: <87zjrybdtq.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org On 2013-08-30, Kerry, Richard wrote: > I'm still unclear about this. Internally within Ant there seems to be > a Classpath that is some combination of CLASSPATH environment > variable, -cp parameter, , , id="class.path" >. . > Which one can/should I put my resolver's location in ? just defines a PATH like structure. Whether it contributes to loading a class or not completely depends on where it is used - if at all - via refid. defines a global variable but its id doesn't have any special meaning to Ant. Whether you put classes into $CLASSPATH or -cp into -lib or $ANT_HOME/lib or into nested elements influences which classloaders they end up in and what you can do with them. Say jar A needs jar B and you place jar A in $CLASSPATH then it will not find B if it isn't part of $CLASSPATH as well even if you use -lib as $CLASSPATH populates the system classloader and -lib a child of the system classloader that is invisible to classes loaded via the system classloader. Some general hints: * don't use -cp at all. Use the wrapper script shipping with Ant and one of the other options. * don't try to mix where you place your jars that depend on each other. In the case of ant-resolver.jar and xml-resolver.jar I'd recommend to put them both into $ANT_HOME/lib or use -lib (this is equivalent) but never split them. The alternative is to not put them into ANT_HOME/lib but use a nested holding both of them instead. * if you find yourself having to specify -lib all the time, use $ANT_HOME/lib Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org