Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 54528 invoked from network); 2 Mar 2011 14:26:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 14:26:12 -0000 Received: (qmail 56106 invoked by uid 500); 2 Mar 2011 14:26:12 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 56056 invoked by uid 500); 2 Mar 2011 14:26:11 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 56047 invoked by uid 99); 2 Mar 2011 14:26:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 14:26:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lally.adam@gmail.com designates 209.85.210.175 as permitted sender) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 14:26:04 +0000 Received: by iyb26 with SMTP id 26so5292827iyb.6 for ; Wed, 02 Mar 2011 06:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ttzNFdaIDc2vIX5konykxy/iENyQysRtrM+2xrF7ju0=; b=Cd3rH2YzBbjSXICLDvhWeJKIi/rE51uzZdMlZF0h3/xCkny1FDxGPa7faxR4zmFBdN BRpzlrup3cpu+axgZjsYzg/NJjxtn1LV0o67aJQovYV/DIZGoG073+cRX3ja5D55tliy ax5WhoXLSw1kN7Ww3xlbdAM2owSwzW9zMGoT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=ndt0uWFFEDBGaBYv7dDKOPDRiyCKDG/+xFqUWPxCm5S+7fAWRxdrRAwzZEtvK3kjei U2No93TQIx5SXz+Gmy2sQvHkXioRpNqhEppF1ABwCdqXAka5+FcNbY2Z3UOUSwpQ8wSy cHmy1yv9JmdnaToz122C77Cgp6tCV1Ji0UPG4= MIME-Version: 1.0 Received: by 10.42.147.202 with SMTP id o10mr217345icv.162.1299075943323; Wed, 02 Mar 2011 06:25:43 -0800 (PST) Sender: lally.adam@gmail.com Received: by 10.42.229.134 with HTTP; Wed, 2 Mar 2011 06:25:43 -0800 (PST) In-Reply-To: <382081982.1715074.1299058166988.JavaMail.root@sz0143a.emeryville.ca.mail.comcast.net> References: <382081982.1715074.1299058166988.JavaMail.root@sz0143a.emeryville.ca.mail.comcast.net> Date: Wed, 2 Mar 2011 09:25:43 -0500 X-Google-Sender-Auth: 7PCg9kEjRKJ9HRW42ayz16ePESI Message-ID: Subject: Re: Referring to file resources From: Adam Lally To: user@uima.apache.org Content-Type: multipart/alternative; boundary=90e6ba21220d235811049d80b0a0 --90e6ba21220d235811049d80b0a0 Content-Type: text/plain; charset=ISO-8859-1 HI Greg, On Wed, Mar 2, 2011 at 4:29 AM, Greg Holmberg wrote: > > X > > > > I've tried a lot of values for X, trying to get it to point to the conf > dir. For example, file:///../conf and file:///$main_root/conf Nothing > works except a full, absolute path: > file:/C:/Users/Greg/workspace/MyAnnotator/conf > > According to the documentation, relative paths are resolved using the classpath and/or the datapath. I usually put my resource files in a directory called "resources" which I add to the classpath. Here's the relevant paragraph of the documentation (section 2.4.1.11): file:com/apache.d.txt is a relative path; relative paths for resources are resolved using the classpath and/or the datapath. For the file protocol, URLs starting with file:/ or file:/// are absolute. -Adam --90e6ba21220d235811049d80b0a0--