Revision: 5917
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=5917&view=rev
Author: manningr
Date: 2010-10-12 11:42:00 +0000 (Tue, 12 Oct 2010)
Log Message:
-----------
Added comment. And on second thought, this will be run on Windows as well (in case people are using the squirrel-sql.sh in CYGWIN).
Modified Paths:
--------------
trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/gui/installer/ClasspathFunctionFixer.java
Modified: trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/gui/installer/ClasspathFunctionFixer.java
===================================================================
--- trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/gui/installer/ClasspathFunctionFixer.java 2010-10-12 11:38:26 UTC (rev 5916)
+++ trunk/sql12/app/src/main/java/net/sourceforge/squirrel_sql/client/update/gui/installer/ClasspathFunctionFixer.java 2010-10-12 11:42:00 UTC (rev 5917)
@@ -22,6 +22,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+/**
+ * This script line fixer updates the buildCPFromDir function in squirrel-sql.sh to fix a bug that was
+ * causing the classpath of the update application to prefer the installed jars rather than the ones that
+ * were downloaded.
+ */
public class ClasspathFunctionFixer implements ScriptLineFixer
{
@@ -37,12 +42,7 @@
if (scriptWasAlreadyFixed) {
return line;
}
-
- String osName = System.getProperty("os.name");
- if (osName.toLowerCase().startsWith("windows")) {
- return line;
- }
-
+
if (line.contains("buildCPFromDir()")) {
inFunctionDeclaration = true;
return line;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|