开发者

What is the syntax for the unmanagedSources parameter in SBT for windows?

Firstly my unmanaged source is not in the standard structure. It is:

开发者_JAVA百科src/com/domain/...

instead of

src/main/java/com/domain/...

Would this cause any problems?

Secondly I have tried a few options including

unmanagedSources in Compile += file("c:/codebase/src")
unmanagedSources in Compile += file("/codebase/src")
unmanagedSources in Compile += file("c:\\codebase\\src")

For all the above I get 'could not be found' errors


It should not cause problems, as long as you configure it correctly. You could try something like the following in your project settings:


unmanagedSourceDirectories in Compile <+= baseDirectory{ _ / "src"}

baseDirectory, as the name implies, is the base directory of your project, see the Keys class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