Committing patch from Karl to make framework version a
compile-time substition. (FELIX-3035)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1173825 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/pom.xml b/framework/pom.xml
index e2bc4b8..5de46e4 100644
--- a/framework/pom.xml
+++ b/framework/pom.xml
@@ -79,5 +79,32 @@
</configuration>
</plugin>
</plugins>
+ <resources>
+ <!-- Add back in the default resources, since we are overriding resources. -->
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ <!-- Copy Felix.java with property substitution enabled to get version. -->
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>org/apache/felix/framework/Felix.java</include>
+ </includes>
+ <filtering>true</filtering>
+ <targetPath>../filtered-sources/java</targetPath>
+ </resource>
+ <!-- Copy other source files with no property substitution. -->
+ <resource>
+ <directory>src/main/java</directory>
+ <excludes>
+ <exclude>org/apache/felix/framework/Felix.java</exclude>
+ </excludes>
+ <filtering>false</filtering>
+ <targetPath>../filtered-sources/java</targetPath>
+ </resource>
+ </resources>
+ <!-- Set the source directory to be the filtered source files. -->
+ <sourceDirectory>target/filtered-sources/java</sourceDirectory>
</build>
</project>