Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37790

Re: Installing and locating a data file

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Installing and locating a data file
Date Sat, 9 Dec 2017 20:04:58 -0500
Organization Aioe.org NNTP Server
Lines 16
Message-ID <p0i17u$qq0$1@gioia.aioe.org> (permalink)
References <p0i0lh$q9q$1@gioia.aioe.org>
NNTP-Posting-Host PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
X-Notice Filtered by postfilter v. 0.8.2
Content-Language en-US
Xref csiph.com comp.lang.java.programmer:37790

Show key headers only | View raw


On 12/9/2017 7:55 PM, Victor Porton wrote:
> What is the right way to locate (know the path of or file:// URL of) a data
> file (it happens to be in RDF format) which is to be installed together with
> .class files?
> 
> It should work both when my Java application is installed and when I am
> debugging.
> 
> How to make a data file to be installed (along with classes and resources)
> by Gradle? I am new to Gradle.

Access the data file as a resource from classpath.

Arne

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Installing and locating a data file Victor Porton <porton@narod.ru> - 2017-12-10 02:55 +0200
  Re: Installing and locating a data file Arne Vajhøj <arne@vajhoej.dk> - 2017-12-09 20:04 -0500

csiph-web