File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ allprojects {
45
45
def fn = project. rootProject. file(" local.properties" )
46
46
if (! fn. exists()) {
47
47
if (System . env[" ANDROID_SDK" ] != null ) {
48
- def path = System . env[" ANDROID_SDK" ]. replace(Pattern . quote(File . separator), " /" )
48
+ def syspath = System . env[" ANDROID_SDK" ]
49
+ def parts = syspath. split(Pattern . quote(File . separator))
50
+ def path = String . join(" /" , parts)
49
51
fn. withWriterAppend { w ->
50
52
w << " sdk.dir=${ path} \n "
51
53
}
@@ -55,10 +57,7 @@ allprojects {
55
57
" Define ANDROID_SDK so it points to the location of the Android SDK, or create the local.properties file manually\n " +
56
58
" and add the following line to it:\n " +
57
59
" sdk.dir=<path to Android SDK>" )
58
- }
59
-
60
-
61
- // new File( folder, 'file.txt' )
60
+ }
62
61
}
63
62
64
63
You can’t perform that action at this time.
0 commit comments