Export-Package, Package ... does not exist after ant builder. [message #328514] |
Tue, 27 May 2008 01:39  |
Eclipse User |
|
|
|
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> <target name="copy" description="Copy original library"><br>
<copy todir="." file="${original.project.jar}"/><br>
</target><br>
<target name="clean" description="Clean project"><br>
<delete file="${jar.file.name}"/><br>
</target><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 01:20   |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04303 seconds