Permalink
Browse files

Log warning instead of throwing exception when props file is not found

  • Loading branch information...
1 parent fed7c9b commit c857bb63ae15fa09bedfebab4e05c3a959a0fc98 @eltimn eltimn committed Aug 6, 2011
Showing with 2 additions and 4 deletions.
  1. +0 −3 project/plugins/project/build.properties
  2. +2 −1 src/main/scala/untyped/ClosureCompilerPlugin.scala
@@ -1,3 +0,0 @@
-#Project properties
-#Fri Jul 01 10:21:52 BST 2011
-plugin.uptodate=true
@@ -108,7 +108,8 @@ trait ClosureCompilerPlugin extends DefaultWebProject with ClosureCompilerConfig
val attributes: Properties = {
val props = new Props(closurePropertiesPath.asFile)
props.properties.getOrElse {
- throw new RuntimeException("Closure Compiler Plugin: No properties found for processing Mustache templates. Looked in " + props.searchPaths)
+ log.warn("Closure Compiler Plugin: No properties found for processing Mustache templates. Looked in " + props.searchPaths)
+ new Properties
}
}

0 comments on commit c857bb6

Please sign in to comment.