sbt - managed resource available only for freshly cleaned project -


i created sbt autoplugin generates resources: https://github.com/sphereio/json-schema-inliner/

(thx why doesn't custom resourcegenerator executed upon compile?, fix first problem.)

there test project generates "test/inline/category.schema.json" example.

the test project in git well: https://github.com/sphereio/json-schema-inliner/tree/master/testproject

this generated resource available freshly cleaned project:

cd testproject  ▶ sbt clean run [...] [info] running main url test/category.schema.json: file:/users/yannsimon/projects/json-schema/testproject/target/scala-2.10/classes/test/category.schema.json url test/inline/category.schema.json: file:/users/yannsimon/projects/json-schema/testproject/target/scala-2.10/classes/test/inline/category.schema.json 

when running again, managed resource disappears "testproject/target/scala-2.10/classes/test/inline"

▶ sbt run [...] [info] running main url test/category.schema.json: file:/users/yannsimon/projects/json-schema/testproject/target/scala-2.10/classes/test/category.schema.json url test/inline/category.schema.json: null 

any appreciated.

thanks, yann

answered in sbt issue: https://github.com/sbt/sbt/issues/2168#issuecomment-144133794

the fix simple: https://github.com/sphereio/json-schema-inliner/commit/eeb490189781e93c8c6eb15b504a158ce425b653


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -