Yogesh Sajanikar
Yogesh Sajanikar

Reputation: 1116

Adding data files to SBT project

I would like to add a data file or a configuration file along with my application (such as sample.conf). This file should be available to user so that he/she can edit the sample configuration to further customize the application.

How can I add such files to my project such that

  1. This file becomes part of distributable, and
  2. How can I link it in my source documentation, so that its purpose can be doucmented, and
  3. This is file is goes into a special directory (such as conf)

Or is there any such predefined task available.

Upvotes: 0

Views: 207

Answers (2)

Brian Clapper
Brian Clapper

Reputation: 26230

SBT Native Packager provides support for doing what you want, though you'll have to dig through the docs a bit. The universal packager is probably the best approach for you.

http://www.scala-sbt.org/sbt-native-packager/

Upvotes: 1

Naveen Gattu
Naveen Gattu

Reputation: 1

I think what you're looking for is the typesafehub/config https://github.com/typesafehub/config project. It uses the HOCON format (Human Optimized Config Object Notation).

Upvotes: 0

Related Questions