|
From: <caw...@us...> - 2007-07-25 15:08:34
|
Revision: 2838
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2838&view=rev
Author: cawilliams
Date: 2007-07-25 08:08:33 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
fix #5308 - Add new GEM_LIB loadpath variable. Now we can use that to resolve gem locations. This fixes the problem that we had with using RUBY_LIB as the variable - not all users have installs where the gems are a subdirectory of the ruby library folder.
This asks the gem manager to resolve the path to where gems get installed, then looks in there.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/NewWizardMessages.properties
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/NewWizardMessages.properties
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/NewWizardMessages.properties 2007-07-25 14:27:05 UTC (rev 2837)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/NewWizardMessages.properties 2007-07-25 15:08:33 UTC (rev 2838)
@@ -307,11 +307,11 @@
EditVariableEntryDialog_extvardialog_description=Select JAR archive:
EditVariableEntryDialog_filename_error_notvalid=The archive path is not a valid path.
-EditVariableEntryDialog_filename_error_filenotexists=The path ''{0}'' does not point to an existing archive.
+EditVariableEntryDialog_filename_error_filenotexists=The path ''{0}'' does not point to an existing folder.
EditVariableEntryDialog_filename_error_varnotexists=Variable in the archive path does not exist.
EditVariableEntryDialog_filename_error_deviceinpath=The archive must be described by a variable path.
EditVariableEntryDialog_filename_warning_varempty=Archive variable path is empty.
-EditVariableEntryDialog_filename_error_alreadyexists=Classpath entry already exists.
+EditVariableEntryDialog_filename_error_alreadyexists=Loadpath entry already exists.
# ------- VariableBlock-------
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java 2007-07-25 14:27:05 UTC (rev 2837)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/wizards/buildpaths/EditVariableEntryDialog.java 2007-07-25 15:08:33 UTC (rev 2838)
@@ -250,7 +250,7 @@
return status;
}
File file= resolvedPath.toFile();
- if (!file.isFile()) {
+ if (!file.isDirectory()) {
String message= Messages.format(NewWizardMessages.EditVariableEntryDialog_filename_error_filenotexists, resolvedPath.toOSString());
status.setInfo(message);
return status;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|