Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Fw: [p2-dev] How to reference a file in a feature's home directory

Can you please provide some instruction on how to create a native IU? The reason I picked up feature was that I didn't know there was another alternative. Thanks.

Best Regards

Samuel Wu

----- Forwarded by Samuel Wu/Toronto/IBM on 05/10/2009 10:06 PM -----

          Simon Kaegi/Ottawa/IBM@IBMCA
          Sent by: p2-dev-bounces@xxxxxxxxxxx

          05/08/2009 03:35 PM

          Please respond to
          P2 developer discussions <p2-dev@xxxxxxxxxxx>

To

P2 developer discussions <p2-dev@xxxxxxxxxxx>

cc


Subject

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.

-Simon

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,

From:

Samuel Wu/Toronto/IBM@IBMCA

To:

p2-dev@xxxxxxxxxxx

Date:

05/07/2009 01:30 PM

Subject:

[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.
copy(source:@aritifact/
temp/patch.txt,target:c${#58}/temp/patch,overwrite:true)

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

Best Regards

Samuel Wu
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev

GIF image

GIF image

GIF image


Back to the top