The way I would do it, is create a directory called 
'src/main/filter-resources' (or something similar, just NOT the default 
'src/main/resources'!) and then configure the resource-plugin to run 
'resources:copy-resources' to eg 'target/filtered-resources'. With 
filtering turned on of course. :-)

Then you have the assembly-plugin configured to use 
'target/filtered-resources' as input (resources? I'm not very familiar 
with the assembly-plugin!) for your assembly.

I think this would do the trick. Just remember what I wrote in the 
parallel mail -- make sure you work around the @-bug!

Roland


On 21.04.2011 14:11, David Delbecq wrote:
> well, if i mark them as "ressource" they will be put in the jar file, no?
>
> ----- Mail original -----
>
> De: "Roland Asmann" <roland.asm...@adesso.at>
> À: users@maven.apache.org
> Envoyé: Jeudi 21 Avril 2011 12:38:44
> Objet: Re: Only partial filtering of .bat with assembly
>
> How about you don't let the assembly-plugin copy your resources, but
> have the resources-plugin do it?
>
> Roland
>
>
> On 21.04.2011 13:31, David Delbecq wrote:
>  > Thanks for the hint, but not an option. The bat does not only call the
>  > jar file, it actually does some logic on parameters, call several
>  > applications, manage temporary files.
>  >
>  > We are migrating to maven an application that mixes together .bat/.sh,
>  > java jars and perl scripts..
>  > We will later migrate to full java if possible, but one step at a time ;)
>  >
>  > ----- Mail original -----
>  >
>  > De: "Karl Heinz Marbaise" <k...@soebes.de>
>  > À: users@maven.apache.org
>  > Envoyé: Jeudi 21 Avril 2011 11:26:17
>  > Objet: Re: Only partial filtering of .bat with assembly
>  >
>  > Hi,
>  >
>  > it looks like you are trying to build a BAT file which will call your
> java
>  > code...But for this purposes i would take a deeper look into the
>  > maven-appassembler-plugin which produces such kind of batch-file
>  > automatically...
>  >
>  > http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>  >
>  > Kind regards
>  > Karl Heinz Marbaise
>  >
>  > -----
>  > Kind regards
>  > Karl Heinz Marbaise
>  > ----
>  > http://www.soebes.de
>  > http://www.skmwiki.de
>  > http://supose.org/wiki/supose
>  > --
>  > View this message in context:
>  >
> http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.html
>  > Sent from the Maven - Users mailing list archive at Nabble.com.
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>  > For additional commands, e-mail: users-h...@maven.apache.org
>  >
>  >
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
> A-1210 Wien M +43 664 88657566
> E roland.asm...@adesso.at
> W www.adesso.at
>
> -------------------------------------------------------------
>  >>> business. people. technology. <<<
> -------------------------------------------------------------
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asm...@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

Reply via email to