@@ -133,30 +133,6 @@ def find_sources(path):
133
133
return glob .glob (path + '/**/*.kt' , recursive = True ) + glob .glob (path + '/**/*.java' , recursive = True )
134
134
135
135
136
- def get_kotlin_lib_folder ():
137
- x = run_process ([kotlinc , '-version' , '-verbose' ], capture_output = True )
138
- output = x .stderr .decode (encoding = 'UTF-8' , errors = 'strict' )
139
- m = re .match (
140
- r'.*\nlogging: using Kotlin home directory ([^\n]+)\n.*' , output )
141
- if m is None :
142
- raise Exception ('Cannot determine kotlinc home directory' )
143
- kotlin_home = m .group (1 )
144
- print ("Kotlin home directory: " + kotlin_home )
145
- return kotlin_home + '/lib'
146
-
147
-
148
- def get_gradle_lib_folder ():
149
- x = run_process (['gradle' , 'getHomeDir' ], capture_output = True )
150
- output = x .stdout .decode (encoding = 'UTF-8' , errors = 'strict' )
151
- m = re .search (r'(?m)^> Task :getHomeDir\n([^\n]+)$' , output )
152
- if m is None :
153
- print ("gradle getHomeDir output:\n " + output , file = sys .stderr )
154
- raise Exception ('Cannot determine gradle home directory' )
155
- gradle_home = m .group (1 )
156
- print ("Gradle home directory: " + gradle_home )
157
- return gradle_home + '/lib'
158
-
159
-
160
136
def find_jar (path , base ):
161
137
fn = path + '/' + base + '.jar'
162
138
if not os .path .isfile (fn ):
0 commit comments