(Quick Reference)

optimus-all

Purpose

The optimus-all command generates all the artifacts managed by the Optimus Plugin, such as config files, unit tests, services, controllers, logs and views.

Examples

grails optimus-all Person
grails optimus-all "*"

Description

Given at least one domain class, this command creates the following artifacts:

  • Customized configuration
  • Unit tests for all the constraints
  • Services
  • Unit tests for services
  • Controllers
  • Unit tests for controllers
  • Views and templates for AJAX and Responsive Web Design

Usage:

grails optimus-all [domainClass]

Arguments:

  • domainClass - Either a domain class name (case-sensitive) without its package or a wildcard (*). If you specify the wildcard the artifacts will be generated for all domain classes.