Invoking copy-resources on compile?

792 views
Skip to first unread message

rxin

unread,
May 15, 2012, 3:56:02 AM5/15/12
to simple-b...@googlegroups.com
My project uses sbt 0.11.1. It is a fairly standard setup, but somehow files in resources are not copied to target directory when compile is invoked. The files are copied when I invoke copy-resources command explicitly.

Is this the default behavior? If yes, is there a way to trigger copy-resources directly in compile?

Thanks a lot.


Arjan Blokzijl

unread,
May 15, 2012, 4:03:17 AM5/15/12
to simple-b...@googlegroups.com
Try 'products' and 'test:products', see also  https://github.com/harrah/xsbt/issues/72 

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/VJ3VKqqUleoJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Reynold Xin

unread,
May 15, 2012, 4:00:00 PM5/15/12
to simple-b...@googlegroups.com
Thanks for the quick reply. This is very helpful.

In another project I am involved with, "compile" automatically copies the resources too. I didn't find anything particular related to resources in the project setting file, but it does use a number of plugins. Are there any well known plugin that makes "compile" automatically trigger "copy-resources"?

--
Reynold Xin
Algorithms, Machines, People Lab | Database Group
Electrical Engineering and Computer Science, UC Berkeley

Jason Zaugg

unread,
May 15, 2012, 5:08:25 PM5/15/12
to simple-b...@googlegroups.com
On Tuesday, May 15, 2012 10:00:00 PM UTC+2, rxin wrote:
Thanks for the quick reply. This is very helpful.

In another project I am involved with, "compile" automatically copies the resources too. I didn't find anything particular related to resources in the project setting file, but it does use a number of plugins. Are there any well known plugin that makes "compile" automatically trigger "copy-resources"?

In a multi-project build, compile of a project will trigger products of an up-stream project, perhaps that's what you observed.

You could use an alias if you want to avoid some typing. (These can also go in a file .sbtrc in the project base directory and/or in your home directory)

alias p=products

-jason


Reply all
Reply to author
Forward
0 new messages