Skip to content

Commit 2985f1f

Browse files
authored
Merge pull request #7673 from apache/delivery
Sync delivery to release230 for 23-rc3
2 parents cc863fd + adf4a0b commit 2985f1f

File tree

46 files changed

+533
-984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+533
-984
lines changed

cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/CDataObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
position = 1400
104104
),
105105
@ActionReference(
106-
path = "Editors/" + MIMETypes.CPP + "/Popup",
106+
path = "Editors/" + MIMETypes.C + "/Popup",
107107
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.WhereUsedAction"),
108108
position = 1400
109109
),
110110
@ActionReference(
111-
path = "Editors/" + MIMETypes.CPP + "/Popup",
111+
path = "Editors/" + MIMETypes.C + "/Popup",
112112
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.RenameAction"),
113113
position = 1500,
114114
separatorAfter = 1550

cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/HDataObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
position = 1400
104104
),
105105
@ActionReference(
106-
path = "Editors/" + MIMETypes.CPP + "/Popup",
106+
path = "Editors/" + MIMETypes.H + "/Popup",
107107
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.WhereUsedAction"),
108108
position = 1400
109109
),
110110
@ActionReference(
111-
path = "Editors/" + MIMETypes.CPP + "/Popup",
111+
path = "Editors/" + MIMETypes.H + "/Popup",
112112
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.RenameAction"),
113113
position = 1500,
114114
separatorAfter = 1550

cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/HPPDataObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
position = 1400
104104
),
105105
@ActionReference(
106-
path = "Editors/" + MIMETypes.CPP + "/Popup",
106+
path = "Editors/" + MIMETypes.HPP + "/Popup",
107107
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.WhereUsedAction"),
108108
position = 1400
109109
),
110110
@ActionReference(
111-
path = "Editors/" + MIMETypes.CPP + "/Popup",
111+
path = "Editors/" + MIMETypes.HPP + "/Popup",
112112
id = @ActionID(category = "Refactoring", id = "org.netbeans.modules.refactoring.api.ui.RenameAction"),
113113
position = 1500,
114114
separatorAfter = 1550

extide/gradle/src/org/netbeans/modules/gradle/api/execute/GradleDistributionManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ public final class GradleDistributionManager {
100100
GradleVersion.version("8.3"), // JDK-20
101101
GradleVersion.version("8.5"), // JDK-21
102102
GradleVersion.version("8.8"), // JDK-22
103+
GradleVersion.version("8.10"),// JDK-23
103104
};
104105

105-
private static final GradleVersion LAST_KNOWN_GRADLE = GradleVersion.version("8.9"); //NOI18N
106+
private static final GradleVersion LAST_KNOWN_GRADLE = GradleVersion.version("8.10"); //NOI18N
106107

107108
final File gradleUserHome;
108109

extide/gradle/src/org/netbeans/modules/gradle/loaders/LegacyProjectLoader.java

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.netbeans.modules.gradle.loaders;
2020

2121
import java.io.BufferedReader;
22+
import java.io.ByteArrayInputStream;
2223
import java.io.File;
2324
import java.io.IOException;
2425
import java.io.InputStream;
@@ -625,21 +626,24 @@ public void run() {
625626

626627
OutputStream logStream = null;
627628
try {
628-
if (LOG.isLoggable(Level.FINER)) {
629-
if (LOG.isLoggable(Level.FINEST)) {
630-
action.addArguments("--debug"); // NOI18N
631-
}
632-
PipedOutputStream pos = new ImmediatePipedOutputStream();
633-
try {
634-
logStream = pos;
635-
DAEMON_LOG_RP.post(new LogDelegate(new PipedInputStream(pos)));
636-
} catch (IOException ex) {
637-
throw new IllegalStateException(ex);
638-
}
639-
action.setStandardOutput(pos);
640-
action.setStandardError(pos);
629+
// no input will be ever given ...
630+
InputStream emptyIs = new ByteArrayInputStream(new byte[0]);
631+
// Github #7606: although the content of the OuptutStream will not be printed unless LOG is >= FINER,
632+
// for some reason gradle daemon blocks on (empty) stdin if the output is not read+processed.
633+
// So attaching the daemon + output stream handler unconditionally.
634+
if (LOG.isLoggable(Level.FINEST)) {
635+
action.addArguments("--debug"); // NOI18N
641636
}
642-
637+
PipedOutputStream pos = new ImmediatePipedOutputStream();
638+
try {
639+
logStream = pos;
640+
DAEMON_LOG_RP.post(new LogDelegate(new PipedInputStream(pos)));
641+
} catch (IOException ex) {
642+
throw new IllegalStateException(ex);
643+
}
644+
action.setStandardOutput(pos);
645+
action.setStandardError(pos);
646+
action.setStandardInput(emptyIs);
643647
return action.run();
644648
} finally {
645649
if (logStream != null) {

extide/libs.gradle/external/binaries-list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
7BCC4423C529A42ECA9D0CE5B5275369EF4DF55A https://repo.gradle.org/artifactory/libs-releases/org/gradle/gradle-tooling-api/8.9/gradle-tooling-api-8.9.jar gradle-tooling-api-8.9.jar
18+
1FC754376876B11AE26D811F8812AA37773660DD https://repo.gradle.org/artifactory/libs-releases/org/gradle/gradle-tooling-api/8.10/gradle-tooling-api-8.10.jar gradle-tooling-api-8.10.jar

extide/libs.gradle/external/gradle-tooling-api-8.9-license.txt renamed to extide/libs.gradle/external/gradle-tooling-api-8.10-license.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Name: Gradle Tooling API
22
Description: Gradle Tooling API
3-
Version: 8.9
4-
Files: gradle-tooling-api-8.9.jar
3+
Version: 8.10
4+
Files: gradle-tooling-api-8.10.jar
55
License: Apache-2.0
66
Origin: Gradle Inc.
77
URL: https://gradle.org/

extide/libs.gradle/nbproject/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ javac.compilerargs=-Xlint -Xlint:-serial
2222
# Sigtest fails to read the classes in the gradle-tooling-api
2323
sigtest.skip.gen=true
2424

25-
release.external/gradle-tooling-api-8.9.jar=modules/gradle/gradle-tooling-api.jar
25+
release.external/gradle-tooling-api-8.10.jar=modules/gradle/gradle-tooling-api.jar

extide/libs.gradle/nbproject/project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</public-packages>
4040
<class-path-extension>
4141
<runtime-relative-path>gradle/gradle-tooling-api.jar</runtime-relative-path>
42-
<binary-origin>external/gradle-tooling-api-8.9.jar</binary-origin>
42+
<binary-origin>external/gradle-tooling-api-8.10.jar</binary-origin>
4343
</class-path-extension>
4444
</data>
4545
</configuration>

0 commit comments

Comments
 (0)