Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Using p2.inf to create a directory
Using p2.inf to create a directory [message #59353] Sat, 02 May 2009 18:29 Go to next message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
I have the following line in the /META-INF/p2.inf of a bundle:

instructions.install = mkdir(path:dropins);

This results in a "dropins" dir being created -- in the dir from which the
build is being run. But what I want is to have this dir appear in the
product, i.e. the zip files that the headless build creates for the RCP
application.

Using path:@artifact/dropins instead, I don't see any dir created.
Suggestions? I know there is a way to add files and directories via
features, but I'd rather not have to create feature projects just for
adding this one empty directory...
Re: Using p2.inf to create a directory [message #59810 is a reply to message #59353] Wed, 06 May 2009 22:22 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Try
instructions.install = mkdir(path:${installFolder}/dropins);

I'm not sure that the feature contributed rootfiles will do empty
directories. So this is probably the best method.

-Andrew
Eric Jain wrote:
> I have the following line in the /META-INF/p2.inf of a bundle:
>
> instructions.install = mkdir(path:dropins);
>
> This results in a "dropins" dir being created -- in the dir from which
> the build is being run. But what I want is to have this dir appear in
> the product, i.e. the zip files that the headless build creates for the
> RCP application.
>
> Using path:@artifact/dropins instead, I don't see any dir created.
> Suggestions? I know there is a way to add files and directories via
> features, but I'd rather not have to create feature projects just for
> adding this one empty directory...
>
>
Re: Using p2.inf to create a directory [message #59882 is a reply to message #59810] Thu, 07 May 2009 00:56 Go to previous message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
Andrew Niefer wrote:
> instructions.install = mkdir(path:${installFolder}/dropins);

Thanks, that works!
Re: Using p2.inf to create a directory [message #596871 is a reply to message #59353] Wed, 06 May 2009 22:22 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Try
instructions.install = mkdir(path:${installFolder}/dropins);

I'm not sure that the feature contributed rootfiles will do empty
directories. So this is probably the best method.

-Andrew
Eric Jain wrote:
> I have the following line in the /META-INF/p2.inf of a bundle:
>
> instructions.install = mkdir(path:dropins);
>
> This results in a "dropins" dir being created -- in the dir from which
> the build is being run. But what I want is to have this dir appear in
> the product, i.e. the zip files that the headless build creates for the
> RCP application.
>
> Using path:@artifact/dropins instead, I don't see any dir created.
> Suggestions? I know there is a way to add files and directories via
> features, but I'd rather not have to create feature projects just for
> adding this one empty directory...
>
>
Re: Using p2.inf to create a directory [message #596894 is a reply to message #59810] Thu, 07 May 2009 00:56 Go to previous message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
Andrew Niefer wrote:
> instructions.install = mkdir(path:${installFolder}/dropins);

Thanks, that works!
Previous Topic:Issue in building feature - Eclipse 3.4.1
Next Topic:Problems with product plug-in start level configuration form
Goto Forum:
  


Current Time: Sun Jun 13 00:45:58 GMT 2021

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

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

Back to the top