[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Export-Package, Package ... does not exist after ant builder.

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.