samskivert / sbt-pom-util

SBT utility code that extracts metadata from POM files
Other
6 stars 0 forks source link

absolute path to pom #2

Open alexy opened 12 years ago

alexy commented 12 years ago

A simpe workaround for the previous issue is to specify the absolute path to the pom in build.sbt. Then, if this project becomes a child of an enclosing one, the absolute path will apply to it still. How do we do it in SBT so as not to depend on "/home/..."?

samskivert commented 12 years ago

I think you can do pomToSettings(file("pom.xml").getAbsoluteFile). Assuming you're using POMUtil and not ProjectBuilder.

alexy commented 12 years ago

Fails when called from a parent; I guess I need a "base directory of this build.sbt"... :)

samskivert commented 12 years ago

Yeah, good luck spelunking in the SBT source to figure that one out.