Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Re: dependency/build problem with M4 or greater master feature

Hi Greg,

I was able to build my plugin successfully by adding the following line to the manifest.mf for the org.eclipse.ptp.remote.core plugin:
Bundle-ClassPath: .


There are a number of other unpacked PTP plugins (such as org.eclipse.ptp.ui) that do not declare the Bundle-Classpath which also cause the same build problem.

One thing I noticed while digging is that the unpacked PTP plugins have an exposed package structure such that the class files exist in a directory tree like:
plugins/org.eclipse.ptp.remote.core/plugin.xml
plugins/org.eclipse.ptp.remote.core/org/eclipse/ptp/remote/core/IRemoteFileManager.class

Whereas other unpacked plugins in the workbench contain their classfiles within a jarfile, even though the plugin directory itself is not jarred:
plugins/org.eclipse.cdt.debug.ui.tests/plugin.xml
plugins/org.eclipse.cdt.debug.ui.tests/cdtdebuguitests.jar

Additionally, those unpacked plugins that contain their classfiles within a jar add their jarfile to the classpath like this in the manifest.mf:
Bundle-ClassPath: cdtdebuguitests.jar


It looks like the classpath is just required at build time, as the other PTP plugins that depend upon org.eclipse.ptp.remote.core are loaded and operate fine in the workbench without it. The problem won't affect anyone pulling the PTP plugins from CVS and building them in their development environment alongside their plugins, which is what I expect everyone is doing at this point. But I think anyone who wants to set up a build against the master features rather than pull PTP from CVS may run into it.

Best regards,

Jeremiah Swan




Date: Wed, 15 Oct 2008 11:13:12 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
Subject: Re: [ptp-dev] dependency/build problem with M4 or greater
master feature
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Message-ID: <0C44E1A2-B7CF-4CFA-9FEE-0D824AEE091F@xxxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Jeremiah,

I don't have a clue how do debug this, so I'm open to suggestions.  
I've put up a link to the nightly build on the wiki (
http://wiki.eclipse.org/PTP/builds/2.1 
), so it might be worth trying this first. I've been making changes to  
the feature branding which may or may not have had something to do  
with this. The core plugin is now a jar file again in any case.

Greg

On Oct 15, 2008, at 9:54 AM, Jeremiah Swan wrote:

> Hello all,
>
> I have a plugin that depends upon the PTP plugins. I'm using Eclipse  
> v3.4.1, CDT v5.0.2 installed via master feature, and the RSE  
> obtained from the Ganymede update site. Up until now my development  
> has been with PTP M3 installed via the master feature, and my plugin  
> has been building correctly. I recently tried the M4, M5 and the  
> latest master features and my plugin no longer builds. The errors  
> produced are:
>
> "The project was not built since its build path is incomplete.  
> Cannot find the class file for  
> org.eclipse.ptp.remote.core.IRemoteFileManager. Fix the build path  
> then try building this project"
> "The type org.eclipse.ptp.remote.core.IRemoteFileManager cannot be  
> resolved. It is indirectly referenced from required .class files"
>
> My plugin's Manifest.mf already includes the  
> org.eclipse.ptp.remote.core plugin, but it no longer appears if you  
> expand the "Plug-in dependencies" under the project in the Package  
> Explorer view.
>
> I get the same build failure whether I upgrade an existing Eclipse
> +PTP M3 driver, or if I start from scratch. M4, M5 and the latest  
> master feature all fail to build in the same manner. The  
> org.eclipse.ptp.remote.core plugin is listed as "starting" in both  
> workbench's Configuration Details, so the workbench appears to have  
> found it correctly. The only relevant difference affecting this  
> plugin that I can see between M3 and M4 is that it was jarred in M3  
> and is now unpacked.
>
> Any help would be appreciated.
> Best regards,
>
> Jeremiah Swan

Inactive hide details for ptp-dev-request@xxxxxxxxxxxptp-dev-request@xxxxxxxxxxx


          ptp-dev-request@xxxxxxxxxxx
          Sent by: ptp-dev-bounces@xxxxxxxxxxx

          15/10/2008 12:00 PM

          Please respond to
          ptp-dev@xxxxxxxxxxx

To

ptp-dev@xxxxxxxxxxx

cc


Subject

ptp-dev Digest, Vol 43, Issue 38

Send ptp-dev mailing list submissions to
ptp-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev
or, via email, send a message with subject or body 'help' to
ptp-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
ptp-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ptp-dev digest..."


