diff --git a/python/build.xml b/python/build.xml index 59d6d526a47c..8b50664072bb 100644 --- a/python/build.xml +++ b/python/build.xml @@ -1,48 +1,10 @@ - - - - - - - - - - + + + + - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/python/build/groovy/PyCharmCommunityInstallersBuildTarget.kt b/python/build/groovy/PyCharmCommunityInstallersBuildTarget.kt new file mode 100644 index 000000000000..b8511c936876 --- /dev/null +++ b/python/build/groovy/PyCharmCommunityInstallersBuildTarget.kt @@ -0,0 +1,18 @@ +import org.jetbrains.intellij.build.* +import org.jetbrains.intellij.build.pycharm.PyCharmCommunityProperties + +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +object PyCharmCommunityInstallersBuildTarget { + @JvmStatic + fun main(args: Array) { + val communityHome = IdeaProjectLoaderUtil.guessCommunityHome(javaClass).toString() + val context = BuildContext.createContext( + communityHome, + communityHome, + PyCharmCommunityProperties(communityHome), + ProprietaryBuildTools.DUMMY, + BuildOptions() + ) + BuildTasks.create(context).buildDistributions() + } +} \ No newline at end of file diff --git a/python/build/groovy/PythonCommunityPluginBuildTarget.kt b/python/build/groovy/PythonCommunityPluginBuildTarget.kt new file mode 100644 index 000000000000..c3d174595b1d --- /dev/null +++ b/python/build/groovy/PythonCommunityPluginBuildTarget.kt @@ -0,0 +1,11 @@ +import org.jetbrains.intellij.build.IdeaProjectLoaderUtil +import org.jetbrains.intellij.build.pycharm.PythonCommunityPluginBuilder + +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +object PythonCommunityPluginBuildTarget { + @JvmStatic + fun main(args: Array) { + val communityHome = IdeaProjectLoaderUtil.guessCommunityHome(javaClass).toString() + PythonCommunityPluginBuilder(communityHome).build() + } +} \ No newline at end of file diff --git a/python/installers.cmd b/python/installers.cmd new file mode 100755 index 000000000000..8e8e42c804e9 --- /dev/null +++ b/python/installers.cmd @@ -0,0 +1,11 @@ +:<<"::CMDLITERAL" +@ECHO OFF +GOTO :CMDSCRIPT +::CMDLITERAL + +set -eux +exec "$(cd "$(dirname "$0")"; pwd)/../platform/jps-bootstrap/jps-bootstrap.sh" "$@" intellij.pycharm.community.build PyCharmCommunityInstallersBuildTarget +:CMDSCRIPT + +call "%~dp0\..\platform\jps-bootstrap\jps-bootstrap.cmd" %* intellij.pycharm.community.build PyCharmCommunityInstallersBuildTarget +EXIT /B %ERRORLEVEL% diff --git a/python/plugin.cmd b/python/plugin.cmd new file mode 100755 index 000000000000..9a027a451a82 --- /dev/null +++ b/python/plugin.cmd @@ -0,0 +1,11 @@ +:<<"::CMDLITERAL" +@ECHO OFF +GOTO :CMDSCRIPT +::CMDLITERAL + +set -eux +exec "$(cd "$(dirname "$0")"; pwd)/../platform/jps-bootstrap/jps-bootstrap.sh" "$@" intellij.pycharm.community.build PythonCommunityPluginBuildTarget +:CMDSCRIPT + +call "%~dp0\..\platform\jps-bootstrap\jps-bootstrap.cmd" %* intellij.pycharm.community.build PythonCommunityPluginBuildTarget +EXIT /B %ERRORLEVEL%