|Re: [p2-dev] How to reference a file in a feature's home directory|
The @artifact syntax has real problems when you're mixing native touchpoint actions with eclipse touchpoint artifacts so to be honest there currently isn't a good and consistent way to reference the location where the feature was placed in unzip or copy. What happens in your case is that when use @artifact the action will look for an artifact in the native artifact cache instead of the eclipse touchpoint's cache. I'm not really happy with the situation and have opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=275404 to see if we can do something with better consistency.
Having a good access to the artifact location is reasonable however one concern with the approach you show is around treating features like file containers with actions to act on their contents. This is a bit of a re-purposing of feature; it would seem far more sensible to create an independent Native IU and unzip it's artifact and move it's files around. There are still usability issues with authoring native IUs and we can work on this however you'll be better off not overloading features in this way if you can craft native IUs for the short-term.
Samuel Wu---05/07/2009 01:30:26 PM---Hello there,
05/07/2009 01:30 PM
[p2-dev] How to reference a file in a feature's home directory