Today's Topics:

  1. Re: Possible problem with BUILD script (Greg Watson)
  2. Re: Question about procedure to fix a PTP problem (Dave Wootton)
  3. Re: Question about procedure to fix a PTP problem (Greg Watson)
  4. dependency/build problem with M4 or greater master feature
     (Jeremiah Swan)
  5. Re: PTP Monthly Conference Call Today (Greg Watson)
  6. Re: dependency/build problem with M4 or greater master
     feature (Greg Watson)


----------------------------------------------------------------------

Message: 1
Date: Tue, 14 Oct 2008 12:17:20 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
Subject: Re: [ptp-dev] Possible problem with BUILD script
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Message-ID: <6EA78A26-AC9D-44B9-93B4-25B0512EAC5A@xxxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Dave,

I noticed this recently too. It should really use the same version of  
the plugins so is a bug.

Greg

On Oct 9, 2008, at 3:30 PM, Dave Wootton wrote:

> I'm not sure if this is a problem with the proxy BUILD scripts or user
> error.
>
> I just downloaded the M5 build and copied the org.eclipse.ptp.aix.ppc*
> org.eclipse.ptp.proxy* org.eclipse.ptp.utils*
> org.eclipse.ptp.rm.ibm.pe.proxy* and org.eclipse.ptp.rm.ibm.ll.proxy
> subdirectories in the plugins directory to a directory on my remote  
> (AIX)
> system. I kept the timestamp on each of the directories, but only  
> kept the
> latest version of each directory (the one with the *20081007*  
> datestamp).
> Then I cd to the org.eclipse.ptp.aix.ppc* directory and run BUILD. The
> build script fails because it can't find the org.eclipse.ptp.proxy and
> org.eclipse.ptp.utils directories. If I rename all of the  
> directories to
> eliminate the datestamps, then I can build my proxies.
>
> I thought the BUILD script was supposed to find the latest version  
> of each
> subdirectory and use that. If that's the case, then I can write a  
> bugzilla
> report.
>
> If I'm supposed to rename directories, then I should note this in  
> build
> notes for my proxies.
> Dave
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>



------------------------------

Message: 2
Date: Wed, 15 Oct 2008 08:23:28 -0400
From: Dave Wootton <dwootton@xxxxxxxxxx>
Subject: Re: [ptp-dev] Question about procedure to fix a PTP problem
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Cc: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>,
ptp-dev-bounces@xxxxxxxxxxx
Message-ID:
<OF1EF74390.AD7F97C3-ON852574E3.00435BEB-852574E3.004412F4@xxxxxxxxxx>
Content-Type: text/plain; charset="US-ASCII"

I'm having trouble getting this to work. I made a change to a class in
org.eclipse.ptp.rm.ibm.pe.ui then exported the project into my plugins
directory and restarted Eclipse. After Eclipse restarts, it still loads
the old jar file. I verified this by looking at the plugin details list
and seeing the jar file with the old timestamp in the list. If I start
Eclipse with the -clean flag that doesn't make any difference. I looked in
the .log file in my workspace and I see that the -clean flag is passed in,
but I don't see any  messages related to this jar file. If I rename the
old jar files so the only one available is the one I just exprted, it
still doesn't get loaded. When I do that, I get errors when I open the run
configuration dialog since it can't load the required classes.

This is on a Windows XP system if that makes any difference.

Is there something else I need to do to get this to work?
Dave



Greg Watson <g.watson@xxxxxxxxxxxx>
Sent by: ptp-dev-bounces@xxxxxxxxxxx
09/22/2008 01:54 PM
Please respond to
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>


To
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
cc

Subject
Re: [ptp-dev] Question about procedure to fix a PTP problem






Dave,

Yes, export as "deployable plug-ins and fragments", choose the plugin
you want, and under "options" check the "Package plugins as individual
JAR archieves"  option (except if this is one of the C plugins like
the proxy or utils). All other options should be unchecked. Then copy
the jar file into you eclipse plugins directory and restart eclipse.
It should pick up the new plugin automatically (you might need to do a
-clean on linux).

Greg

On Sep 22, 2008, at 1:18 PM, Dave Wootton wrote:

> I have run into a problem with one of my plugins in PTP 2.0 that I
> need to
> update one of the plugins packaged in the PTP 2.0 download. How do I
> go
> about doing this? Do I just select the project containing the class
> I need
> to update and use the export wizard (File->Export) to export the
> project
> as a jar file and then copy that jar file into the plugins
> directory, or
> do I need to do something else? If I use the export wizard, is there
> anything I need to export other than class files? Are there other
> settings
> in the wizard that I need to worry about?
>
> Thanks
> Dave
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev




