-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from anthony-o/fix-for-TRANSREL-134
Fixing TRANSREL-134 without breaking functional tests and explaining …
- Loading branch information
Showing
1 changed file
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
class UrlMappings { | ||
/* This empty mappings file seems to be required when inlining core-db | ||
* plugins. Otherwise we get: | ||
* Class not found loading Grails application: UrlMappings (https://travis-ci.org/transmart/SmartR/builds/163942859) | ||
* Inspired by https://github.com/transmart/transmart-rest-api/blob/v1.2.4/grails-app/conf/UrlMappings.groovy */ | ||
static mappings = { } | ||
/** | ||
* This mappings file seems to be required when inlining core-db plugins | ||
* (as stated here https://github.com/transmart/transmart-rest-api/blob/v1.2.4/grails-app/conf/UrlMappings.groovy). | ||
* Without it, we get "Class not found loading Grails application: UrlMappings" | ||
* (https://travis-ci.org/transmart/SmartR/builds/163942859) | ||
*/ | ||
|
||
static mappings = { | ||
// Following block seems to be required by functional tests (BaseAPITestCase.groovy) | ||
"/$controller/$action?/$id?(.${format})?"{ | ||
constraints { | ||
// apply constraints here | ||
} | ||
} | ||
|
||
// Removed the two following lines in order to not interfere with transmartApp url mappings - TRANSREL-134 | ||
//"/"(view:"/index") | ||
//"500"(view:'/error') | ||
} | ||
} |