## ./build.gradle

Print this page

    rev 4839 : RT-2529: Locale specific runtime errors (Turkish)

    *** 157,167 ****
              return
          }
          COMPILE_TARGETS.split(",").each { target ->
              CompileTarget ct = new CompileTarget();
              ct.name = target;
    !         ct.upper = target.trim().toUpperCase()
              ct.capital = target.trim().capitalize()
              c(ct)
          }
      }

    --- 157,167 ----
              return
          }
          COMPILE_TARGETS.split(",").each { target ->
              CompileTarget ct = new CompileTarget();
              ct.name = target;
    !         ct.upper = target.trim().toUpperCase(Locale.ROOT)
              ct.capital = target.trim().capitalize()
              c(ct)
          }
      }

    *** 501,511 ****
      if (COMPILE_TARGETS == "all") {
          def tmp = []
          File buildSrcDir = file("buildSrc")
          buildSrcDir.listFiles().each { File f ->
              if (f.isFile() && f.name.endsWith(".gradle") && !f.name.equals("build.gradle")) {
    !             def target = f.name.substring(0, f.name.lastIndexOf('.gradle')).toUpperCase()
                  apply from: f
                  if (project.ext["${target}"].canBuild) {
                      tmp.add(target)
                  }
              }
    --- 501,511 ----
      if (COMPILE_TARGETS == "all") {
          def tmp = []
          File buildSrcDir = file("buildSrc")
          buildSrcDir.listFiles().each { File f ->
              if (f.isFile() && f.name.endsWith(".gradle") && !f.name.equals("build.gradle")) {
    !             def target = f.name.substring(0, f.name.lastIndexOf('.gradle')).toUpperCase(Locale.ROOT)
                  apply from: f
                  if (project.ext["${target}"].canBuild) {
                      tmp.add(target)
                  }
              }
    *** 520,530 ****
      }

      if (COMPILE_TARGETS != "") {
          def tmp = []
          COMPILE_TARGETS.split(",").each {target ->
    !         if (project.ext["${target.toUpperCase()}"].canBuild) {
                  tmp.add(target)
              }
          }
          COMPILE_TARGETS = tmp.collect { "${it.toLowerCase()}"}.join(",")
      }
    --- 520,530 ----
      }

      if (COMPILE_TARGETS != "") {
          def tmp = []
          COMPILE_TARGETS.split(",").each {target ->
    !         if (project.ext["${target.toUpperCase(Locale.ROOT)}"].canBuild) {
                  tmp.add(target)
              }
          }
          COMPILE_TARGETS = tmp.collect { "${it.toLowerCase()}"}.join(",")
      }