Skip to content

Commit

Permalink
Merge Branch Freeze into Develop
Browse files Browse the repository at this point in the history
  • Loading branch information
azoitl authored Jan 9, 2025
2 parents 472eba0 + a6cfce7 commit 7e46e08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
*******************************************************************************/
package org.eclipse.fordiac.ide.library;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URISyntaxException;
import java.nio.file.DirectoryStream.Filter;
import java.nio.file.FileSystems;
import java.nio.file.Files;
Expand Down Expand Up @@ -299,6 +299,11 @@ public java.net.URI extractLibrary(final Path path, final IProject project, fina
}
checkLibChanges();

// strip potential trailing slash
if (folderName.endsWith("/")) { //$NON-NLS-1$
folderName = folderName.substring(0, folderName.length() - 1);
}

final java.net.URI importURI = URIUtil.append(workspaceLibraryURI, folderName);

if (autoImport && project != null) {
Expand Down Expand Up @@ -1125,12 +1130,10 @@ public void addLibraryChangeListener() {
}

private static Path getStandardLibPath() {
try {
final Path fordiacInstallPath = Paths.get(Platform.getInstallLocation().getURL().toURI());
return fordiacInstallPath.resolve(TypeLibraryTags.TYPE_LIBRARY);
} catch (final URISyntaxException e) {
FordiacLogHelper.logError("Cannot resolve system lib path!", e); //$NON-NLS-1$
}
return null;
// go why a java file to handle any special characters in the installation
// location URL
final File installLocationFile = new File(Platform.getInstallLocation().getURL().getPath());
final Path fordiacInstallPath = installLocationFile.toPath();
return fordiacInstallPath.resolve(TypeLibraryTags.TYPE_LIBRARY);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Declipse.e4.inject.javax.warning=false
-Dorg.slf4j.simpleLogger.defaultLogLevel=off
-Dswt.autoScale=exact
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.dataAreaRequiresExplicitInit=true
Expand Down

0 comments on commit 7e46e08

Please sign in to comment.