Static Content Distribution Plugin

  • Tags : resources, distribution
  • Latest : 0.1
  • Last Updated: 31 May 2013
  • Grails version : 2.0 > *
0 vote
Dependency :
compile ":static-content-distribution:0.1"

Documentation Source Issues

Summary

This plugin hooks into the Distribution phase of the Resources Plugin and distributes the static resource to a specified location.

Installation

grails install-plugin static-content-distribution

Description

v0.1 is not compatiable with the zipped-resources plugin. To use this version of the plugin, you will have to uninstall the zipped-resourced plugin.

Configuration

The plugin is enabled by default, but for it to work, you must configure a directory for the plugin to distribute the content to. If this configuration is not present, the plugin will do nothing. The following configures the static content to be distributed to the /app/distribution directory:

grails.resources.mappers.staticcontent.target = '/app/distribution'

As mentioned the plugin is enabled by default, to disable it configure the following:

grails.resources.mappers.staticcontent.enabled = false

Changelog

  • 0.1 - Initial publication of this plugin.