DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Help request: Eclipse PDE Export problem
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2008
Default Help request: Eclipse PDE Export problem - 04-16-2008, 08:36 AM

Hi,

I'm relatively new to building Eclipse plug-ins and I have run into a problem I can't solve myself. I have created a plugin project using the wizard and it's working pretty well, but I moved the source code tree to another place to satisfy our in-house SCM. After I did this I linked the source using:
Right click -> Build path -> Link source, and I name the linked folder "src".

I get no compile errors with this setup, and I can run the eclipse plugin in a new eclipse instance without any trouble, but when I try to export the plug-in I get an error:

Error
Reason: Problems during export
Details:
...\build.xml:102: srcdir "........workspace/src" does not exist!


I have tried playing with the values in the Build Configuration tab of the plugin.xml, and also editing the raw build.properties files but without luck.

Does anyone have any suggestions for what I might try to do to fix this?

I don't really understand why it should be that I can run the plugin in an instance of eclipse but not export the plugin (I guess they use the same method for creating the plugin?).

OS: Win XP sp 3
Eclipse version: 3.3.0

Any help is greaty appreciated!

Regards,
Mike
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2008
Default 04-17-2008, 02:27 AM

hi,

In eclipse linking refers to pointing to a resource on the local machine. So u create a folder (in your case 'src' then link it to a folder in ur local system). In this case, when u export the linked resources from local system will not be exported as this is not considered part of the project. So while exporting u need to exclude the linked 'src' folder.

If these sources are compiled into another folder (say bin) inside the plugin project that will get bundled without problem.

Guess that should solve ur problem.
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2008
Default 04-17-2008, 03:57 AM

Hi Karen,

Thanks for your help, this set me along the right path. I has deselected src from the build tab but there was still an entry in build.properties file. All is well in the world :-D

Cheers,
Mike
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2008
Default 04-17-2008, 04:36 AM

Ah, but here's the catch - the plugin doesn't build correctly when you remove the source line from build.properties. So I guess you can't have linked source with a PDE plug-in which is a little disappointing, I don't see any technical reason why the source has to be under the eclipse root. C'est la vie :-)
Reply With Quote
Reply

Tags
build, eclipse, export, pde

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with JRE compatibility using Eclipse Maverickk Eclipse 1 12-03-2008 05:56 AM
Export Eclipse project to HTML sarv6 Eclipse 0 12-02-2008 12:39 AM
Error:"Cannot complete the request." while adding plugins using an update site. amit123solanki Eclipse 0 07-28-2008 08:33 AM
eclipse CDT import problem. ruony Eclipse 0 07-04-2008 01:29 AM
Ant-editors problem in eclipse 3.3.1.1 Ashkan Eclipse 2 04-03-2008 10:26 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com