------------------------------

Message: 3
Date: Wed, 15 Oct 2008 08:41:51 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
Subject: Re: [ptp-dev] Question about procedure to fix a PTP problem
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Message-ID: <7D6100F4-65AB-464E-95A7-88E031C2B708@xxxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Dave,

You need to put the new plugin in the "dropins" folder rather than the  
"plugins" folder. At launch time, Eclipse then tries to "install" the  
plugin for you in the same way that the update manager installs new  
plugins. Having said that, I've found it very hard to get a new plugin  
to work because if any of the dependency checks fail the installation  
won't happen. The problem is that Eclipse provides no way of finding  
out (that I've been able to discover) why the plugin failed to install.

Greg

On Oct 15, 2008, at 8:23 AM, Dave Wootton wrote:

> I'm having trouble getting this to work. I made a change to a class in
> org.eclipse.ptp.rm.ibm.pe.ui then exported the project into my plugins
> directory and restarted Eclipse. After Eclipse restarts, it still  
> loads
> the old jar file. I verified this by looking at the plugin details  
> list
> and seeing the jar file with the old timestamp in the list. If I start
> Eclipse with the -clean flag that doesn't make any difference. I  
> looked in
> the .log file in my workspace and I see that the -clean flag is  
> passed in,
> but I don't see any  messages related to this jar file. If I rename  
> the
> old jar files so the only one available is the one I just exprted, it
> still doesn't get loaded. When I do that, I get errors when I open  
> the run
> configuration dialog since it can't load the required classes.
>
> This is on a Windows XP system if that makes any difference.
>
> Is there something else I need to do to get this to work?
> Dave
>
>
>
> Greg Watson <g.watson@xxxxxxxxxxxx>
> Sent by: ptp-dev-bounces@xxxxxxxxxxx
> 09/22/2008 01:54 PM
> Please respond to
> Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
>
>
> To
> Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
> cc
>
> Subject
> Re: [ptp-dev] Question about procedure to fix a PTP problem
>
>
>
>
>
>
> Dave,
>
> Yes, export as "deployable plug-ins and fragments", choose the plugin
> you want, and under "options" check the "Package plugins as individual
> JAR archieves"  option (except if this is one of the C plugins like
> the proxy or utils). All other options should be unchecked. Then copy
> the jar file into you eclipse plugins directory and restart eclipse.
> It should pick up the new plugin automatically (you might need to do a
> -clean on linux).
>
> Greg
>
> On Sep 22, 2008, at 1:18 PM, Dave Wootton wrote:
>
>> I have run into a problem with one of my plugins in PTP 2.0 that I
>> need to
>> update one of the plugins packaged in the PTP 2.0 download. How do I
>> go
>> about doing this? Do I just select the project containing the class
>> I need
>> to update and use the export wizard (File->Export) to export the
>> project
>> as a jar file and then copy that jar file into the plugins
>> directory, or
>> do I need to do something else? If I use the export wizard, is there
>> anything I need to export other than class files? Are there other
>> settings
>> in the wizard that I need to worry about?
>>
>> Thanks
>> Dave
>> _______________________________________________
>> ptp-dev mailing list
>> ptp-dev@xxxxxxxxxxx
>>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>>
>
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>
>
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>



------------------------------

Message: 4
Date: Wed, 15 Oct 2008 09:54:26 -0400
From: Jeremiah Swan <swanj@xxxxxxxxxx>
Subject: [ptp-dev] dependency/build problem with M4 or greater master
feature
To: ptp-dev@xxxxxxxxxxx
Message-ID:
<OF18F56F8E.60165234-ON852574E3.004808BE-852574E3.004C5A4F@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"



Hello all,

I have a plugin that depends upon the PTP plugins.  I'm using Eclipse
v3.4.1, CDT v5.0.2 installed via master feature, and the RSE obtained from
the Ganymede update site.  Up until now my development has been with PTP M3
installed via the master feature, and my plugin has been building
correctly.  I recently tried the M4, M5 and the latest master features and
my plugin no longer builds.  The errors produced are:

"The project was not built since its build path is incomplete. Cannot find
the class file for org.eclipse.ptp.remote.core.IRemoteFileManager. Fix the
build path then try building this project"
"The type org.eclipse.ptp.remote.core.IRemoteFileManager cannot be
resolved. It is indirectly referenced from required .class files"

