Hi Gerd,<br><br><div>The process for Eclipse should be: </div><div>1) checkout the source with an svn client, or use the subclipse plugin</div><div>2) Install IvyDE plugin (one time) OR manually configure your classpath after loading the project</div><div>3) Add 'Existing Java Project' </div><div><br></div><div>If you are running from Eclipse with IvyDE, you should not need to run the 'ant resolve' step. If you have both Subclipse and IvyDE installed, you should be able to start work on an existing project just by adding the SVN url. </div><div><br></div><div>Regarding the settings, my workspace default was not Java 1.7. This required setting project specific settings. Eclipse doesn't let you just set one project specific setting though, hence it makes a copy of all the other existing defaults. For projects with multiple Eclipse developers, it's usually a net benefit for everyone to be using the same set of settings. Half because it avoid compile problems, and half because it keeps the styles in sync. For example, you don't want some developers saving files with encoding CP-1251 and others saving UTF-8.</div><div><br></div><div>With the current state of Eclipse, it took me several hours before I had a build with no compile errors. I'm hoping the patch might save someone else a bit of time with a new Eclipse setup. </div><div><br></div><div>Brian</div><div><br></div><div><br></div><br><div class="gmail_quote">On Sun Oct 26 2014 at 7:21:31 AM Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div dir="ltr">Hi Brian,<br><br>I played a little bit with the IvyDE plugin. It seems to work well :-)<br>Up to now I've always used the "Java Project from Existing Ant Buildfile" wizard,<br>which is not working that well.<br><br>If I got that right, the workflow to start the mkgmap project in Eclipse is this:<br>- svn checkout mkgmap <br>- run "ant resolve"<br>- use New|Java Project and specify either the project name (if mkgmap sources are<br>in the Eclipse workplace, or the path to the project.<br><br>I don't know if this is the common way to do it, maybe <br>it should be documented in a README.ECLIPSE ?<br><br>I am not so sure about the files in .settings<br>If I got you right these are meant to set the 1.7 source, but<br>they also override diverse other Eclipse settings, e.g. the levels<br>of compiler warnings. Is this intended?<br><br>Gerd<br><br><br><div><hr>From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>Date: Fri, 24 Oct 2014 21:49:20 -0400</div></div></div></div><div><div dir="ltr"><div dir="ltr"><div><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] Eclipse<br><br>Hi Gerd,<div><br></div><div>When I run ‘ant resolve’, it downloads and places splitter.jar in './lib/optional/splitter-412.jar’. To use the jar in Eclipse, you can either add it to your classpath or use the IvyDE library. In the patch I made a reference to the IvyDE, but this only works if you have the plugin installed. In Eclipse, my path looks like this:</div><div><br></div><div><img src="cid:2DF7E3E2-F025-4F17-9C52-4FC50F26146D" height="634" width="461"></div><div><br></div><div>When I use Eclipse, I let it create it’s workspace in it’s default location. I keep all my projects in a completely different area and then create references to them in Eclipse.</div><div><img src="cid:414BA6B6-FE8F-486B-8888-92AA5ECBC030" height="220" width="640"></div><div>If I have multiple branches of a project, I can open them all in the same workspace.</div><div><br></div><div>It’s not clear to me how your Eclipse is referencing the jars downloaded from the ‘ant resolve’ phase. </div><div><br></div><div>If it’s simply the .classpath change that is causing difficultly, I’m happy to submit a patch without it. I usually don’t keep the .classpath under version control anyway. </div><div><br></div><div>Brian</div><div><br></div><div><br><div><blockquote><div>On Oct 24, 2014, at 4:30 AM, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>> wrote:</div><br><div>
<div><div dir="ltr">Hi Brian,<br><br>I am not sure how to test this patch because my experience with Eclipse is poor.<br>I did this:<br>- rename my workingd directory d:\eclipse_workspace to d:\eclipse_workspace_save <br>- create new dir d:\eclipse_workspace<br>- checkout mkgmap r3337 to d:\eclipse_workspace\mkgmap-p<br>- run ant resolve in that directory<br>- start Eclipse, switch to the (empty) workspace and use File|New to add project with name mkgmap-p<br><br>I expected to get a working version of mkgmap with that procedure, but it seems<br>that a reference to splitter.jar is missing and <br>"uk/me/parabola/mkgmap/reader/dem/optional/" is not marked optional.<br><br>I understand the changes in .classpath regarding the jar files, but not the rest.<br>What changes should I expect?<br><br>I am not sure how to handle the dependency on splitter. I think it is okay to use the <br>jar file and not the splitter sources as long as one doesn't want to change the splitter<br>sources. I am not sure that the download link will work in the future.<br>Regarding the required splitter version: It is much older, don't know if that could be important?<br><br>Reg. Ecplipse itself: From time to time I try newer releases, e.g. I tried Keppler and also Luna 4.4.0 and <br>moved back to Juno because something regarding debugging did not work (sorry, forgot the details :-( )<br><br>Gerd<br><br><div>> From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>> Date: Thu, 23 Oct 2014 23:17:13 -0400<br>> To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> Subject: Re: [mkgmap-dev] Eclipse<br>> <br>> Hello,<br>> <br>> I’m using Eclipse Luna Service Release 1 (4.4.1) Build id: 20140925-1800 on OS X 10.10. I don’t think my changes make any difference to where you keep your working directory or source, or how you organize your workspace. What specific part of the patch do you think would break your eclipse setup? Can you apply the patch and identify any issues? <br>> <br>> I don’t have splitter checked out, so I added any ivy dependency to download it. If you have splitter in your workspace you can give that priority over ivy. <br>> <br>> Brian<br>> <br>> <br>> > On Oct 23, 2014, at 3:22 PM, WanMil <<a href="mailto:wmgcnfg@web.de" target="_blank">wmgcnfg@web.de</a>> wrote:<br>> > <br>> > Hi Brian, hi Gerd,<br>> > <br>> > just my two cents:<br>> > <br>> > I use Eclipse in the following way:<br>> > I use one workspace (e.g. c:\workspace).<br>> > I'll checkout the projects to this workspace named mkgmap_trunk, splitter_trunk etc. After checking out I run the ant target "resolve" within eclipse. After that the workspace is completely ready.<br>> > <br>> > When I want to implement a new feature or I want to try an older revision I checkout mkgmap into another directory below c:\workspace and run the ant script with "resolve".<br>> > <br>> > In my mkgmap start scripts I define the directory below the workspace, e.g. MKGMAP_DIR=c:\workspace\mkgmap and use this variable in the startup call.<br>> > It would also be possible to run ant dist first and define the dist directory in the workspace as mkgmap directory.<br>> > <br>> > This makes it easy to switch between different versions and development variants.<br>> > <br>> > WanMil<br>> > <br>> > <br>> >> Hi Brian,<br>> >> <br>> >> thanks for the patch.<br>> >> <br>> >> I agree that you can't use the current source in eclipse without manual<br>> >> work.<br>> >> When I started with mkgmap and splitter I also started using eclipse<br>> >> (and coding in Java), so<br>> >> I did more or less the same you did, but I did not dare to say that my<br>> >> solution is "correct", probably it is far away from being a good solution.<br>> >> <br>> >> I am not sure if my environment will continue to work with your patch.<br>> >> <br>> >> 1) My current environment looks like this:<br>> >> - I am using Eclipse "Version: Juno Service Release 2 Build id:<br>> >> 20130225-0426" on a Windows 7 64 bit machine<br>> >> - I have one directory called d:\eclipse_workspace containing sub<br>> >> directories mkgmap, splitter, display and others<br>> >> for each project<br>> >> - the source directories are located in d:\mkgmap or d:\splitter<br>> >> <br>> >> 2) When I try to reproduce problems in older mkgmap releases I close<br>> >> Eclipse, rename e.g. d:\mkgmp to d:\mkgmap_trunk<br>> >> and do a svn checkout of the wanted sources to d:\mkgmap. Next I use ant<br>> >> dist to build.<br>> >> After that I start Eclipse and do a refresh for the whole mkgmap<br>> >> project, maybe also a clean.<br>> >> Sometimes I have to repeat the ant dist and refresh to be able to debug<br>> >> mkgmap in Eclipse.<br>> >> <br>> >> Depending on the release of mkgmap that I am compiling I have to modify<br>> >> the names of libraries.<br>> >> <br>> >> If I got it right, you suggest to use the source directory (e.g.<br>> >> d:\mkgmap in my case) also as working directory for Eclipse?<br>> >> <br>> >> Gerd<br>> >> <br>> >> ------------------------------------------------------------------------<br>> >> From: <a href="mailto:brianegge@gmail.com" target="_blank">brianegge@gmail.com</a><br>> >> Date: Wed, 22 Oct 2014 23:30:18 -0400<br>> >> To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> >> Subject: [mkgmap-dev] Eclipse<br>> >> <br>> >> Hello,<br>> >> <br>> >> I’ve recently downloaded the mkgmap source. I had no trouble compiling<br>> >> it with ant, but getting Eclipse to work took some effort. I’ve attached<br>> >> a patch file containing changes for Eclipse.<br>> >> <br>> >> The specific changes are:<br>> >> * update classpath to find current version of jars<br>> >> * add ivyde settings<br>> >> * add Eclipse setting file to specify source=1.7<br>> >> * add splitter to ivy to compile ‘optional’ bit<br>> >> * update URL of opengeo ivy repository<br>> >> * add bin/tmp to ignore list<br>> >> <br>> >> I see there is a git copy of this project, but it appears all commits<br>> >> are going through svn. I’d prefer to create a pull request on github<br>> >> than to attach a patch file, but am happy to do whatever works.<br>> >> <br>> >> Attached is the patch file for review and merging to<br>> >> <a href="http://svn.mkgmap.org.uk/mkgmap/trunk" target="_blank">http://svn.mkgmap.org.uk/mkgmap/trunk</a>.<br>> >> <br>> >> <br>> >> <br>> >> Regards,<br>> >> Brian<br>> >> <br>> >> _______________________________________________ mkgmap-dev mailing list<br>> >> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> >> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>> >> <br>> >> <br>> >> _______________________________________________<br>> >> mkgmap-dev mailing list<br>> >> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> >> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>> >> <br>> > <br>> > _______________________________________________<br>> > mkgmap-dev mailing list<br>> > <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> > <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>> <br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></div>                                            </div></div>
_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div></blockquote></div><br></div><br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div></div></div></div>
______________________________<u></u>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<u></u>mailman/listinfo/mkgmap-dev</a></blockquote></div>