play2war / play2-war-plugin

WAR Plugin for Play framework 2.x
Apache License 2.0
443 stars 71 forks source link

evolutions get not copied in the explodedJar (evolutions are not executed) #282

Open baerbelK opened 9 years ago

baerbelK commented 9 years ago

When building the war file with the Play2WarKeys.explodedJar := true option. The subfolders (including the evolutions dir) of the conf directory are not in the war file. Therefore the evolution scripts can not be executed.

Building the war file without that option, the evolutions directory get copied into the jar and the evolutions do not get executed, too. I Struggled with this behaviour, because first i couldn't see why the evolutions scripts don't get executed. Question, is this a Bug or planned behaviour?

PS("dirty" fix): I copied the x.sql files in the war/WEB-INF/classes/ (then they get included) folder and invoke the evelutions from code.

I do not have experience with scala and sbt, but maybe i can help a little bit? Same question like:

263

dlecan commented 9 years ago

It's a bug in the plugin. I'll fix it for the next major version.

baerbelK commented 9 years ago

Thanks! Am 13.08.2015 15:09 schrieb "Damien Lecan" notifications@github.com:

It's a bug in the plugin. I'll fix it for the next major version.

— Reply to this email directly or view it on GitHub https://github.com/play2war/play2-war-plugin/issues/282#issuecomment-130663668 .