1. Jimmy Yuen Ho Wong
  2. sbt-filter-plugin
  3. Issues
Issue #1 resolved

Subdirs in 'resources' dir crash the plugin

Oleg Galako
created an issue

E.g. i have META-INF/orm.xml in resources, plugin crashesh with the following stack trace:

{{{

!

[info] == copy-resources == java.io.FileNotFoundException: <my project dir>\target\scala_2.8.1\resources\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at scala.io.Source$.fromFile(Source.scala:129) at scala.io.Source$.fromFile(Source.scala:117) at SBTFilterPlugin$class.substitute$1(FilterPlugin.scala:38) at SBTFilterPlugin$class.filterResource(FilterPlugin.scala:64) at RiddleParty.filterResource(RiddleParty.scala:3) at SBTFilterPlugin$$anonfun$filterMainResourcesAction$1$$anonfun$apply$4.apply(FilterPlugin.scala:72) at SBTFilterPlugin$$anonfun$filterMainResourcesAction$1$$anonfun$apply$4.apply(FilterPlugin.scala:72) at scala.Iterator$class.foreach(Iterator.scala:414) at scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45) at scala.Iterable$class.foreach(Iterable.scala:256) at scala.collection.immutable.Set4.foreach(Set4.scala:20) at SBTFilterPlugin$$anonfun$filterMainResourcesAction$1.apply(FilterPlugin.scala:72) at SBTFilterPlugin$$anonfun$filterMainResourcesAction$1.apply(FilterPlugin.scala:70) at sbt.TaskManager$Task.invoke(TaskManager.scala:62) at sbt.impl.RunTask.doRun$1(RunTask.scala:77) at sbt.impl.RunTask.runTask(RunTask.scala:85) at sbt.impl.RunTask.run(RunTask.scala:32) at sbt.impl.RunTask$.apply(RunTask.scala:17) at sbt.impl.RunTask$.apply(RunTask.scala:16) at sbt.Project$class.run(Project.scala:98) at sbt.Project$class.act(Project.scala:129) at sbt.BasicScalaProject.act(DefaultProject.scala:21) at sbt.xMain$$anonfun$8.apply(Main.scala:512) at sbt.xMain$$anonfun$8.apply(Main.scala:512) at sbt.xMain.withAction(Main.scala:545) at sbt.xMain.sbt$xMain$$handleAction(Main.scala:512) at sbt.xMain.handleCommand(Main.scala:502) at sbt.xMain.processAction(Main.scala:441) at sbt.xMain.process$1(Main.scala:257) at sbt.xMain$Continue$1.apply(Main.scala:132) at sbt.xMain.run$1(Main.scala:136) at sbt.xMain.processArguments(Main.scala:266) at sbt.xMain.startProject(Main.scala:107) at sbt.xMain.run(Main.scala:84) at sbt.xMain.run0$1(Main.scala:35) at sbt.xMain.run(Main.scala:42) at xsbt.boot.Launch$.run(Launch.scala:53) at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42) at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:42) at xsbt.boot.Launch$.launch(Launch.scala:57) at xsbt.boot.Launch$.explicit(Launch.scala:42) at xsbt.boot.Launch$.initialized(Launch.scala:38) at xsbt.boot.Launch$.parsed(Launch.scala:31) at xsbt.boot.Launch$.configured(Launch.scala:21) at xsbt.boot.Launch$.apply(Launch.scala:16) at xsbt.boot.Launch$.apply(Launch.scala:13) at xsbt.boot.Boot$.runImpl(Boot.scala:24) at xsbt.boot.Boot$.run(Boot.scala:19) at xsbt.boot.Boot$.main(Boot.scala:15) at xsbt.boot.Boot.main(Boot.scala) [info] == copy-resources ==

}}}