Changeset 944


Ignore:
Timestamp:
Oct 14, 2010, 5:44:21 PM (6 years ago)
Author:
j.saito@…
Message:

Slightly modified Bootstrap for TEST_ENV.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrapStudies.groovy

    r936 r944  
    1212import dbnp.data.Term
    1313import dbnp.data.Ontology
     14import org.codehaus.groovy.grails.commons.*
     15import org.codehaus.groovy.grails.commons.ConfigurationHolder as C
    1416
    1517class BootStrapStudies {
     
    469471                println ".adding assay references to mouse example study..."
    470472
     473                def samURL = GrailsApplication.ENV_TEST ?  'http://localhost:8182/sam' : 'http://sam.nmcdsp.org'
     474
    471475                // Add SAM assay reference
    472476                def clinicalModule = new AssayModule(
    473477                        name: 'SAM module for clinical data',
    474478                        platform: 'clinical measurements',
    475                         url: 'http://sam.nmcdsp.org'
     479                        url: samURL
    476480                ).with { if (!validate()) { errors.each { println it} } else save()}
    477481
     
    480484                        name: 'Metabolomics module',
    481485                        platform: 'GCMS/LCMS',
    482                         url: 'http://nmcdsp.nmcdsp.org'
     486                        url: samURL
    483487                ).with { if (!validate()) { errors.each { println it} } else save()}
    484488
Note: See TracChangeset for help on using the changeset viewer.