Don't store library version in bundled runtime
This commit is contained in:
@@ -69,8 +69,6 @@ public class JSLibraryDescription extends CustomLibraryDescription {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String libraryName = LIBRARY_NAME;
|
|
||||||
|
|
||||||
String copyIntoPath = dialog.getCopyIntoPath();
|
String copyIntoPath = dialog.getCopyIntoPath();
|
||||||
if (copyIntoPath != null) {
|
if (copyIntoPath != null) {
|
||||||
List<File> copyFiles = new ArrayList<File>();
|
List<File> copyFiles = new ArrayList<File>();
|
||||||
@@ -86,12 +84,11 @@ public class JSLibraryDescription extends CustomLibraryDescription {
|
|||||||
|
|
||||||
if (dialog.isCopyLibraryFiles()) {
|
if (dialog.isCopyLibraryFiles()) {
|
||||||
libraryFile = copiedFiles.get(libraryFile);
|
libraryFile = copiedFiles.get(libraryFile);
|
||||||
libraryName = LIBRARY_NAME + "-" + JetPluginUtil.getPluginVersion();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final String libraryFileUrl = VfsUtil.getUrlForLibraryRoot(libraryFile);
|
final String libraryFileUrl = VfsUtil.getUrlForLibraryRoot(libraryFile);
|
||||||
return new NewLibraryConfiguration(libraryName, getDownloadableLibraryType(), new LibraryVersionProperties()) {
|
return new NewLibraryConfiguration(LIBRARY_NAME, getDownloadableLibraryType(), new LibraryVersionProperties()) {
|
||||||
@Override
|
@Override
|
||||||
public void addRoots(@NotNull LibraryEditor editor) {
|
public void addRoots(@NotNull LibraryEditor editor) {
|
||||||
editor.addRoot(libraryFileUrl, OrderRootType.CLASSES);
|
editor.addRoot(libraryFileUrl, OrderRootType.CLASSES);
|
||||||
|
|||||||
@@ -68,20 +68,16 @@ public class JavaRuntimeLibraryDescription extends CustomLibraryDescription {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String libraryName = LIBRARY_NAME;
|
|
||||||
|
|
||||||
String copyIntoPath = dialog.getCopyIntoPath();
|
String copyIntoPath = dialog.getCopyIntoPath();
|
||||||
if (copyIntoPath != null) {
|
if (copyIntoPath != null) {
|
||||||
libraryFile = FileUIUtils.copyWithOverwriteDialog(parentComponent, JAVA_RUNTIME_LIBRARY_CREATION, copyIntoPath, libraryFile);
|
libraryFile = FileUIUtils.copyWithOverwriteDialog(parentComponent, JAVA_RUNTIME_LIBRARY_CREATION, copyIntoPath, libraryFile);
|
||||||
if (libraryFile == null) {
|
if (libraryFile == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
libraryName = LIBRARY_NAME + "-" + JetPluginUtil.getPluginVersion();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final String libraryFileUrl = VfsUtil.getUrlForLibraryRoot(libraryFile);
|
final String libraryFileUrl = VfsUtil.getUrlForLibraryRoot(libraryFile);
|
||||||
return new NewLibraryConfiguration(libraryName, getDownloadableLibraryType(), new LibraryVersionProperties()) {
|
return new NewLibraryConfiguration(LIBRARY_NAME, getDownloadableLibraryType(), new LibraryVersionProperties()) {
|
||||||
@Override
|
@Override
|
||||||
public void addRoots(@NotNull LibraryEditor editor) {
|
public void addRoots(@NotNull LibraryEditor editor) {
|
||||||
editor.addRoot(libraryFileUrl, OrderRootType.CLASSES);
|
editor.addRoot(libraryFileUrl, OrderRootType.CLASSES);
|
||||||
|
|||||||
Reference in New Issue
Block a user