Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » pde.exportPlugins task does nothing(The ant task pde.exportPlugins does not export the plug-in, even though it is called from a running eclipse instance with -data argument set)
icon5.gif  pde.exportPlugins task does nothing [message #530157] Wed, 28 April 2010 17:02
Olivier Cailloux is currently offline Olivier CaillouxFriend
Messages: 4
Registered: July 2009
Junior Member

I am trying to build from eclipse an open source project (decision-deck) providing several OSGi plug-ins. To export the plug-ins, I normally simply should run the build.xml ant script, which calls a dist.xml script which uses several pde.exportPlugins tasks to export all the appropriate plug-ins.

Even with a fresh eclipse install (SDK 3.5.2 for linux-gtk) and a fresh workspace, the pde.exportPlugins does nothing. It is indeed called, and it creates the destination folder if it does not exist, but it does not export the expected jars. There is something wrong with my settings or my install because other developers are able to build the project with the same build file on their computer, and I was able to build it as well using a previous computer.

Also I installed the activej plug-in from, and when activating the weaving before building the output shows errors related to weaving (see below). I don't know if this could be the cause of my problem. But AFAIU the build should work even without the weaving (and it does not).

How can I get a clue about what's wrong? E.g. is there some way to make the task tell me where it is looking for? (One possible explanation is that it is for some strange reason looking in the wrong folder and does not find the plugins, although the -data directory seems to be set correctly to /home/olivier/workspace-SDK where the plug-ins indeed lie.)

Here below, what appears in the console when running the ant task with the -verbose switch (and weaving activated). Any help or pointer would be much appreciated. Also please tell me if there is a more appropriate place on which I should ask the question.

Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: /home/olivier/workspace-SDK/org.decisiondeck.dist/build.xml
parsing buildfile /home/olivier/workspace-SDK/org.decisiondeck.dist/build.xml with URI = file:/home/olivier/workspace-SDK/org.decisiondeck.dist/build.xml
Project base dir set to: /home/olivier/workspace-SDK/org.decisiondeck.dist
[] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Build sequence for target(s) `default' is [default]
Complete build sequence is [default, ]
parsing buildfile jar:file:/usr/local/share/eclipse-SDK-3.5.2-linux-gtk/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/ant.jar!/org/apache/tools/ant/types/resources/comparators/antlib.xml with URI = jar:file:/usr/local/share/eclipse-SDK-3.5.2-linux-gtk/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/ant.jar!/org/apache/tools/ant/types/resources/comparators/antlib.xml
     [java] Executing '/usr/lib/jvm/java-6-openjdk/jre/bin/java' with arguments:
     [java] '-Xmx512M'
     [java] '-DbaseLocation=/usr/local/share/eclipse-SDK-3.5.2-linux-gtk/'
     [java] '-classpath'
     [java] '/usr/local/share/eclipse-SDK-3.5.2-linux-gtk/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar'
     [java] 'org.eclipse.core.launcher.Main'
     [java] '-Declipse.home=/usr/local/share/eclipse-SDK-3.5.2-linux-gtk/'
     [java] '-Dexport.source=false'
     [java] '-Dtarget.platform=linux-gtk'
     [java] '-Dtarget.version=VER'
     [java] '-configuration'
     [java] 'file:/usr/local/share/eclipse-SDK-3.5.2-linux-gtk//configuration'
     [java] '-application'
     [java] 'org.eclipse.ant.core.antRunner'
     [java] '-data'
     [java] '/home/olivier/workspace-SDK/org.decisiondeck.dist/..'
     [java] '-buildfile'
     [java] '/home/olivier/workspace-SDK/org.decisiondeck.dist/dist.xml'
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] [org.eclipse.contribution.weaving.jdt] error at org/eclipse/contribution/jdt/IsWovenTester.aj::0 class 'org.eclipse.contribution.jdt.IsWovenTester' is already woven and has not been built in reweavable mode
     [java] [org.eclipse.contribution.weaving.jdt] error at org/eclipse/contribution/jdt/IsWovenTester.aj::0 class 'org.eclipse.contribution.jdt.IsWovenTester$WeavingMarker' is already woven and has not been built in reweavable mode
     [java] Buildfile: /home/olivier/workspace-SDK/org.decisiondeck.dist/dist.xml
     [java] d2:init:
     [java]     [mkdir] Created dir: /home/olivier/workspace-SDK/org.decisiondeck.dist/build
     [java]     [mkdir] Created dir: /home/olivier/workspace-SDK/org.decisiondeck.dist/build/linux-gtk
     [java]     [mkdir] Created dir: /home/olivier/workspace-SDK/org.decisiondeck.dist/build/linux-gtk/configuration
     [java] d2:osgi:bundles:core:
     [java] [org.eclipse.contribution.weaving.jdt] error at org/eclipse/contribution/jdt/sourceprovider/SourceTransformerAspect.aj::0 class 'org.eclipse.contribution.jdt.sourceprovider.SourceTransformerAspect' is already woven and has not been built in reweavable mode
     [java] d2:osgi:bundles:lib:
     [java] d2:osgi:bundles:remoting:
     [java] d2:osgi:bundles:methods:
     [java] d2:osgi:ext:
     [java]      [copy] Copying 5 files to /home/olivier/workspace-SDK/org.decisiondeck.dist/build/linux-gtk/plugins
     [java] d2:osgi:
     [java] d2:runtime:files:
     [java]      [copy] Copying 3 files to /home/olivier/workspace-SDK/org.decisiondeck.dist/build/linux-gtk
     [java]      [copy] Copying 4 files to /home/olivier/workspace-SDK/org.decisiondeck.dist/build/linux-gtk
     [java] d2:build:
     [java]       [zip] Building zip: /home/olivier/workspace-SDK/org.decisiondeck.dist/dist/
     [java] d2:zip:
     [java]    [delete] Deleting directory /home/olivier/workspace-SDK/org.decisiondeck.dist/build
     [java] Total time: 25 seconds
Total time: 32 seconds

[Updated on: Wed, 28 April 2010 17:03]

Report message to a moderator

Previous Topic:Plugin with graphic editor like the one for MANIFEST.MF of many plugins
Next Topic:***Urgent***Need a separator to objectContribution
Goto Forum:

Current Time: Tue Apr 24 07:07:35 GMT 2018

Powered by FUDForum. Page generated in 0.02143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software