[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Error in the p2 workspace; org.eclipse.equinox.p2.jarprocessor missing export

Hi Pascal, 
Thanks for the answer.
In fact, in the project org.eclipse.equinox.p2.repository.tools, they embed their own repository-tools-ant.jar , that contains the needed classes.
So I removed the import/export packages lines that I previously added, and I added to my manifest :
Bundle-ClassPath: lib/repository-tools-ant.jar,
 .

Well, not the OSGi way to do dependencies, but Eclipse can find  the JarProcessorTask now.

Should this change be committed ?

Regards,
Anthony


 
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant Ãtre confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le destinataire ou une personne dÃsignÃe autorisÃe. Si vous le receviez par erreur, veuillez nous aviser immÃdiatement et le dÃtruire.
 
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
 

De : p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] De la part de Pascal Rapicault
Envoyà : 28 mars 2011 16:36
à : P2 developer discussions
Objet : Re: [p2-dev] Error in the p2 workspace;org.eclipse.equinox.p2.jarprocessor missing export

I should have added that doing the PDE dance (e.g. trying to update the classpath or clearing rebuild or rebooting or restting the target platform) should help.
If you remove the package after having added it you should still be fine.

On 2011-03-28, at 4:33 PM, Pascal Rapicault wrote:

> This is PDE acting up, the .ant packages should not be exported since they are not meant to be used by any other type and just be made available through the Ant tasks.
> 
> On 2011-03-28, at 3:46 PM, Dahanne, Anthony wrote:
> 
>> Hello all,
>> So every time I check out P2 fresh from source (following those
>> instructions :
>> http://wiki.eclipse.org/Equinox_p2_Getting_Started_for_Developers ) I
>> can't help but notice that there is this annoying error :
>> 
>> JarProcessorTask cannot be resolved to a type
>> /org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/
>> internal/repository/tools/tasks	line 61	Java Problem
>> 
>> This is due to the fact that the manifest of
>> org.eclipse.equinox.p2.jarprocessor does not export
>> org.eclipse.equinox.internal.p2.jarprocessor.ant .
>> 
>> What I usually do, is that I export  this
>> org.eclipse.equinox.internal.p2.jarprocessor.ant from
>> org.eclipse.equinox.internal.p2.jarprocessor , but I was wondering if
>> maybe something was made on purpose here...
>> 
>> As usual, thanks for help !
>> 
>> 
>> 
>> Anthony Dahanne
>> Software Developer
>> Compuware Montreal
>> 75 Rue Queen, Suite 6500
>> Montreal, QC, Canada H3C 2N6
>> 514-281-1100 x1173 Direct
>> 
>> 
>> 
>> Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant Ãtre confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le destinataire ou une personne dÃsignÃe autorisÃe. Si vous le receviez par erreur, veuillez nous aviser immÃdiatement et le dÃtruire.
>> 
>> The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
>> 
>> 
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
> 

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev