From b165bd54c437d135f380f2a085f30cab6b714e8a Mon Sep 17 00:00:00 2001
From: nik
Date: Mon, 10 Apr 2017 14:38:36 +0300
Subject: [PATCH] build scripts: added to gant files
---
build/scripts/tests_in_community.gant | 4 ++++
.../groovy/org/jetbrains/intellij/build/package.html | 3 +++
2 files changed, 7 insertions(+)
diff --git a/build/scripts/tests_in_community.gant b/build/scripts/tests_in_community.gant
index bdbf7c1e5c28..9c751ce28e61 100644
--- a/build/scripts/tests_in_community.gant
+++ b/build/scripts/tests_in_community.gant
@@ -17,6 +17,10 @@ import org.jetbrains.intellij.build.TestingTasks
import org.jetbrains.intellij.build.impl.CompilationContextImpl
import org.jetbrains.jps.idea.IdeaProjectLoader
+/**
+ * Compiles the sources and runs tests from 'community' project. Look at org.jetbrains.intellij.build.TestingOptions to see which options are
+ * supported.
+ */
target("default": "Run tests") {
String home = IdeaProjectLoader.guessHome(this)
String outputDir = "$home/out/tests"
diff --git a/platform/build-scripts/groovy/org/jetbrains/intellij/build/package.html b/platform/build-scripts/groovy/org/jetbrains/intellij/build/package.html
index 1c90a9c31ed0..4a4753bc88d1 100644
--- a/platform/build-scripts/groovy/org/jetbrains/intellij/build/package.html
+++ b/platform/build-scripts/groovy/org/jetbrains/intellij/build/package.html
@@ -10,6 +10,9 @@ If you want to build a product from sources locally, run the corresponding *.gan
system property to build artifacts only for a specific OS, and set {@linkplain org.jetbrains.intellij.build.BuildOptions#buildStepsToSkip 'intellij.build.skip.build.steps'}
system property to skip some long build steps (e.g. scrambling). See {@link org.jetbrains.intellij.build.BuildOptions BuildOptions} class for more options.
+
+ In order to run a gant script without IntelliJ IDEA you can use build/gant.xml Ant file and pass path to the gant script via gant.script property.
+
If you want to add a new module to an existing product, add its name to {@link org.jetbrains.intellij.build.ProductModulesLayout#platformApiModules
platformApiModules/platformImplementationModules}. If the module is part of IntelliJ Platform and needs to be included into all products