I must have smoked one without filter too much. :-) 2008/5/12 Stephen Connolly <[EMAIL PROTECTED]>:
> <targetPath>../config</targetPath> > > ? > > (Screaming hack of the month) > > -Stephen > > On Fri, Apr 25, 2008 at 2:56 PM, Borut Bolčina <[EMAIL PROTECTED]> > wrote: > > > Thanks, but this is not a solution. I want to filter some files in > > src/main/config and put them in target/config (and NOT in > > target/classes/config). All I want to achive is to prepare files for > > different enviroments with filtering. > > > > This doesn't work: > > > > <resources> > > <resource> > > <directory>src/main/resources</directory> > > </resource> > > <resource> > > <directory>src/main/config</directory> > > <filtering>true</filtering> > > > <targetPath>${project.build.directory}/config</targetPath> > > </resource> > > </resources> > > > > as the variable is not expanded and targetPath is relative to the > > target/classes directory. > > > > > > Any hints? > > > > Using Maven 2.0.8 > > > > 2008/4/4 Zemian Deng <[EMAIL PROTECTED]>: > > > > > Hello Borut, > > > placing those config files in your src/main/resources will make them > > > visible > > > in classpath. filter them out in your jar plugin and you won't see > them > > > during packaging. And you said you know how to do this. :) > > > > > > > > > On Fri, Apr 4, 2008 at 3:50 AM, Borut Bolčina <[EMAIL PROTECTED] > > > > > wrote: > > > > > > > Hello, > > > > > > > > I would like to > > > > > > > > - filter config directory (some property/configuration files), > > > > - don't package the content of the config it in the jar > > > > - and make config directory a classpath entry for the exec:java > > plugin > > > > > > > > I know how to filter src/main/resources. > > > > > > > > Any tips? > > > > > > > > Cheers,Borut > > > > > > > > > > > > > > > > -- > > > Thanks, > > > Zemian Deng > > > > > >