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


Groups > comp.lang.java.programmer > #37800 > unrolled thread

Installing and locating a data file

Started byVictor Porton <porton@narod.ru> (Victor Porton)
First post2017-12-10 02:55 +1200
Last post2017-12-09 20:04 +1200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#37800 — Installing and locating a data file

FromVictor Porton <porton@narod.ru> (Victor Porton)
Date2017-12-10 02:55 +1200
SubjectInstalling and locating a data file
Message-ID<2838291087@f38.n261.z1.binkp.net>
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.

--
Victor Porton - http://portonvictor.org

[toc] | [next] | [standalone]


#37801

FromArne Vajhøj <arne@vajhoej.dk> (Arne Vajhøj)
Date2017-12-09 20:04 +1200
Message-ID<1644295691@f38.n261.z1.binkp.net>
In reply to#37800
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web