mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add dedicated target for building intellij-core.zip
This commit is contained in:
@@ -40,6 +40,14 @@ class IdeaCommunityBuilder {
|
||||
BuildTasks.create(buildContext).compileProjectAndTests(["jps-builders"])
|
||||
}
|
||||
|
||||
void buildIntelliJCore() {
|
||||
buildContext.projectBuilder.targetFolder = buildContext.options.outputRootPath
|
||||
BuildTasks.create(buildContext).compileModules(binding["analysisApiModules"] + binding["analysisImplModules"])
|
||||
|
||||
def layouts = binding["includeFile"]("$buildContext.paths.communityHome/build/scripts/layouts.gant")
|
||||
layoutIntelliJCore(layouts)
|
||||
}
|
||||
|
||||
void buildDistJars() {
|
||||
BuildTasks.create(buildContext).buildDistributions()
|
||||
layoutAdditionalArtifacts()
|
||||
@@ -58,6 +66,17 @@ class IdeaCommunityBuilder {
|
||||
|
||||
void layoutAdditionalArtifacts(boolean buildJps = false) {
|
||||
def layouts = binding["includeFile"]("$buildContext.paths.communityHome/build/scripts/layouts.gant")
|
||||
layoutIntelliJCore(layouts)
|
||||
if (buildJps) {
|
||||
buildContext.messages.block("Build standalone JPS") {
|
||||
String jpsArtifactDir = "$buildContext.paths.artifacts/jps"
|
||||
layouts.layoutJps(buildContext.paths.communityHome, jpsArtifactDir, buildContext.fullBuildNumber, {})
|
||||
buildContext.notifyArtifactBuilt(jpsArtifactDir)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void layoutIntelliJCore(layouts) {
|
||||
buildContext.messages.block("Build intellij-core") {
|
||||
String coreArtifactDir = "$buildContext.paths.artifacts/core"
|
||||
buildContext.ant.mkdir(dir: coreArtifactDir)
|
||||
@@ -70,12 +89,5 @@ class IdeaCommunityBuilder {
|
||||
}
|
||||
buildContext.notifyArtifactBuilt(intellijCoreZip)
|
||||
}
|
||||
if (buildJps) {
|
||||
buildContext.messages.block("Build standalone JPS") {
|
||||
String jpsArtifactDir = "$buildContext.paths.artifacts/jps"
|
||||
layouts.layoutJps(buildContext.paths.communityHome, jpsArtifactDir, buildContext.fullBuildNumber, {})
|
||||
buildContext.notifyArtifactBuilt(jpsArtifactDir)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,12 @@ target('build-dist-jars' : 'Target to build jars from locally compiled classes')
|
||||
new IdeaCommunityBuilder(home, binding, options).buildDistJars()
|
||||
}
|
||||
|
||||
target('build-intellij-core' : 'Build intellij-core.zip') {
|
||||
def options = new BuildOptions()
|
||||
options.outputRootPath = out
|
||||
new IdeaCommunityBuilder(home, binding, options).buildIntelliJCore()
|
||||
}
|
||||
|
||||
target('update-from-sources': 'Update locally installed distribution from compiled classes') {
|
||||
def options = new BuildOptions()
|
||||
options.useCompiledClassesFromProjectOutput = true
|
||||
|
||||
@@ -131,6 +131,7 @@ def layout_core(String home, String target) {
|
||||
}
|
||||
|
||||
fileset(dir: "$home/lib") {
|
||||
include(name: "asm-all.jar")
|
||||
include(name: "guava-19.0.jar")
|
||||
include(name: "picocontainer.jar")
|
||||
include(name: "trove4j.jar")
|
||||
|
||||
@@ -69,4 +69,10 @@
|
||||
target="build-dist-jars"
|
||||
deploy="${project.home}/out/deploy"/>
|
||||
</target>
|
||||
|
||||
<target name="build-intellij-core">
|
||||
<run script="${project.home}/build/scripts/dist.gant"
|
||||
target="build-intellij-core"
|
||||
deploy="${project.home}/out/deploy"/>
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user