Page 1 of 10
How to get RPTools source via Eclipse and subversion
Posted: Fri Jul 14, 2006 11:00 am
All of the RPTools source is stored in SourceForge.net's Subversion repository. If anyone is interested in looking at the code, install Eclipse (eclipse.org) or Netbeans or your favorite IDE and set up Subversion in it.
Here is an article that explains how to get Subversion working in Eclipse.http://www-128.ibm.com/developerworks/o ... Subversion
Create a new project and add (updated 2013-06-03
Note that there are multiple projects at that URL (such as maptool
, and others). For each one there is a trunk
directory -- that's the one you want. So use the above URL and append /maptool/trunk
for just that project. Note that SourceForge now has RSS feeds and "subscribe" links if you want immediate notification of new commits.Edit:
If you're going to submit patches, please import this Eclipse preferences file first and then save the changed files. These preferences will reformat the code so that it conforms to the project standards and that will make it much
easier for other team members to read as well as making the patch as concise as possible. (Preferences file is attached to this post.) - Azhrei
Posted: Fri Jul 14, 2006 5:07 pm
The Ant build files are failing on:
C:\Code\rptools\common.build\common-webstart-targets.xml:84: taskdef class com.sun.tools.apache.ant.pack200.Pack200Task cannot be found
I see the Pack200Task.jar file under common.build/lib. Does that folder need to be added to the CLASSPATH?
Posted: Fri Jul 14, 2006 5:38 pm
Yes. As a side note, you shouldn't have to use the ant build scripts, those are for creating the packages we put up on the site.
You should just be able to launch MapTool.java, or TokenTool.java, or whatever.
Posted: Fri Jul 14, 2006 6:12 pm
I recognized that however I want to have local builds in jar files so that I can copy them to my laptop and other PCs for testing.
It might be nice if their were ant build scripts that didn't create full distributions and merely built up a full package for local testing.
Posted: Fri Jul 14, 2006 6:15 pm
Giliath is our build person. I think he even updated the scripts recently to ignore the pack200 stuff. If you haven't updated recently, you might want to.
Posted: Fri Jul 14, 2006 6:58 pm
Interesting. That was a with a fresh checkout from SourceForge. It looks like I have the current (2314) common-webstart-targets.xml file.
No big deal. I added the relevant jar files to the Ant classpath preferences and everything is happy.
Posted: Wed Sep 06, 2006 7:02 am
Hmmm -- if I do these steps...
1. File - Import,
2. select "Checkout Projects from SVN",
3. click Next,
4. click "Create a New Repository location",
5. click Next
6. enter https://svn.sourceforge.net/svnroot/rptools
in the URL text field
I get this exception:
Error validating location "org.tigris.subversion.javahl.ClientException:
svn: PROPFIND request failed on '/svnroot/rptools"
What's up? I managed to check out subclipse, so I'm pretty sure my Eclipse setup's good...
Posted: Wed Sep 06, 2006 9:23 am
Go to the Team->SVN preference dialog and turn on JavaSVN instead of the native svn (javahl). That should help, let me know otherwise.
Posted: Wed Sep 06, 2006 1:51 pm
It's all good now -- I had to alter Eclipse so that it runs using Sun's JRE rather than the flaky gnu one.
Posted: Sun Nov 26, 2006 10:47 am
Just wanted to say that the above instructions worked "out-of-the-box" for me. downloaded all the source, eclipse was building it as it downloaded, no errors, no warnings. kudos
Now lets see how easy it is to add translucent drag-and-drop token functionality ...
Posted: Sun Nov 26, 2006 11:18 am
sozin wrote:Now lets see how easy it is to add translucent drag-and-drop token functionality ...
Do you mean showing the token on the map as you drag it on ?
Let me know how it goes
Posted: Sun Nov 26, 2006 11:45 am
sort of. when the token gets dragged on, right now it just shows the token with no translucency (the token essentially becomes the cursor until it is dropped on). its a simple little hack it make it so that when the user grabs the token, the grabbed image becomes translucent until it is dropped onto the canvas...
not very useful, but it's this sort of visual feedback that makes OS X such a pleasure to use.
EDIT: Compiled and am running the latest and greatest, looks like during drag and drop the icon is no longer the token itself, but rather a hand cursor... perhaps I shouldn't even bother trying out the transparency hack
PS The new maptool looks great!
Posted: Sun Nov 26, 2006 4:29 pm
Yeah, it used to use the image as the mouse pointer. But then I saw that it didn't work on OSX. And it didn't give an accurate representation of where an what size the dropped token would be, so I pulled it out so I could make it more accurate. But then I got distracted. Perhaps I could put it back to the old way for the time being. However, that method would not be conducive to transparency unfortunately since it's actually the mouse pointer.
Posted: Sun Nov 26, 2006 7:19 pm
I'll muck around with it and see if I can get the partially translucent drag and drop stuff working.
Posted: Mon Jan 22, 2007 2:49 pm
should I get the IBM bundle of eclipse?