Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Setting up uDig 1.2 development in Eclipse

Hi,

Adrian Custer said:
> This may be the 'try and try again' bug. I think it's in uDig where you
> have to run the build several times before it 'goes through'.

no, I think it's ant not finding the task (or type). I've been through
this, and I know there are a few ways to fix it. (e.g. make sure the maven
libs are in the ant lib dir.)

I did as described in
http://lists.refractions.net/pipermail/udig-devel/2008-September/012944.html

Eclipse has a menu (Run/External Tools Configurations) for this. As I
wrote a while ago: still waiting for the proper solution (if there's
such).

Hope that helps.

>
> merely an idea,
> --adrian
>

Cheers,

Ugo

>
> On Wed, 2008-12-10 at 15:35 -0500, David Adler wrote:
>> Many thanks Andrea - I never would have realized that the small triangle
>> was the trick.
>>
>> I was able to get everything loaded into Eclipse.
>>
>> But building is failing to download the many dependent jars.  When I try
>> to build in net.refractions.udig.libs, I get on the console (if I
>> manually run Ant action):
>> Buildfile:
>> E:\geotools\udigtrunk\plugins\net.refractions.udig.libs\refresh.xml
>>
>> BUILD FAILED
>> E:\geotools\udigtrunk\plugins\net.refractions.udig.libs\refresh.xml:11:
>> Problem: failed to create task or type
>> antlib:org.apache.maven.artifact.ant:remoteRepository
>> Cause: The name is undefined.
>> Action: Check the spelling.
>> Action: Check that any custom tasks/types have been declared.
>> Action: Check that any <presetdef>/<macrodef> declarations have taken
>> place.
>>
>> This appears to be an antlib declaration.
>> Action: Check that the implementing library exists in one of:
>>         -J:\udig12\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib
>>         -C:\Documents and Settings\DAVEA5\.ant\lib
>>         -a directory added on the command line with the -lib argument
>>
>> The line in refresh.xml that it is complaining about:
>>     <artifact:remoteRepository id="udig.repository" url="${updateURL}"
>> />
>>
>> Sorry for the newbie startup problems.
>>
>> andrea antonello wrote:
>> > Hi David,
>> > I think the fastest way to go is to find the class by typing
>> > Ctrl^shift^T, which opens the "Open Type" dialog. There write
>> > DB2GeoResource. It should find it, since you have the source code in
>> > your workspace, and it should open it.
>> >
>> > To set a breakpoint just double click on the left border of the editor
>> > at the line you want to stop.
>> >
>> > In the plugin development perspective you should have a "package
>> explorer".
>> > At the top of it you find a small triangle (in linux, not sure else),
>> > from which you can find the "Top Level Elements".
>> > Another friend is the button with the two yellow opposed arrows. When
>> > you push that, the explorer opens the code tree inside which the
>> > current file opened in the java editor resides, so you will also
>> > understand inside which package you are debugging.
>> >
>> > Hope this helps a bit, I note that explaining debugging in English is
>> > not that easy for me :)
>> >
>> > Ciao
>> > Andrea
>> >
>> >
>> > On Wed, Dec 10, 2008 at 6:20 PM, David Adler <dadler@xxxxxxxxxxx>
>> wrote:
>> >
>> >> Thank you for the help.  I was able to get uDig 1.2 running in
>> Eclipse.  It
>> >> was possible to load a layer from DB2 LUW but this failed loading
>> from DB2
>> >> for z/OS with the error:
>> >> java.lang.NullPointerException
>> >>   at
>> >> net.refractions.udig.catalog.internal.db2.DB2GeoResource$DB2GeoResourceInfo.getTitle(Unknown
>> >> Source)
>> >>   at net.refractions.udig.catalog.ui.CatalogUIPlugin.title(Unknown
>> Source)
>> >>   at net.refractions.udig.catalog.ui.CatalogUIPlugin.title(Unknown
>> Source)
>> >>   at
>> >> net.refractions.udig.catalog.ui.ResolveTitlesDecorator$UpdateLabel.run(Unknown
>> >> Source)
>> >>   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>> >>
>> >> I'm afraid I'm a newbie to debugging plug-ins in Eclipse.  How do I
>> set a
>> >> breakpoint?  Normally I work with regular Java projects in Eclipse
>> and can
>> >> easily select the file to set a breakpoint before starting debug
>> mode.
>> >>
>> >> In case I need to use Eclipse with the source tree, I've been
>> following the
>> >> instructions for this which are very good.  However after importing
>> the uDig
>> >> 1.2 code from the source tree, when I get to step 3 "Create Working
>> sets",
>> >> I'm not clear on how I select "Top Level Elements" from the package
>> >> explorer.  I do see a huge number of net.refractions.udig packages.
>> >>
>> >> Ugo Taddei wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> David Adler wrote:
>> >>>
>> >>>> When will uDig trunk be released as a product?
>> >>>>
>> >>>> If one has an svn copy of uDig trunk, is it straightforward to use
>> this
>> >>>> in Eclipse?
>> >>>>
>> >>> The answer depends on your previous experience with udig/eclipse. If
>> >>> you've done it before, then you might be ok. Otherwise try
>> >>>
>> >>> http://udig.refractions.net/confluence/display/DEV/1+SDK+Quickstart
>> >>>
>> >>> especially
>> >>> -> uDIG 1.2 Development Quickstart
>> >>>
>> >>> Worked for me. Though I'm back on trunk.
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Ugo
>> >>>
>> >>>
>> >>>> Adrian Custer wrote:
>> >>>>
>> >>>>> Hey,
>> >>>>>
>> >>>>> udig 1.1 uses gt 2.2, udig trunk uses gt trunk (aka 2.6).
>> >>>>>
>> >>>>> --adrian
>> >>>>>
>> >>>>> On Tue, 2008-12-09 at 16:30 -0500, David Adler wrote:
>> >>>>>
>> >>>>>
>> >>>>>> From looking at the libs shipped with uDig, I would guess that
>> uDig is
>> >>>>>> working with GeoTools V2.2.
>> >>>>>>
>> >>>>>> Is this correct and are there documented plans to move to a more
>> >>>>>> current version of GeoTools?
>> >>>>>>
>> >>>>>> We have been trying to do some testing of uDig support for DB2
>> for z/OS
>> >>>>>> but the support for this in GeoTools is in a much later version,
>> 2.4 or 2.5.
>> >>>>>>
>> >>>>>> _______________________________________________
>> >>>>>> User-friendly Desktop Internet GIS (uDig)
>> >>>>>> http://udig.refractions.net
>> >>>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> >>>>>>
>> >>>>>>
>> >>>>> _______________________________________________
>> >>>>> User-friendly Desktop Internet GIS (uDig)
>> >>>>> http://udig.refractions.net
>> >>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> >>>>>
>> >>>>>
>> >>>> _______________________________________________
>> >>>> User-friendly Desktop Internet GIS (uDig)
>> >>>> http://udig.refractions.net
>> >>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >> _______________________________________________
>> >> User-friendly Desktop Internet GIS (uDig)
>> >> http://udig.refractions.net
>> >> http://lists.refractions.net/mailman/listinfo/udig-devel
>> >>
>> >>
>> > _______________________________________________
>> > User-friendly Desktop Internet GIS (uDig)
>> > http://udig.refractions.net
>> > http://lists.refractions.net/mailman/listinfo/udig-devel
>> >
>>
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>



Back to the top