~ bsbm-load now monitors .sql files in src/main/resources
authorAlexandre Bertails <alexandre@bertails.org>
Sun, 13 Jun 2010 19:40:10 -0400
changeset 219 5716b5311aa7
parent 218 7a169dfe5368
child 220 8473f50ae920
~ bsbm-load now monitors .sql files in src/main/resources
project/build/BSBMPlugin.scala
--- a/project/build/BSBMPlugin.scala	Sun Jun 13 19:32:44 2010 -0400
+++ b/project/build/BSBMPlugin.scala	Sun Jun 13 19:40:10 2010 -0400
@@ -49,7 +49,10 @@
   /**
    * list all the generated sql scripts
    */
-  def sqlFiles:List[String] = (dataset * "*.sql").getFiles.map{ _.getName }.toList.sort{ _ < _ }
+  def sqlFiles:List[String] = {
+    val sqlfiles = dataset * "*.sql" +++ "src" / "main" / "resources" * "*.sql"
+    sqlfiles.getFiles.map{ _.getName }.toList.sort{ _ < _ }
+  }
 
   /* see http://code.google.com/p/simple-build-tool/wiki/Properties
    * this is where we add a dependency to another property file