felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kriens <Peter.Kri...@aQute.biz>
Subject Re[2]: [Bnd] including root level resources on the bundle classpath?
Date Tue, 05 Jun 2007 17:01:59 GMT
AD> Include-Resource: log4j.properties
AD> that will put your file in the root of the jar.
Notice that you can also rename the file if you want to ...

 Include-Resource: log4j.properties=whatever/abc/log4j.properties

Kind regards,

     Peter Kriens
     
AD> Private-Package is about directories, so you will have to have a package
AD> before to get included.
AD> But uou can use:

AD> Include-Resource: log4j.properties

AD> that will put your file in the root of the jar.

AD> Alin

AD> On 6/5/07, Peter Neubauer <peter.neubauer@jayway.se> wrote:
>>
>> Hi there,
>> I would like to include resources at root level (without a package
>> name) so they get into the bundles classpath, e.g. log4j.properties.
>> What do I use to get the included? I tried something like
>>
>> Private-Package: lib, log4j.properties
>>
>> in my details.bnd (using PaxConstruct structure) but that does only
>> include the resources under src/main/resources/lib/, not
>> src/main/resources/log4j.properties.
>>
>> Cheers
>>
>> /peter
>>


-- 
Peter Kriens                              Tel +33467542167
9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
34160 Beaulieu, France                    ICQ 255570717
Skype pkriens                             Fax +1 8153772599


Mime
View raw message