resource for build definition

28 views
Skip to first unread message

Jendo

unread,
Nov 29, 2012, 2:37:32 PM11/29/12
to simple-b...@googlegroups.com
My google-fu is failing me yet again. I am writing some tasks that use the scala-ssh and which under the covers is using logback. Well, the default logging is VERY verbose so I am trying to configure it with an xml file. The question is, where do I put the file? I know that for the project I would put it in src/main/resources. But this is for the build definition.

Eric Bowman

unread,
Nov 29, 2012, 5:24:04 PM11/29/12
to simple-b...@googlegroups.com
Did you try putting it in project/src/main/resources?

Jendo

unread,
Nov 30, 2012, 2:29:38 PM11/30/12
to simple-b...@googlegroups.com
Yes I did, and it doesn't work because thats the resources for the main project. I did however figure out how to do what I wanted. In the documentation here (specifically this section) it describes how to change the interactive prompt to the build definition using "reload plugins". From there I was able to run "show resource-directory" and that gave me what I was looking for. Not surprisingly (looking back at it now) it's in the same relative path as the projects resources folder.... /facepalm

Matthew Neeley

unread,
Dec 12, 2012, 6:46:58 PM12/12/12
to simple-b...@googlegroups.com
Hi Jendo-

I'm having the same problem as you were, but I don't understand the
solution you described. When you say it's in the same relative path
as the projects resources folder, isn't that exactly the
project/src/main/resources folder as Eric suggested? In my case, I
had resources in project/src/main/resources in a build definition that
worked fine with sbt 0.11.3. When I upgraded to 0.12.1 the resource
files can no longer be loaded and my build tasks fail. What's more,
when I look at resource-directories after doing reload plugins like
you described, the project/src/main/resources directory is listed
there, so I'm doubly confused as to why these resources can't be
loaded. Any thoughts?

-Matthew


On Fri, Nov 30, 2012 at 11:29 AM, Jendo <shu...@gmail.com> wrote:
> this
Reply all
Reply to author
Forward
0 new messages