My plugin's Manifest.mf already includes the org.eclipse.ptp.remote.core
plugin, but it no longer appears if you expand the "Plug-in dependencies"
under the project in the Package Explorer view.

I get the same build failure whether I upgrade an existing Eclipse+PTP M3
driver, or if I start from scratch.  M4, M5 and the latest master feature
all fail to build in the same manner.  The org.eclipse.ptp.remote.core
plugin is listed as "starting" in both workbench's Configuration Details,
so the workbench appears to have found it correctly.  The only relevant
difference affecting this plugin that I can see between M3 and M4 is that
it was jarred in M3 and is now unpacked.

Any help would be appreciated.
Best regards,

Jeremiah Swan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://dev.eclipse.org/mailman/private/ptp-dev/attachments/20081015/3678cf54/attachment.html

------------------------------

Message: 5
Date: Wed, 15 Oct 2008 10:29:58 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
Subject: Re: [ptp-dev] PTP Monthly Conference Call Today
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Message-ID: <0DC4A352-6831-40CB-B848-6BF5DD033235@xxxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I've added the (brief) minutes to the wiki page. If I've missed  
anything please let me know.

Greg

On Oct 14, 2008, at 10:04 AM, Greg Watson wrote:

> Hey everyone,
>
> Sorry for the short notice (just got computer back), but the monthly  
> developers conference call is today.  I think the main thing to  
> discuss is progress on the 2.1 release.
>
> Date: October 14, 2008
> Time: 10:00am PST, 11:00am MST, 1:00pm EST
>
> Toll Free (US): 1 877-421-0033
> Toll Free (Germany): 0800-181-6323
> Local (US): +1 770-615-1250
> Local (Germany): +49 695-170-9081
> Passcode: 583191
>
> Agenda is available here:
http://wiki.eclipse.org/PTP/meetings/October_2008 
> .
>
> Cheers,
>
> Greg
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev
>



------------------------------

Message: 6
Date: Wed, 15 Oct 2008 11:13:12 -0400
From: Greg Watson <g.watson@xxxxxxxxxxxx>
Subject: Re: [ptp-dev] dependency/build problem with M4 or greater
master feature
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Message-ID: <0C44E1A2-B7CF-4CFA-9FEE-0D824AEE091F@xxxxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Jeremiah,

I don't have a clue how do debug this, so I'm open to suggestions.  
I've put up a link to the nightly build on the wiki (
http://wiki.eclipse.org/PTP/builds/2.1 
), so it might be worth trying this first. I've been making changes to  
the feature branding which may or may not have had something to do  
with this. The core plugin is now a jar file again in any case.

Greg

On Oct 15, 2008, at 9:54 AM, Jeremiah Swan wrote:

> Hello all,
>
> I have a plugin that depends upon the PTP plugins. I'm using Eclipse  
> v3.4.1, CDT v5.0.2 installed via master feature, and the RSE  
> obtained from the Ganymede update site. Up until now my development  
> has been with PTP M3 installed via the master feature, and my plugin  
> has been building correctly. I recently tried the M4, M5 and the  
> latest master features and my plugin no longer builds. The errors  
> produced are:
>
> "The project was not built since its build path is incomplete.  
> Cannot find the class file for  
> org.eclipse.ptp.remote.core.IRemoteFileManager. Fix the build path  
> then try building this project"
> "The type org.eclipse.ptp.remote.core.IRemoteFileManager cannot be  
> resolved. It is indirectly referenced from required .class files"
>
> My plugin's Manifest.mf already includes the  
> org.eclipse.ptp.remote.core plugin, but it no longer appears if you  
> expand the "Plug-in dependencies" under the project in the Package  
> Explorer view.
>
> I get the same build failure whether I upgrade an existing Eclipse
> +PTP M3 driver, or if I start from scratch. M4, M5 and the latest  
> master feature all fail to build in the same manner. The  
> org.eclipse.ptp.remote.core plugin is listed as "starting" in both  
> workbench's Configuration Details, so the workbench appears to have  
> found it correctly. The only relevant difference affecting this  
> plugin that I can see between M3 and M4 is that it was jarred in M3  
> and is now unpacked.
>
> Any help would be appreciated.
> Best regards,
>
> Jeremiah Swan
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/ptp-dev



------------------------------

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


End of ptp-dev Digest, Vol 43, Issue 38
***************************************

GIF image

GIF image

GIF image


Back to the top