Skip to Content.
Sympa Menu

grouper-dev - grouper problem with Eclipse & patch for grouper-ui

Subject: Grouper Developers Forum

List archive

grouper problem with Eclipse & patch for grouper-ui


Chronological Thread 
  • From: Jaakko Linnosaari <>
  • To:
  • Subject: grouper problem with Eclipse & patch for grouper-ui
  • Date: Thu, 13 Jul 2006 14:20:26 +0300 (EEST)

Hello.

Problem #1 (grouper):

When checking out grouper from cvs, the project contains two files that are Eclipse specific, namely '.project' and '.classpath'.

'.project' disables 'Check out as a project configured using New Project wizard' in 'Projects from CVS' wizard.

'.classpath' contains wrong information (references java/[src|lib]).

My suggestion is to delete both files, at least from HEAD.


Problem #2 (grouper-ui):

populateDebugPrefs.do assumes Windows-style separator character in paths and breaks on unix. Fix is trivial and a patch is attached.


--

|| Helsinki University of Technology
http://www.tkk.fi/cc/staff/jlinnosa/ || Computing CentreIndex:
java/src/edu/internet2/middleware/grouper/ui/actions/LowLevelGrouperCapableAction.java
===================================================================
RCS file:
/home/cvs/i2mi/grouper-ui/java/src/edu/internet2/middleware/grouper/ui/actions/LowLevelGrouperCapableAction.java,v
retrieving revision 1.3
diff -r1.3 LowLevelGrouperCapableAction.java
265c265,266
< String prefsFile=x.substring(0,x.lastIndexOf("\\")) +
"\\WEB-INF\\debugPrefs.obj";
---
> String s = File.separator;
> String prefsFile=x.substring(0,x.lastIndexOf(s)) + s +
> "WEB-INF" + s + "debugPrefs.obj";
Index:
java/src/edu/internet2/middleware/grouper/ui/actions/SaveDebugPrefsAction.java
===================================================================
RCS file:
/home/cvs/i2mi/grouper-ui/java/src/edu/internet2/middleware/grouper/ui/actions/SaveDebugPrefsAction.java,v
retrieving revision 1.2
diff -r1.2 SaveDebugPrefsAction.java
19a20
> import java.io.File;
122c123,124
< String prefsFile=x.substring(0,x.lastIndexOf("\\")) +
"\\WEB-INF\\debugPrefs.obj";
---
> String s = File.separator;
> String prefsFile=x.substring(0,x.lastIndexOf(s)) + s +
> "WEB-INF" + s + "debugPrefs.obj";



Archive powered by MHonArc 2.6.16.

Top of Page