| Summary: | Rootfiles includes version control metadata | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Alex Blewitt <alex.blewitt> |
| Component: | Tycho | Assignee: | Jan Sievers <jan.sievers> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | anthony.dahanne, jan.sievers, t-oberlies |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 352251 | ||
| Bug Blocks: | |||
|
Description
Alex Blewitt
Here's a workaround (for anyone else tripping over the problem)
Add this to your pom.xml for the feature build:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/rootfiles</outputDirectory>
<resources>
<resource>
<directory>resources</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Then change your build.properties to include
rootfiles = target/rootfiles
Since the copy-resources phase doesn't copy across the metadata, it doesn't get embedded into the rootfiles.zip and so doesn't litter the product with your SCM info.
(or you could just use git)
I like your workaround :-) In fact, I think that the default filter from the maven-resources-plugin should be applied to root file folders by default. Root files should behave in the same way as other resources in a Maven build. as a preparation, commit 858a9d9 adds support for ant-like filesets which have default excludes for typical version control metadata files. TODO: apply Tobias' FeatureRootAdvice refactoring and then use the fileset with default excludes. (In reply to comment #3) > TODO: apply Tobias' FeatureRootAdvice refactoring and then use the fileset with > default excludes. This is done. Jan, you can now go ahead and integrate the patterns support (bug 352251), which - through the default excludes - also solves this issue. fixed with commit b5151 *** Bug 361875 has been marked as a duplicate of this bug. *** |