Skip to content

Commit bdb4764

Browse files
committed
2 parents 6696c84 + 15f5d4e commit bdb4764

File tree

273 files changed

+1673
-1233
lines changed

Some content is hidden

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

273 files changed

+1673
-1233
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Check Bundle Dependencies Version Range
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
check-dependencies:
12+
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/checkDependencies.yml@master
13+
with:
14+
author: Eclipse Platform Bot <[email protected]>
15+
bundle-folders: ant/*/ debug/*/ resources/bundles/*/ runtime/bundles/*/ team/bundles/*/ ua/*/ update/*/ platform/*/
16+
secrets:
17+
token: ${{ secrets.PLATFORM_BOT_PAT }}

.mvn/jvm.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-XX:+PrintFlagsFinal
2+
-Xmx1500m

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For additional documentation, please refer to the [docs directory](./docs) and [
3838

3939
## Issue Tracking
4040

41-
This project uses Github to track ongoing development and issues. In case you have an issue, please read the information about Eclipse being a [community project](https://github.com/eclipse-platform#community) and bear in mind that this project is almost entirely developed by volunteers. So the contributors may not be able to look into every reported issue. You will also find the information about [how to find and report issues](https://github.com/eclipse-platform#reporting-issues) in repositories of the `eclipse-platform` organization there. Be sure to search for existing issues before you create another one.
41+
This project uses GitHub to track ongoing development and issues. In case you have an issue, please read the information about Eclipse being a [community project](https://github.com/eclipse-platform#community) and bear in mind that this project is almost entirely developed by volunteers. So the contributors may not be able to look into every reported issue. You will also find the information about [how to find and report issues](https://github.com/eclipse-platform#reporting-issues) in repositories of the `eclipse-platform` organization there. Be sure to search for existing issues before you create another one.
4242

4343
In case you want to report an issue that is specific to this `eclipse.platform` repository, you can [find existing issues](https://github.com/eclipse-platform/eclipse.platform/issues) or [create new issues](https://github.com/eclipse-platform/eclipse.platform/issues/new) within this repository.
4444

ant/org.eclipse.ant.launching/buildfiles/buildRemote.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<property name="destdir" value="${temp.folder}/lib/remote.jar.bin"/>
3131
<delete dir="${destdir}"/>
3232
<mkdir dir="${destdir}"/>
33-
<javac source="11" target="11" destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeAntRuntime="yes"
33+
<javac release="11" destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeAntRuntime="yes"
3434
classpath="${basedir}/bin">
3535
<src path="${basedir}/remote"/>
3636
<compilerarg value="-Xlint"/>

ant/org.eclipse.ant.launching/common/org/eclipse/ant/internal/launching/debug/AntDebugState.java

Lines changed: 6 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2005, 2015 IBM Corporation and others.
2+
* Copyright (c) 2005, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -225,7 +225,7 @@ public Location getBreakpointLocation() {
225225
if (considerTargetBreakpoints()) {
226226
Target targetExecuting = getTargetExecuting();
227227
if (targetExecuting != null) {
228-
return getLocation(targetExecuting);
228+
return targetExecuting.getLocation();
229229
}
230230
}
231231
return null;
@@ -320,77 +320,15 @@ public void targetStarted(BuildEvent event) {
320320
setConsiderTargetBreakpoints(true);
321321
}
322322

323-
public int getLineNumber(Location location) {
324-
try { // succeeds with Ant newer than 1.6
325-
return location.getLineNumber();
326-
}
327-
catch (NoSuchMethodError e) {
328-
// Ant before 1.6
329-
String locationString = location.toString();
330-
if (locationString.length() == 0) {
331-
return 0;
332-
}
333-
// filename: lineNumber: ("c:\buildfile.xml: 12: ")
334-
int lastIndex = locationString.lastIndexOf(':');
335-
int index = locationString.lastIndexOf(':', lastIndex - 1);
336-
if (index != -1) {
337-
try {
338-
return Integer.parseInt(locationString.substring(index + 1, lastIndex));
339-
}
340-
catch (NumberFormatException nfe) {
341-
return 0;
342-
}
343-
}
344-
return 0;
345-
}
346-
}
347-
348-
public static Location getLocation(Target target) {
349-
try {// succeeds with Ant newer than 1.6.2
350-
return target.getLocation();
351-
}
352-
catch (NoSuchMethodError e) {
353-
return Location.UNKNOWN_LOCATION;
354-
}
355-
}
356-
357-
public String getFileName(Location location) {
358-
try {// succeeds with Ant newer than 1.6
359-
return location.getFileName();
360-
}
361-
catch (NoSuchMethodError e) {
362-
// Ant before 1.6
363-
String locationString = location.toString();
364-
if (locationString.length() == 0) {
365-
return null;
366-
}
367-
// filename: lineNumber: ("c:\buildfile.xml: 12: ")
368-
int lastIndex = locationString.lastIndexOf(':');
369-
int index = locationString.lastIndexOf(':', lastIndex - 1);
370-
if (index == -1) {
371-
index = lastIndex; // only the filename is known
372-
}
373-
if (index != -1) {
374-
// bug 84403
375-
// if (locationString.startsWith("file:")) {
376-
// return FileUtils.newFileUtils().fromURI(locationString);
377-
// }
378-
// remove file:
379-
return locationString.substring(5, index);
380-
}
381-
return null;
382-
}
383-
}
384-
385323
private void appendToStack(StringBuffer stackRepresentation, String targetName, String taskName, Location location) {
386324
stackRepresentation.append(targetName);
387325
stackRepresentation.append(DebugMessageIds.MESSAGE_DELIMITER);
388326
stackRepresentation.append(taskName);
389327
stackRepresentation.append(DebugMessageIds.MESSAGE_DELIMITER);
390328

391-
stackRepresentation.append(getFileName(location));
329+
stackRepresentation.append(location.getFileName());
392330
stackRepresentation.append(DebugMessageIds.MESSAGE_DELIMITER);
393-
stackRepresentation.append(getLineNumber(location));
331+
stackRepresentation.append(location.getLineNumber());
394332
stackRepresentation.append(DebugMessageIds.MESSAGE_DELIMITER);
395333
}
396334

@@ -412,7 +350,7 @@ public void marshalStack(StringBuffer stackRepresentation) {
412350
}
413351

414352
if (!isAfterTaskEvent()) {
415-
appendToStack(stackRepresentation, targetExecuting.getName(), IAntCoreConstants.EMPTY_STRING, getLocation(targetExecuting));
353+
appendToStack(stackRepresentation, targetExecuting.getName(), IAntCoreConstants.EMPTY_STRING, targetExecuting.getLocation());
416354
}
417355
for (int i = tasks.size() - 1; i >= 0; i--) {
418356
Task task = tasks.get(i);
@@ -450,7 +388,7 @@ private void marshalTargetDependancyStack(StringBuffer stackRepresentation, Targ
450388
for (int i = startIndex; i <= dependancyStackDepth; i++) {
451389
stackTarget = buildSequence.get(i);
452390
if (stackTarget.dependsOn(targetExecuting.getName())) {
453-
appendToStack(stackRepresentation, stackTarget.getName(), IAntCoreConstants.EMPTY_STRING, getLocation(stackTarget));
391+
appendToStack(stackRepresentation, stackTarget.getName(), IAntCoreConstants.EMPTY_STRING, stackTarget.getLocation());
454392
}
455393
}
456394
}
-510 Bytes
Binary file not shown.
-958 Bytes
Binary file not shown.

ant/org.eclipse.ant.launching/loggers/org/eclipse/ant/internal/launching/runtime/logger/AntProcessBuildLogger.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2013 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -28,7 +28,6 @@
2828
import org.eclipse.ant.internal.launching.AntLaunch;
2929
import org.eclipse.ant.internal.launching.AntLaunching;
3030
import org.eclipse.ant.internal.launching.AntLaunchingUtil;
31-
import org.eclipse.ant.internal.launching.debug.AntDebugState;
3231
import org.eclipse.ant.internal.launching.launchConfigurations.AntProcess;
3332
import org.eclipse.ant.internal.launching.launchConfigurations.AntStreamMonitor;
3433
import org.eclipse.ant.internal.launching.launchConfigurations.AntStreamsProxy;
@@ -63,7 +62,7 @@ protected void logMessage(String message, BuildEvent event, int overridePriority
6362

6463
StringBuffer fullMessage = new StringBuffer();
6564
if (!loggingToLogFile()) {
66-
fullMessage.append(System.getProperty("line.separator")); //$NON-NLS-1$
65+
fullMessage.append(System.lineSeparator());
6766
}
6867
if (event.getException() == null && event.getTask() != null && !fEmacsMode) {
6968
adornMessage(event, fullMessage);
@@ -117,7 +116,7 @@ private void adornMessage(BuildEvent event, StringBuffer fullMessage) {
117116
appendAndLink(fullMessage, location, label, offset, line);
118117
line = r.readLine();
119118
while (line != null) {
120-
fullMessage.append(System.getProperty("line.separator")); //$NON-NLS-1$
119+
fullMessage.append(System.lineSeparator());
121120
fullMessage.append(column);
122121
appendAndLink(fullMessage, location, label, offset, line);
123122
line = r.readLine();
@@ -262,7 +261,7 @@ private String getTimeString(long milliseconds) {
262261
result.append(RuntimeMessages.AntProcessBuildLogger__milliseconds_6);
263262
}
264263

265-
result.append(System.getProperty("line.separator")); //$NON-NLS-1$
264+
result.append(System.lineSeparator());
266265
return result.toString();
267266
}
268267

@@ -282,12 +281,12 @@ public void targetStarted(BuildEvent event) {
282281
return;
283282
}
284283
Target target = event.getTarget();
285-
StringBuilder msg = new StringBuilder(System.getProperty("line.separator")); //$NON-NLS-1$
284+
StringBuilder msg = new StringBuilder(System.lineSeparator());
286285
String targetName = target.getName();
287286
msg.append(targetName);
288287
msg.append(':');
289288
String message = msg.toString();
290-
Location location = AntDebugState.getLocation(target);
289+
Location location = target.getLocation();
291290
if (location != null && location != Location.UNKNOWN_LOCATION) {
292291
IRegion region = new Region(0, targetName.length());
293292
AntProcess antProcess = getAntProcess(fProcessId);

ant/org.eclipse.ant.launching/loggers/org/eclipse/ant/internal/launching/runtime/logger/AntProcessDebugBuildLogger.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2004, 2016 IBM Corporation and others.
2+
* Copyright (c) 2004, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -219,8 +219,8 @@ private IBreakpoint breakpointAtLineNumber(Location location) {
219219
if (fBreakpoints == null || location == null || location == Location.UNKNOWN_LOCATION) {
220220
return null;
221221
}
222-
int lineNumber = fDebugState.getLineNumber(location);
223-
File locationFile = new File(fDebugState.getFileName(location));
222+
int lineNumber = location.getLineNumber();
223+
File locationFile = new File(location.getFileName());
224224
for (IBreakpoint bp : fBreakpoints) {
225225
ILineBreakpoint breakpoint = (ILineBreakpoint) bp;
226226
int breakpointLineNumber;

ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/InternalAntRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2023 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
* Portions Copyright 2000-2005 The Apache Software Foundation
44
*
55
* This program and the accompanying materials are made
@@ -328,7 +328,7 @@ private void printTargets(Project project) {
328328
*/
329329
private void printTargets(Project project, List<String> names, List<String> descriptions, String heading, int maxlen) {
330330
// now, start printing the targets and their descriptions
331-
String lSep = System.getProperty("line.separator"); //$NON-NLS-1$
331+
String lSep = System.lineSeparator();
332332

333333
String spaces = " "; //$NON-NLS-1$
334334
while (spaces.length() < maxlen) {
@@ -1164,7 +1164,7 @@ private void printVersion() {
11641164
* Logs a message with the client outlining the usage of <b>Ant</b>.
11651165
*/
11661166
private void printUsage() {
1167-
String lSep = System.getProperty("line.separator"); //$NON-NLS-1$
1167+
String lSep = System.lineSeparator();
11681168
StringBuilder msg = new StringBuilder();
11691169
msg.append("ant ["); //$NON-NLS-1$
11701170
msg.append(RemoteAntMessages.getString("InternalAntRunner.options_13")); //$NON-NLS-1$

0 commit comments

Comments
 (0)