maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franz see <franz....@gmail.com>
Subject Re: [m2] Simple copy and filter plugin?
Date Wed, 07 Feb 2007 15:33:03 GMT

Good day to you, Sebastian,

Actually you can with maven-resources-plugin ( though it may not be pretty
).

Something like...

<project>
  ...
  <build>
    <resources>
      <resource>
        <targetPath>../../some-path-from-the-basedir</targetPath>
        <filtering><!-- true, or false --></filtering>
        <directory><!-- relative path from ${basedir} --></directory>
      </resource>
      <resource>
        <targetPath>../../some-path-from-the-basedir-2</targetPath>
        <filtering><!-- true, or false --></filtering>
        <directory><!-- another relative path from ${basedir}
--></directory>
      </resource>
      ...
    </resources>
  </build>
</project>

Cheers,
Franz


Sebastian Breit wrote:
> 
> Hi,
> 
> often i need only to copy some files from one directory to another. 
> Sometimes the files must be filtered. Is there any simple plugin for this?
> 
> I tried two plugins to do the job:
> - The assemby-plugin doesn't filter filesets and i can't read 
> ${project.build.finalName} in the descriptor.
> - The resources-plugin isn't free to set source and destination 
> directory on each execution.
> 
> Regards
> Sebastian
> 
> -- 
> T-Systems Multimedia Solutions GmbH (T-Systems MMS)
> Sebastian Breit
> Softwareentwickler
> Hausanschrift: Riesaer Strasse 5, 01129 Dresden
> Postanschrift:  Postfach 10 02 24, 01072 Dresden
> Telefon: +49 351 28 20-29 27
> Telefax: +49 351 28 20-51 14
> E-Mail: mailto:Sebastian.Breit@t-systems.com
> Internet: http://www.t-systems-mms.com 
> Aufsichtsrat: Helmut Binder (Vorsitzender) 
> Geschäftsführung: Dr. Klaus Radermacher, Peter Klingenburg
> Handelsregister: Amtsgericht Dresden (HRB 11433), Sitz der Gesellschaft
> Dresden
> Ust-IdNr.: DE 811 807 949
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--Simple-copy-and-filter-plugin--tf3187244s177.html#a8847641
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message