Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Export-Package, Package ... does not exist after ant builder.
Export-Package, Package ... does not exist after ant builder. [message #328514] Tue, 27 May 2008 05:39 Go to next message
Andrei Neshcheret is currently offline Andrei NeshcheretFriend
Messages: 29
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------030708000200020901040705
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Greeting Group!

Environment:
OS: Windows Vista
Eclipse SDK : Version: 3.4.0, Build id: I20080516-1333

A have three projects:

1. Plain jar archive, contains one package 'ru.infinet.ObjectManager'
2. Plugin project, created by wizard from existing JAR archive (
Project 1 ), and export this package thru 'Runtime' page in
MANIFEST editor.
3. RCP Application, that uses (plugin Project 2) and classes from
package 'ru.infinet.ObjectManager'

All worked as expected, but I'm added ANT builder to 'Project 2' this
builder simply copy fresh/latest version of jar file from 'Project 1'
into 'Project 2' directory structure and tell to refresh 'project
containing the selected resource'.

Two targets:

1. copy
2. clear

~~~~~~~~~~~~~~~~~~~~~~
<target name="copy" description="Copy original library">
<copy todir="." file="${original.project.jar}"/>
</target>
<target name="clean" description="Clean project">
<delete file="${jar.file.name}"/>
</target>
~~~~~~~~~~~~~~~~~~~~~~

Problem is: After 'Clean and build' all ant targets finished with
success status, package explorer contains new version of jar, but IDE
has one error marker
Description: Package 'ru.infinet.ObjectManager' does not exist in this
plug-in
Severity: Error
On element: MANIFEST.MF
In folder: ru.infinet.objectmanager/META-INF
Location: line 10

--- MANIFEST.MF ---
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Objectmanager Plug-in
Bundle-SymbolicName: ru.infinet.objectmanager
Bundle-Version: 1.0.0
Bundle-Vendor: Infinet Wireless Ltd.
Require-Bundle: org.eclipse.core.runtime
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ClassPath: ObjectManager.jar
Export-Package: ru.infinet.ObjectManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Only 'Calculate Uses' button on 'Runtime' page of MANIFEST editor and
'save', removed this Error.
This is a bug? Or how i'm can resolve this situation.

--
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.


--------------030708000200020901040705
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Greeting Group!<br>
<br>
Environment:<br>
OS: Windows Vista<br>
Eclipse SDK : Version: 3.4.0, Build id: I20080516-1333<br>
<br>
A have three projects:<br>
<ol>
<li>Plain jar archive, contains one package 'ru.infinet.ObjectManager'<br>
</li>
<li>Plugin project, created by wizard from existing JAR archive (
Project 1 ), and export this package  thru 'Runtime' page in MANIFEST
editor.<br>
</li>
<li>RCP Application, that uses (plugin Project 2) and classes from
package 'ru.infinet.ObjectManager'</li>
</ol>
All worked as expected, but I'm added ANT builder to 'Project 2' this
builder simply copy fresh/latest version of jar file from 'Project 1'
into 'Project 2' directory structure and tell to refresh 'project
containing the selected resource'.<br>
<br>
Two targets:<br>
<ol>
<li>copy</li>
<li>clear</li>
</ol>
~~~~~~~~~~~~~~~~~~~~~~<br>
<tt>  &lt;target name="copy" description="Copy original library"&gt;<br>
    &lt;copy todir="." file="${original.project.jar}"/&gt;<br>
  &lt;/target&gt;<br>
  &lt;target name="clean" description="Clean project"&gt;<br>
    &lt;delete file="${jar.file.name}"/&gt;<br>
  &lt;/target&gt;<br>
~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
</tt>Problem is: After 'Clean and build' all ant targets finished with
success status, package explorer contains new version of jar, but IDE
has one error marker<br>
Description: Package 'ru.infinet.ObjectManager' does not exist in this
plug-in<br>
Severity: Error<br>
On element: MANIFEST.MF<br>
In folder: ru.infinet.objectmanager/META-INF<br>
Location: line 10<br>
<br>
<tt>--- </tt>MANIFEST.MF <tt>---<br>
Manifest-Version: 1.0<br>
Bundle-ManifestVersion: 2<br>
Bundle-Name: Objectmanager Plug-in<br>
Bundle-SymbolicName: ru.infinet.objectmanager<br>
Bundle-Version: 1.0.0<br>
Bundle-Vendor: Infinet Wireless Ltd.<br>
Require-Bundle: org.eclipse.core.runtime<br>
Bundle-RequiredExecutionEnvironment: J2SE-1.5<br>
Bundle-ClassPath: ObjectManager.jar<br>
Export-Package: ru.infinet.ObjectManager<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
</tt>Only 'Calculate Uses'  button on 'Runtime' page of MANIFEST editor
and 'save', removed this Error.<br>
This is a bug? Or how i'm can resolve this situation.<br>
<br>
<pre class="moz-signature" cols="72">--
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.
</pre>
</body>
</html>

--------------030708000200020901040705--
Re: Export-Package, Package ... does not exist after ant builder. [message #328603 is a reply to message #328514] Wed, 28 May 2008 05:20 Go to previous messageGo to next message
Andrei Neshcheret is currently offline Andrei NeshcheretFriend
Messages: 29
Registered: July 2009
Junior Member
UP!

Environment:
OS: Windows Vista
Eclipse SDK : Version: 3.4.0, Build id: I20080516-1333

A have three projects:

1. Plain jar archive, contains one package 'ru.infinet.ObjectManager'
2. Plugin project, created by wizard from existing JAR archive (
Project 1 ), and export this package on 'Runtime' page in MANIFEST editor.
3. RCP Application, that uses (plugin Project 2) and classes from
package 'ru.infinet.ObjectManager'

All worked as expected, but I'm added ANT builder to 'Project 2' this
builder simply copy fresh/latest version of jar file from 'Project 1'
into 'Project 2' directory structure and tell to refresh 'project
containing the selected resource'.

Two targets:

1. copy
2. clean

~~~~~~~~~~~~~~~~~~~~~~
<target name="copy" description="Copy original library">
<copy todir="." file="${original.project.jar}"/>
</target>
<target name="clean" description="Clean project">
<delete file="${jar.file.name}"/>
</target>
~~~~~~~~~~~~~~~~~~~~~~

Problem is: After 'Clean and build' all ant targets finished with
success status, package explorer contains new version of jar, but IDE
has one error marker
Description: Package 'ru.infinet.ObjectManager' does not exist in this
plug-in.
Severity: Error
On element: MANIFEST.MF
In folder: ru.infinet.objectmanager/META-INF
Location: line 10

--- MANIFEST.MF ---
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Objectmanager Plug-in
Bundle-SymbolicName: ru.infinet.objectmanager
Bundle-Version: 1.0.0
Bundle-Vendor: Infinet Wireless Ltd.
Require-Bundle: org.eclipse.core.runtime
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ClassPath: ObjectManager.jar
Export-Package: ru.infinet.ObjectManager
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Only 'Calculate Uses' button on 'Runtime' page of MANIFEST editor and
'save', removed this Error.

Any idea? Now to automatically resolve this issue?

---
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.
Re: Export-Package, Package ... does not exist after ant builder. [message #328650 is a reply to message #328603] Fri, 30 May 2008 08:00 Go to previous messageGo to next message
Andrei Neshcheret is currently offline Andrei NeshcheretFriend
Messages: 29
Registered: July 2009
Junior Member
Andrew Nesheret пишет:
> UP!
>
> Environment:
> OS: Windows Vista
> Eclipse SDK : Version: 3.4.0, Build id: I20080516-1333
>
> Any idea? Now to automatically resolve this issue?

No comments?
Should I report a bug in bugs report system?
--
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.
Re: Export-Package, Package ... does not exist after ant builder. [message #328653 is a reply to message #328650] Fri, 30 May 2008 08:51 Go to previous messageGo to next message
Andrei Neshcheret is currently offline Andrei NeshcheretFriend
Messages: 29
Registered: July 2009
Junior Member
Andrew Nesheret пишет:
> Should I report a bug in bugs report system?
Bug submitted 234792.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=234792

--
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.
Re: Export-Package, Package ... does not exist after ant builder. [message #328794 is a reply to message #328653] Wed, 04 June 2008 03:18 Go to previous message
Andrei Neshcheret is currently offline Andrei NeshcheretFriend
Messages: 29
Registered: July 2009
Junior Member
Andrew Nesheret wrote:
> Bug submitted 234792.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=234792

Silence!?
Hmm...
What am I doing wrong, here and/or in bugs reports system too?
Thanks.
--
Best regards,
Andrew Nesheret
InfiNet Wireless Ltd.
Previous Topic:Alternative to update site for plugin install?
Next Topic:Uninstall plugin
Goto Forum:
  


Current Time: Wed Sep 18 14:17:59 GMT 2024

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

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

Back to the top