Skip to content

Commit

Permalink
Merge pull request #62 from anthony-o/fix-for-TRANSREL-134
Browse files Browse the repository at this point in the history
Fixing TRANSREL-134 without breaking functional tests and explaining …
  • Loading branch information
sherzinger authored Oct 5, 2016
2 parents aa10af7 + 76c4206 commit a50c313
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions grails-app/conf/UrlMappings.groovy
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')
}
}

0 comments on commit a50c313

Please sign in to comment.