Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 20420 invoked from network); 2 Feb 2005 22:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 22:07:35 -0000 Received: (qmail 36337 invoked by uid 500); 2 Feb 2005 22:07:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 36240 invoked by uid 500); 2 Feb 2005 22:07:27 -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 36203 invoked by uid 99); 2 Feb 2005 22:07:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from brmea-mail-3.Sun.COM (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Feb 2005 14:07:26 -0800 Received: from phys-d3-ha21sca-1 ([129.145.155.163]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j12M7OVu013582 for ; Wed, 2 Feb 2005 15:07:25 -0700 (MST) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IBB009011EARJ@ha21sca-mail1.sfbay.sun.com> (original mail from Douglas.Kramer@Sun.COM) for user@ant.apache.org; Wed, 02 Feb 2005 14:07:24 -0800 (PST) Received: from Sun.COM (vpn-129-150-35-238.Central.Sun.COM [129.150.35.238]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IBB0036N1GBB7@ha21sca-mail1.sfbay.sun.com> for user@ant.apache.org; Wed, 02 Feb 2005 14:07:24 -0800 (PST) Date: Wed, 02 Feb 2005 14:06:26 -0800 From: Douglas Kramer Subject: Re: Ant: pathelement relative? To: user@ant.apache.org Reply-to: Douglas.Kramer@Sun.COM Message-id: <42014EE2.9000904@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6b) Gecko/20031214 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Figured it out from the code. You must use the > location attribute rather than the path attribute with > absolute paths. > > -Matt Sorry, I'm so clumsy. I actually have been using location all along, but typed it wrong in the emails (trying to save a copy-and-paste step). I've been using: I apologize. So I still don't know why it isn't working. I just now corrected it in the email below: I also added the complete target below that email. -Doug -------- Original Message -------- Subject: Re: Ant: pathelement relative? Date: Wed, 02 Feb 2005 13:23:29 -0800 From: Douglas Kramer Reply-To: Douglas.Kramer@Sun.COM To: user@ant.apache.org Thanks, Matt. It does exists: % ls -l /Users/programs/jdk1.5.0/lib/tools.jar -rw-r--r-- 1 dkramer nomad 6772816 Dec 18 17:26 /Users/programs/jdk1.5.0/lib/tools.jar Three other things - I'm running this ant script from within NetBeans (as a freeform script). I don't know if NetBeans would muck with the values. - Also, the script used to work before I moved the target to an imported file (though I might have changed something else). The classpath is part of a debug target that is in a file build-import.xml that is imported by build.xml: -------------- build.xml ------------------ ... ... -------------------------------------------- ----------- build-import.xml --------------- ... ... -------------------------------------------- - Third, relative paths do work: -Doug These are set in a properties file: JAVA_HOME=/Users/programs/jdk1.5.0 WORKDIR=/Users/dkramer/javadoc/mifdoclet/ws/dkramer-1.4b1-1.5b1 run.classpath.javadoc="${JAVA_HOME}/lib/tools.jar" Here's the actual target -- classpath is set twice identically: (I have substantial reasons for calling javadoc by call java on java.Main) -Doug Matt Benson wrote: > --- Douglas Kramer wrote: > > >>SunOS (Solaris 9 on SPARC) >> >> % uname -a >> SunOS dooghome 5.9 Generic_112233-12 sun4u sparc >>SUNW,Sun-Blade-100 >> >>Follow-up question -- how do I provide an absolute >>path > > > Assuming that /Users/programs/jdk1.5.0/lib/tools.jar > exists, you are doing it correctly AFAICT. > > -Matt > > >>-Doug >> >>Matt Benson wrote: >> >>>what OS are you running on? >>> >>>-Matt >>> >>>--- Douglas Kramer wrote: >>> >>> >>> >>>>Does pathelement take only a relative path? >>>> >>>>This page: >>>>http://ant.apache.org/manual/using.html#projects >>>>says: >>>> >>>> >>>> >>>> >>>> >>>> >>>> The location attribute specifies a single file >> >>or >> >>>>directory relative >>>> to the project's base directory (or an absolute >>>>filename), >>>> >>>>I assume "absolute filename" means "abolute path". >> >>>>(What else could >>>>it mean?) >>>> >>>>But when I try an abolute path, it fails: >>>> >>>> >>>> >>>path="/Users/programs/jdk1.5.0/lib/tools.jar" /> >>>> >>>> >>>>With this error: >>>> >>>> dropping >>>> >>> >>> > /Users/dkramer/javadoc/mifdoclet/ws/dkramer-1.4b1-1.5b1/make/"/Users/programs/jdk1.5.0/lib/tools.jar" > >>>>from >>> >>>>path as it doesn't exist >>>> >>>>where basedir is >>>> >>>> >>>> >>> >>> > /Users/dkramer/javadoc/mifdoclet/ws/dkramer-1.4b1-1.5b1/make/ > >>>>Must pathelement be relative? What does "or >>>>absolute filename" mean? >>>> >>>>-Doug >>>> >>>> >>> >>> > --------------------------------------------------------------------- > >>>>To unsubscribe, e-mail: >>>>user-unsubscribe@ant.apache.org >>>>For additional commands, e-mail: >>>>user-help@ant.apache.org >>>> >>>> >>> >>> >>> >>> >>> >>> >>>__________________________________ >>>Do you Yahoo!? >>>Yahoo! Mail - You care about security. So do we. >>>http://promotions.yahoo.com/new_mail >>> >>> >> > --------------------------------------------------------------------- > >>>To unsubscribe, e-mail: >> >>user-unsubscribe@ant.apache.org >> >>>For additional commands, e-mail: >> >>user-help@ant.apache.org >> >> > --------------------------------------------------------------------- > >>To unsubscribe, e-mail: >>user-unsubscribe@ant.apache.org >>For additional commands, e-mail: >>user-help@ant.apache.org >> >> > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Find what you need with new enhanced search. > http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org