Mick Knutson schrieb:
I have a property in my filer.properties that I want to filter with the
project version property like:

c2.calculateCOBTotal.service.url =
http://localhost:8888/orabpel/default/CalculateCOBTotal/${project.version}

But it does not seem to filter the project.version. Any help?


This is working for me:

pom.xml:

  <project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>my-test-group</groupId>
    <artifactId>my-test-app</artifactId>
    <version>1.0-SNAPSHOT</version>

    <build>
      <filters>
        <filter>src/main/filters/filter.properties</filter>
      </filters>
      <resources>
        <resource>
          <directory>src/main/resources</directory>
          <filtering>true</filtering>
        </resource>
      </resources>
    </build>
  </project>

src/main/filters/filters.properties:

  myProperty=http://url/${project.version}

src/main/resources/testfile:

  ${myProperty}


-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to