From c459a1f9e9ab4301d965ac104737b4b702990fcf Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Wed, 23 Aug 2017 17:47:38 +0200 Subject: [PATCH] A gant script to build stubs --- python/tools/build/build_stubs.gant | 20 +++++++++++++++++++ .../python/tools/BuildStubsForSdk.kt | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 python/tools/build/build_stubs.gant diff --git a/python/tools/build/build_stubs.gant b/python/tools/build/build_stubs.gant new file mode 100644 index 000000000000..1afaa70508d9 --- /dev/null +++ b/python/tools/build/build_stubs.gant @@ -0,0 +1,20 @@ +import static com.jetbrains.python.tools.BuildStubsForSdkKt.buildStubs + +/* + * Copyright 2000-2017 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +target("default": "Build Python Stubs") { + buildStubs() +} \ No newline at end of file diff --git a/python/tools/src/com/jetbrains/python/tools/BuildStubsForSdk.kt b/python/tools/src/com/jetbrains/python/tools/BuildStubsForSdk.kt index 6c25e9179ffe..2dc4ec499014 100644 --- a/python/tools/src/com/jetbrains/python/tools/BuildStubsForSdk.kt +++ b/python/tools/src/com/jetbrains/python/tools/BuildStubsForSdk.kt @@ -33,6 +33,10 @@ import java.util.* val stubsFileName = SDK_STUBS_STORAGE_NAME fun main(args: Array) { + buildStubs() +} + +fun buildStubs() { val app = IdeaTestApplication.getInstance()