You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/04/18 06:25:02 UTC
[GitHub] JaroslavTulach closed pull request #503: #270005: increase the
default indexing sleep delay during builds to 15s, and make it configurable
JaroslavTulach closed pull request #503: #270005: increase the default indexing sleep delay during builds to 15s, and make it configurable
URL: https://github.com/apache/incubator-netbeans/pull/503
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/maven/arch.xml b/maven/arch.xml
index e053cb82d..cefab0a3c 100644
--- a/maven/arch.xml
+++ b/maven/arch.xml
@@ -163,6 +163,12 @@
section in <code>pom.xml</code> to <em>suppress</em> the JDK libraries.
</api>
</p>
+ <p>
+ <api category="devel" group="systemproperty" name="org.netbeans.modules.maven.execute.AbstractOutputHandler.SLEEP_DELAY" type="export">
+ A system property can be used to change the default indexing sleep delay during builds,
+ in case reparsing starts too soon (wasting CPU) or too late (impeding editing).
+ </api>
+ </p>
</answer>
<answer id="resources-file">
diff --git a/maven/src/org/netbeans/modules/maven/execute/AbstractOutputHandler.java b/maven/src/org/netbeans/modules/maven/execute/AbstractOutputHandler.java
index 5ee9660cd..f5ecb64df 100644
--- a/maven/src/org/netbeans/modules/maven/execute/AbstractOutputHandler.java
+++ b/maven/src/org/netbeans/modules/maven/execute/AbstractOutputHandler.java
@@ -66,7 +66,7 @@
private IndexingBridge.Lock protectedMode; // #211005
private final Object protectedModeLock = new Object();
private RequestProcessor.Task sleepTask;
- private static final int SLEEP_DELAY = 5000;
+ private static final int SLEEP_DELAY = Integer.getInteger(AbstractOutputHandler.class.getName() + ".SLEEP_DELAY", 15000); // #270005
protected AbstractOutputHandler(Project proj, final ProgressHandle hand, RunConfig config, OutputVisitor visitor) {
processors = new HashMap<String, Set<OutputProcessor>>();
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists