Hi,

JOSM and most plug-ins already have prepared Eclipse projects. It
should be enough to import JOSM project and plug-ins you want to
debug. (File - Import - Project, disable copy to workspace)

If you want to be able to debug plug-in you must run plug-in project
but use JOSM main class as a start point. Some plug-ins already have
launch files that do that.

On Fri, Oct 2, 2009 at 4:56 PM, Ray Foulkes <ray.foul...@attglobal.net> wrote:
> Hi Jan, thankyou, I do not know what I was doing wrong the first time
> around. I did as you suggested and created a "java project" using the
> sources in "core" - it all worked and runs the main program OK. I can
> navigate the Java e.g. find declarations, references  and run the main
> application. etc. BUT, I was trying to debug plugins...
>
>
> When I tried to do the same thing after downloading
> http://svn.openstreetmap.org/applications/editors/josm/ (which includes
> all the plugins) and added the directory "josm" as a project, there are
> many errors including some Java errors in the plugins which are "Eclipse
> internal" errors. Also, I then cannot run the core application. I think
> it is because of the directory in which the application is started does
> not contain all the necessary files.  I do not know how to tell Eclipse
> to default the startup directory to another directory.  My problem is
> that I am trying to learn Eclipse at the same time as learning the code
> of Josm.
>
> I discovered that I can add plugins individually i.e. create a new
> project and link it to "core" and at least compile the plugin even if I
> cannot run it.
>
> Anyway, thankyou for your response. I have at least been able to start
> investigating the codes of JOSM.
>
> Ray
>
> Jan Peter Stotz wrote:
>> Ray Foulkes schrieb:
>>
>>> If I use an svn client to download to a directory then point Eclipse to
>>> construct a java project itself, there are hundreds of Java errors which
>>> I have not fully investigated but look nasty. Not surprising since the
>>> build scripts I don't think are being used in that case.
>>
>> The Eclipse relevant part of JOSM is the core directory. Check-out the path
>> you mentioned outside of Eclipse and then add the core directory as Project
>> with external sources into Eclipse. This should work for JOSM itself.
>> Plugins are a different matter.
>>
>> Jan
>>
>>
>> _______________________________________________
>> josm-dev mailing list
>> josm-dev@openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/josm-dev
>>
>>
>
> _______________________________________________
> josm-dev mailing list
> josm-dev@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>

_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to