[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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.


Inactive hide details for Samuel Wu---05/07/2009 01:30:26 PM---Hello there,Samuel Wu---05/07/2009 01:30:26 PM---Hello there,


Samuel Wu/Toronto/IBM@IBMCA




05/07/2009 01:30 PM


[p2-dev] How to reference a file in a feature's home directory

Hello there,
I'm trying to use the touch point unzip and copy to distribute the files in the file system. I wonder how to reference the file in the feature's home directory. For instance, I have a feature project which contains a zip file test.zip. I want to unzip it to c:\temp. I tried
unzip(source:@artifact/test.zip,target:c${#58}/temp) but it doesn't seem to work.
The following copy action doesn't work either.

Can you please suggest what's the right syntax? Thanks a lot.

Best Regards

Samuel Wu
p2-dev mailing list

GIF image

GIF image