| Summary: | Tycho is not copying the feature.properties file from target/classes when using resources filtering | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Cristiano Gaviao <cvgaviao> | ||||
| Component: | Tycho | Assignee: | Project Inbox <tycho-inbox> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 204890 [details]
this is a simple project that reproduce the problem.
This is a missing feature: Tycho currently doesn't support Maven resource filtering for files included via bin.includes in the build.properties. *** This bug has been marked as a duplicate of bug 362252 *** |
Build Identifier: I20110916-1615 In a Feature Project when using the Resource Plugin to filtering files, all processed files is copied to target/classes directory. But Tycho is not copying the right file (from target/classes) to generated jar. Running the attached project we can see that the filtering is being executed: <code> [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.5:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@53004901] [debug] execute contextualize [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.5:resources' with basic configurator --> [DEBUG] (f) buildFilters = [] [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) escapeWindowsPaths = true [DEBUG] (s) includeEmptyDirs = false [DEBUG] (s) outputDirectory = /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature/target/classes [DEBUG] (s) overwrite = false [DEBUG] (f) project = MavenProject: example.group:example-feature:0.1.0-SNAPSHOT @ /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature/pom.xml [DEBUG] (s) resources = [Resource {targetPath: null, filtering: true, FileSet {directory: /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature, PatternSet [includes: {feature.properties}, excludes: {}]}}] [DEBUG] (f) session = org.apache.maven.execution.MavenSession@2400218d [DEBUG] (f) supportMultiLineFiltering = false [DEBUG] (f) useBuildFilters = true [DEBUG] (s) useDefaultDelimiters = true [DEBUG] -- end configuration -- [DEBUG] properties used {java.vendor=Apple Inc., sun.java.launcher=SUN_STANDARD, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.name=Mac OS X, sun.boot.class.path=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar, env.TMPDIR=/var/folders/1C/1C98cM9mF5aO0C5b9nv7-E+++TI/-Tmp-/, unqualifiedVersion=0.1.0, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_26-b03-384-10M3425, env.Apple_PubSub_Socket_Render=/tmp/launch-qDehj3/Render, project.build.sourceEncoding=UTF-8, env.DISPLAY=/tmp/launch-EZkUTB/org.x:0, user.name=cvgaviao, env.USER=cvgaviao, env.SHELL=/bin/bash, env.__CF_USER_TEXT_ENCODING=0x1F5:0:0, awt.nativeDoubleBuffering=true, env.PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin, user.language=en, sun.boot.library.path=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries, classworlds.conf=/Users/cvgaviao/Workspaces/feast-jpa/.metadata/.plugins/org.eclipse.m2e.core/launches/m2conf6953056665363172703.tmp, indigo-site=http://download.eclipse.org/releases/juno, java.version=1.6.0_26, user.timezone=America/Fortaleza, sun.arch.data.model=64, java.endorsed.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed, buildQualifier=201110101511, sun.cpu.isalist=, sun.jnu.encoding=MacRoman, file.encoding.pkg=sun.io, tycho-version=0.13.0, file.separator=/, java.specification.name=Java Platform API Specification, java.class.version=50.0, user.country=US, java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, java.vm.info=mixed mode, env.LOGNAME=cvgaviao, os.version=10.6.8, path.separator=:, java.vm.version=20.1-b02-384, java.awt.printerjob=apple.awt.CPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=apple.awt.CToolkit, user.home=/Users/cvgaviao, java.specification.vendor=Sun Microsystems Inc., java.library.path=.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java, java.vendor.url=http://www.apple.com/, java.vm.vendor=Apple Inc., gopherProxySet=false, maven.home=/Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/EMBEDDED, java.runtime.name=Java(TM) SE Runtime Environment, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher -B -X -e -s /Users/cvgaviao/.m2/settings.xml clean verify, java.class.path=/Users/cvgaviao/Library/JavaApps/eclipse-SDK-4.2M2-jpa/plugins/org.eclipse.m2e.maven.runtime_1.0.1.201106291304/jars/plexus-classworlds-2.4.jar, env.com.apple.java.jvmMode=client, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, env.APP_ICON_21539=../Resources/Eclipse.icns, env.JAVA_MAIN_CLASS_22356=org.codehaus.plexus.classworlds.launcher.Launcher, sun.cpu.endian=little, sun.os.patch.level=unknown, env.HOME=/Users/cvgaviao, java.io.tmpdir=/var/folders/1C/1C98cM9mF5aO0C5b9nv7-E+++TI/-Tmp-/, java.vendor.url.bug=http://bugreport.apple.com/, env.JAVA_STARTED_ON_FIRST_THREAD_21539=1, env.SSH_AUTH_SOCK=/tmp/launch-U77aoD/Listeners, env.COMMAND_MODE=unix2003, mrj.build=10M3425, os.arch=x86_64, java.awt.graphicsenv=apple.awt.CGraphicsEnvironment, java.ext.dirs=/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext, mrj.version=1060.1.6.0_26-384, env.com.apple.java.jvmTask=JNI.java, user.dir=/Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem, line.separator= , java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding=MacRoman, java.specification.version=1.6} [INFO] Using 'UTF-8' encoding to copy filtered resources. [DEBUG] resource with targetPath null directory /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature excludes [] includes [feature.properties] [DEBUG] ignoreDelta true [INFO] Copying 1 resource [DEBUG] file feature.properties has a filtered file extension [DEBUG] filtering /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature/feature.properties to /Users/cvgaviao/Development/TUTORIALS/TYCHO/prove-feature-problem/example-feature/target/classes/feature.properties [DEBUG] no use filter components <code> But when I unzip the generated jar the expected file is not there. Reproducible: Always Steps to Reproduce: 1. download the attached file 2. run the build 3. unzip the generated feature jar 4. look to feature.properties file