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


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

Re: Installing and locating a data file

Path csiph.com!news.bbs.geek.nz!.POSTED.agency.bbs.geek.nz!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk> (Arne Vajhøj)
Newsgroups comp.lang.java.programmer
Subject Re: Installing and locating a data file
Date Sat, 09 Dec 2017 20:04:58 +1200
Organization fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet
Message-ID <1644295691@f38.n261.z1.binkp.net> (permalink)
References <2838291087@f38.n261.z1.binkp.net>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Info news.bbs.geek.nz; posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; logging-data="1216"; mail-complaints-to="abuse@news.bbs.geek.nz"
User-Agent VSoup v1.2.9.47Beta [95/NT]
X-Comment-To Victor Porton
X-MailConverter SoupGate-Win32 v1.05
Xref csiph.com comp.lang.java.programmer:37801

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> (Victor Porton) - 2017-12-10 02:55 +1200
  Re: Installing and locating a data file Arne Vajhøj <arne@vajhoej.dk> (Arne Vajhøj) - 2017-12-09 20:04 +1200

csiph-web