[SourceJammer-devel] RE: SJ Eclipse plugin
Brought to you by:
robertmacgrogan
From: Gupta, K. <kar...@tr...> - 2005-12-06 20:30:36
|
Well, I've tried quite a few things, but couldn't get the plugin to work = on my installation. The InvocationException is generated at: AbstractFileAction.java -- spawnProcess() ---- ps.busyCursorWhile(process) From what I read, busyCursorWhile(process) is supposed to simly call the = run method of a=20 IRunnableWithProgress process. In this case, the processes are in the package = org.sourcejammer.extension.sjeclipse.process. Every process must be passed a IProgressMonitor which I don't see = instantiated anywhere. So, I'm guessing the InvocationException has something to do with that. Instead of using spawnProcess to execute the runnables, I tried to use = IRunnableContext and ProgressMonitorDialog but I am still getting the same Exception. Any ideas??? Because of this exception, none of the SourceJammer plugin operations = work. Is anyone else facing this problem?? If not, then I think I can check out my platform instead of messing with = the plugin sourcecode. Thanks, Karan -----Original Message----- From: Robert MacGrogan [mailto:rob...@ya...] Sent: Monday, December 05, 2005 7:33 PM To: Gupta, Karan; SourceJammer Users Subject: RE: SJ Eclipse plugin Hi agaih. I couldn't be happier to have you fix and or enhance (dare I hope?) the = SJ Eclipse plugin. I don't know what would cause InvocationTargetException. A full stacktrace would = be helpful, if it would be possible to get that somehow. I have not tested the plugin under 3.1.1, but I'm running it under 3.1.0 = with no problems. Would they really change the plugin API in a x.x.1 release is such a way as to = break plugins? Maybe. I don't really have time right now to dig into this, but I'd love to = have you see if you can fix it. Any other enhancements you'd like to make would be welcome. I'd be = happy to give you access to the archive and to set you up as an admin on the sjextensions project if = you want to do releases. I looked at the code and I don't think that the "/" relative path should = be a problem after all. It would be nice if I had set up the plugin to use log4j or something to = make debugging easier. Live and learn. One thing you could try is to run the plugin project in Ecliplse in = debug mode to see if that helps you narrow down the source of the problem. Keep me posted and let me know how I can help. --Rob PS: You might want to subscribe to either the users or devel lists so = you can post your messages there. --- "Gupta, Karan" <kar...@tr...> wrote: > Hi Rob, >=20 > I just spoke to my boss about the plugin you've built and he's = expressed an interest in=20 > making a contribution to your project. So I guess thats good news = isn't it?? He knows how much > we would benefit from this plugin :-) >=20 > Well, I've been working on the code and I don't understand the reason = for the > InvocationException. > Is this a bug? Or is it because I'm using Eclipse 3.1.1? > Any ideas? > I sent you another email just before this explaining what I was able = to discover. > We really need this thing to working, coz we cannot change our = directory structure. > Plus fixing this would only make the plugin mor flexible. > If I'm able to do it, I'll send you whatever changes I've made so that = they can be put in. > But as of now, I think I'll not be able to proceed on this (within = time and reason) without your > help. > Any help from you would be really great. >=20 > Thanks a lot, > Karan >=20 >=20 > -----Original Message----- > From: Robert MacGrogan [mailto:rob...@ya...] > Sent: Monday, December 05, 2005 2:37 PM > To: Gupta, Karan; SourceJammer Users > Subject: Re: SJ Eclipse plugin >=20 >=20 > Hi, Karan. >=20 > So the root of your SJ archive is also the root of your Eclipse = project? In that case, "/" seems > logical, but this is not something I tested, so I'm not sure it will = work. >=20 > Would it be possible for you to move all of your SJ files to a new top = level folder? Something > like dev or project or anything really. You could do this just for = testing purposes to at least > verify what the problem is. >=20 > Then you'd set up the relative path to be "/dev/" >=20 > As for compiling, there should be a build.properties and build.xml in = the SJ eclipse source tree > here: >=20 > = http://dev.sourcejammer.org/BrowseArchive?Command=3Dopen_archive&archive_= name=3DSourceJammer >=20 > You need to browse down into extensions/sjeclipse. >=20 > --Rob >=20 >=20 >=20 > --- "Gupta, Karan" <kar...@tr...> wrote: >=20 > > Hi Rob, > > =20 > > Sorry I am sending this to your personal email account. > > But this issue has me totally dumbfounded (now we know where that = word can be used :-). > > And I didn't know where to turn to for help. > > I've been going thru the sourcecode, and seems like I'm the first = guy to post something about > > the plugin in the forums. > > =20 > > Anyway, so I downloaded the SJ Eclipse plugin (great idea, btw) and = am trying to get it to > work > > for my archive and project. > > Here's the scenario: > > =20 > > Eclipse project layout: > > I'm using Eclipse 3.1.1. > > C:\EclipseWSs\the_workspace > > C:\EclipseWSs\the_workspace\the_project > > C:\EclipseWSs\the_workspace\the_project\src > > C:\EclipseWSs\the_workspace\the_project\properties > > C:\EclipseWSs\the_workspace\the_project\docs > > C:\EclipseWSs\the_workspace\the_project\DB > > C:\EclipseWSs\the_workspace\the_project\libCompile > > C:\EclipseWSs\the_workspace\the_project\libRuntime > > ....... > > and so on.. > > =20 > > Now my archive completely follows the tree I have in eclipse. > > That means, ALL the directories and files under directory = "the_project" are in my archive (not > > just src or docs etc). > > =20 > > Archive setup: > > Archive name: the_project > > - the_project > > --- src > > --- properties > > --- docs > > --- DB > > --- libCompile > > --- libRuntime > > ... and so on... > > =20 > > I have set the SJ Eclipse properties in Project Properties: > > Server URL: = http://fmms-internal1:8090/sourcejammer/servlet/rpcrouter > > Archive name: the_project > > Relative Path: this is where the problem is. > > I have tried everythign I could think of: "/", "/../", "/docs/../", = "the_project/", > > "/the_project", "/the_project/", "/ etc...but nothing seems to work. > > I looked through the source code and found this guy: > > private static String buildSJPathFromIPath(IPath path, = SJEclipseProjectProperties props){ > > //Build the full SJ path. > > StringBuffer str =3D new StringBuffer(); > > str.append(props.getRelativePath()); > > str.append(path.toString()); > > String sjPath =3D str.toString(); > > System.out.println(sjPath); > > return sjPath; > > } > > =20 > > "The Relative Path setting must be the path in your SourceJammer = archive to the SJ folder that > > corresponds to the root of your Eclipse directory.=20 > > This path must begin and end with a forward slash (/) character." > > In my SJ tree the SJ folder which is the root of my Eclipse = directory is / (isn't it??). > > I am unable to use the plugin, bcoz I keep getting either Exceptions = or errors: > > java.lang.reflect.InvocationTargetException > > or > > Error: This project does not contain a child with the name: = the_project. Error: This project > > does not contain a child with the name: the_project. > > =20 > > Also, how can I compile just the plugin? > > =20 > > Please help me out, if u have some time. > > =20 > > Thank you, > > Karan Gupta > > Software Engineer > > TransCore, San Diego=20 > > (858) 826 - 2139=20 > > =20 > >=20 >=20 >=20 >=20 > =09 > __________________________________________=20 > Yahoo! DSL - Something to write home about.=20 > Just $16.99/mo. or less.=20 > dsl.yahoo.com=20 >=20 >=20 =09 __________________________________________=20 Yahoo! DSL - Something to write home about.=20 Just $16.99/mo. or less.=20 dsl.yahoo.com=20 |