summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml68
1 files changed, 54 insertions, 14 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml b/sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml
index 04c60ef04d..6033b273d6 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml
+++ b/sca-java-1.x/branches/sca-java-1.6.1/tools/eclipse/features/core/pom.xml
@@ -38,26 +38,49 @@
</dependencies>
<build>
- <filters>
- <filter>../../target/filter.properties</filter>
- </filters>
-
<resources>
- <resource>
- <directory>${basedir}</directory>
- <filtering>true</filtering>
- <excludes>
- <exclude>**/.*/**</exclude>
- <exclude>pom.xml</exclude>
- <exclude>build.*</exclude>
- <exclude>target/**</exclude>
- </excludes>
- </resource>
+ <resource>
+ <directory>${basedir}</directory>
+ <excludes>
+ <exclude>**/.*/**</exclude>
+ <exclude>pom.xml</exclude>
+ <exclude>build.*</exclude>
+ <exclude>filtered-resources/**</exclude>
+ <exclude>target/**</exclude>
+ </excludes>
+ </resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.4.3</version>
+ <executions>
+ <!-- TUSCANY-xxxx: Copy resource files that need to be filtered -->
+ <execution>
+ <id>copy-filtered-resources</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}</outputDirectory>
+ <filters>
+ <filter>${basedir}/../../target/filter.properties</filter>
+ </filters>
+ <resources>
+ <resource>
+ <directory>${basedir}/filtered-resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
@@ -65,6 +88,23 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <!-- TUSCANY-xxxx: Delete copied filtered resource files -->
+ <fileset>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>NOTICE</include>
+ <include>META-INF/MANIFEST.MF</include>
+ <include>feature.xml</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
</plugins>
</build>