On Friday 26 March 2010 14:06:41, Geronimo M. H. wrote:
> How can I define the map, so that the keys of the map are the values and
> not the names of the defined keys (from above)?

I moved the map creation into a constructor

   def targetSubDir = [:]
   
   SRProjectTypes() {
      targetSubDir[LibraryType]     = 'lib'
      targetSubDir[ProcessType]     = 'ext'
      targetSubDir[ServiceType]     = 'srv'
      targetSubDir[ApplicationType] = 'ext'
      targetSubDir[ThemeType]       = 'ext'
      targetSubDir[StandaloneType]  = '.'
   }

and was very surprised, that it works, although I use the map-style 
constructor.

kind regards

Geronimo

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to