Groovy web console

subscribe to the feed Subscribe
to this
site
somethingsomething (via #groovywebconsole)
tweet this snippet Tweet
this
script

somethingsomething

Published 2 months ago by me
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
str="AIM"
      def solution_source="";
      def project_source="";
      def assembly_info_base = "";
      def assembly_info = "";
   def package_config='<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Blaze" version="1.0.0" /> </packages>';
   
      println "Injecting Variables for ${str}"

      switch (str) {
         case "SL-RDS":
   solution_source="/DotNet/BlazeAPI.sln";
         project_source ="https://em95427@cedt-icg-bitbucket.nam.nsroot.net/bitbucket/scm/gal/sl-rds.git";
   break;
         case "RDS":                        
   solution_source="/DotNet/Citi.SLW.RDS.BlazeAPI.sln";
          project_source ="ssh://git@cedt-icg-bitbucketcli.nam.nsroot.net:7999/fsn/referencedataservice.git";
   break;
         case "TLC":
   solution_source="/DotNet/Citi.SLW.TLC.BlazeAPI.sln";
   project_source ="ssh://git@cedt-icg-bitbucketcli.nam.nsroot.net:7999/fsn/tradelifecycle.git";
   break;
         case "AIM": 
   solution_source="/DotNet/Citi.SLW.AIM.InventoryBlazeAPI.sln";
          project_source ="ssh://git@cedt-icg-bitbucketcli.nam.nsroot.net:7999/gal/aim-latest.git";
   package_config='<?xml version="1.0" encoding="utf-8"?> <packages> </packages>';
                 assembly_info_base="/DotNet/Citi.SLW.AIM.InventoryBlazeAPI/Properties/AssemblyInfoBase.cs";
                 assembly_info="/DotNet/Citi.SLW.AIM.InventoryBlazeAPI/Properties/AssemblyInfo.cs";
          break;
         default: println "${str} does not match anything";
      }

	println "${solution_source}";
	println "${project_source}";
println "${assembly_info_base}"

  println "${assembly_info}"