## ./build.gradle

Print this page

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

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

    @@ -501,11 +501,11 @@
     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()
    +            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,11 +520,11 @@
     }

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