config.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
  3. * If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
  4. * Website: https://developer.kingdee.com/developer?productLineId=29
  5. * Author: liebin.zheng
  6. * Generate Date: 2025-03-01 12:08:14
  7. */
  8. def cosmic_libs_path = System.getProperty('cosmic_libs_path')
  9. def cosmic_home = null
  10. if(cosmic_libs_path == null){
  11. //println "NO 'cosmic_libs_path' property was setted in gradle.properties. "
  12. //println "Try to find the 'cosmic_home' property in gradle.properties."
  13. cosmic_home = System.getProperty('cosmic_home')
  14. }
  15. if(cosmic_home == null){
  16. //println "NO 'cosmic_home' property was setted in gradle.properties. "
  17. //println "Try to find the 'COSMIC_HOME' property in System environment."
  18. cosmic_home = System.getenv('COSMIC_HOME')
  19. }
  20. if(cosmic_home != null){
  21. cosmic_libs_path = "${cosmic_home}/mservice-cosmic/lib"
  22. }
  23. if(cosmic_libs_path == null){
  24. throw new RuntimeException("Neither 'COSMIC_LIBS_PATH' was setted in System environment, nor 'cosmic_libs_path' property was setted in gradle.properties.")
  25. }
  26. println "The 'cosmic_libs_path' is: '${cosmic_libs_path}'."
  27. ext {
  28. path = [
  29. trd : "${cosmic_libs_path}/trd",
  30. bos : "${cosmic_libs_path}/bos",
  31. biz : "${cosmic_libs_path}/biz",
  32. cus : "${cosmic_libs_path}/cus",
  33. zip : "${cosmic_libs_path}/zip",
  34. outputdir : "${cosmic_libs_path}/outputdir",
  35. lib : rootDir.path + "/code/lib"
  36. ]
  37. }