]> granicus.if.org Git - jq/commitdiff
Don't require java to build gh-pages
authorWilliam Langford <wlangfor@gmail.com>
Fri, 31 Mar 2017 22:48:28 +0000 (18:48 -0400)
committerWilliam Langford <wlangfor@gmail.com>
Fri, 31 Mar 2017 22:48:28 +0000 (18:48 -0400)
docs/Rakefile.website

index 76f91efd8fe2463d95590a0bb92ec539ded84236..efd54ee4c00ff856cf97a8280864a07b64500845 100644 (file)
@@ -30,6 +30,16 @@ end
 
 Liquid::Template.register_filter(ExtraFilters)
 
+begin
+  `java 2>&1`
+rescue
+  class Bonsai::Exporter
+    def self.compress_assets
+      Bonsai.log "java not found! Not compressing javascript or stylesheets"
+    end
+  end
+end
+
 task :build do
   Bonsai.root_dir = Dir.pwd
   Bonsai::Exporter.publish!