2009/3/16 <[email protected]>

> Hello,
>
> My resources have variables which must be replaced with some values before
> they are added to the generated jar file. These variables came from the
> Maven project (like ${project.name}) or from a properties file. This is no
> problem if I'm generating a normal jar file - I just need to say in my
> pom.xml something like
>
> <build>
>
> <filters>
>    <filter>filters/file1.properties</filter>
> </filters>
> ...
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true<filtering>
> <includes>
>    <include>*.xml</include>
> </includes
> </resource>
>
> </build>
>
> How can I achieve the same result using the maven-bundle-plugin?
>

resources marked as filtered are flagged so that the bnd tool knows to
filter them

you just need to pass the filter file to the bnd tool like so:

  <instructions>
    <_include>filters/file1.properties</_include>
    <!-- etc... -->
  </instructions>

note that the bnd tool automatically picks up properties from the Maven
project.

if you want filter files added automatically open a JIRA request + patch (if
available)

Thanks
>
> -- clovis
>
> ______________________________________
> Diese E-Mail kann vertrauliche und geschuetzte Informationen enthalten.
> Wenn diese E-Mail nicht für Sie bestimmt ist, bitten wir Sie, uns
> unverzueglich zu informieren und sie zu loeschen.
>
> This e-mail message may contain information, which is confidential and
> protected. If you are not the intended recipient of this message, we ask you
> to inform us immediately and delete the message afterwards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Cheers, Stuart

Reply via email to