Commit 44b23b75 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by daryl herzmann

OF-546: Add metadata filter

This commit allows a plugin.xml to use a reference to data defined in the pom.xml. This reduces duplicate data.

For instance, in plugin.xml, one could now define the version number by referring to the version number of the
maven artifact:

  <version>${project.version}</version>

Note that plugin.xml files that are processed using the old Apache Ant based build, will not be processed correctly.
parent 3f2e8b0c
......@@ -9,7 +9,7 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<!-- metadata files (plugin.xml, icons, etc). -->
<!-- metadata files (readme, icons, etc). -->
<fileSet>
<outputDirectory/>
<directory>${project.build.sourceDirectory}/../..</directory>
......@@ -17,7 +17,6 @@
<include>*.html</include>
<include>*.gif</include>
<include>*.png</include>
<include>plugin.xml</include>
<include>classes/**</include>
</includes>
</fileSet>
......@@ -49,6 +48,15 @@
</fileSets>
<!-- metadata files that need to have content replaced by Maven metadata -->
<files>
<file>
<source>plugin.xml</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
</files>
<!-- Bundle the dependencies of this plugin -->
<dependencySets>
<dependencySet>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment