Discussion: Improve cross building features?
randm-ch opened this issue · comments
In a crossProject
(https://github.com/portable-scala/sbt-crossproject) I have to add the following line in order to enable the i18n
files to be generated successfully:
i18nDirectory := baseDirectory.value / "../shared" / "src/main/i18n"
I'm not sure if it's possible, but it would be nice if this could be the default value in cross projects. Is there a way to detect wether cross building is enabled in a project?
Hmm, not sure. I haven't tested cross projects yet at all - I assumed the baseDirectory
is set to the project for which the plugin is enabled, but I could be wrong.
I'll do some investigation and see where it leads.
Possibly, the crossPaths
Setting from sbt could help.
Edit: Nevermind, looks like this doesn't help in this case.