开发者

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

开发者 https://www.devze.com 2023-04-06 12:29 出处:网络
Firstly my unmanaged source is not in the standard structure. It is: 开发者_JAVA百科src/com/domain/...

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

精彩评论

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