Either you change the name of the property in your file or use the properties tag in your pom but I'm afraid it will affect Maven.
Jeff 2008/1/17 Rex Huang <[EMAIL PROTECTED]>: > but I need to use filtering in other files with other properties, > so filtering must be set to true, but <name> is set by default, I don't > want > to use it as filter. > > BR//Rex > > 2008/1/17 Jeff MAURY <[EMAIL PROTECTED]>: > > > Change filtering from true to false. > > > > On Jan 17, 2008 12:03 PM, Rex Huang <[EMAIL PROTECTED]> wrote: > > > > > by default in pom.xml there has properity <name> > > > such as: > > > <modelVersion>4.0.0</modelVersion> > > > <groupId>com.mycompany.app</groupId> > > > <artifactId>my-app</artifactId> > > > <packaging>jar</packaging> > > > <version>1.1-SNAPSHOT</version> > > > <name>my-app</name> > > > > > > and I use filtering like this: > > > <build> > > > <resources> > > > <resource> > > > <directory>src/main/resources</directory --> > > > <filtering>true</filtering> > > > </resource> > > > </resources> > > > </build> > > > > > > then files in src/main/resources has been replaced not as I wanted, > such > > > as > > > in abc.txt: > > > path=${name}.dat changed to path=my-app.dat > > > > > > actually I don't want it to be replaced, how can I do? > > > > > > > > > > > -- > > La mélancolie c'est communiste > > Tout le monde y a droit de temps en temps > > La mélancolie n'est pas capitaliste > > C'est même gratuit pour les perdants > > La mélancolie c'est pacifiste > > On ne lui rentre jamais dedans > > La mélancolie oh tu sais ça existe > > Elle se prend même avec des gants > > La mélancolie c'est pour les syndicalistes > > Il faut juste sa carte de permanent > > > > Miossec (2006) > > > > http://www.jeffmaury.com > > http://riadiscuss.jeffmaury.com > > > -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com