Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2 final
-
Fix Version/s: 1.2.2
-
Component/s: Project infrastructure
-
Labels:None
Description
When calling commands like create-domain-class and create-controller without an explicit package name artefacts should automatically be put inside a default package whose name is the app name (e.g. class name someapp.SomeArtefact ). This way naming conflicts could be avoided without bothering the user with the 'WARNING: You have not specified a package. ...' message and an additionally required y/n input.
This default package sould maybe also be made configurable so I could define my own package name in Config.groovy without having to enter it each time I call one of the create commands.
Activity
Björn Wilmsmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | _GrailsCreateArtifacts.groovy [ 47598 ] |
Graeme Rocher
made changes -
| Fix Version/s | 1.2.2 [ 16198 ] |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | master | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | cli-improvements | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.0.x | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | hibernate4 | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.1.x | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 2.2.x | d9f2b98... | 2010-03-23 04:37:03 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
| Repository | Branch | Revision | Date | Author/Committer | Message |
| Grails Core | 1.2.x | 94b5522... | 2010-03-23 04:37:14 -0700 | Graeme Rocher / Graeme Rocher | fix for |
| Files Changed | |||||
|
MODIFY
scripts/_GrailsCreateArtifacts.groovy
MODIFY scripts/_GrailsPackage.groovy MODIFY scripts/_PluginDependencies.groovy MODIFY src/grails/grails-app/conf/Config.groovy |
Graeme Rocher
made changes -
| Original Estimate | 0 minutes [ 0 ] | |
| Remaining Estimate | 0 minutes [ 0 ] |
Graeme Rocher
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Graeme Rocher
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
Contegix Support
made changes -
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 34116 ] | Grails [ 46488 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 46488 ] | Copy of Grails [ 53945 ] |
Burt Beckwith
made changes -
| Workflow | Copy of Grails [ 53945 ] | Grails [ 61355 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 61355 ] | Grails2 [ 68935 ] |
Burt Beckwith
made changes -
| Workflow | Grails2 [ 68935 ] | jira [ 78914 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 78914 ] | Grails2 [ 86926 ] |
Peter Ledbrook
made changes -
| Workflow | Grails2 [ 86926 ] | jira [ 95274 ] |
Peter Ledbrook
made changes -
| Workflow | jira [ 95274 ] | Grails2 [ 103383 ] |
This patch adds such a feature to all artefact creation scripts.
Corresponding setting in Config.groovy is grails.defaultPackage="somePackage". Still have to figure out how to add this line to Config.groovy automatically upon app creation.