[buckminster-dev] Relative URI for local readerType in provider search path [message #532978] |
Tue, 11 May 2010 14:11  |
Eclipse User |
|
|
|
Originally posted by: michael.mckibben.twcable.com
Hi All,
I'm a new user to buckminster and I've been banging my head around coming up with a clean solution to importing local set of projects checked out in local directory via a perforce provider. Since the buckminster p4 provider is no longer available, I am trying to use the local reader to materialize a set of plugin projects.
My rmap and cquery files are already relative to where the projects are checked out, and I was hoping there is a buckminster equivalent to ANT's ${basedir} property. I can't use workspace.root, since the projects haven't been materialized into the eclipse workspace yet. I don't want to hard-code the absolute URI since developers checkout the sources to different locations on their workstations.
I was hoping I could write something similar to the following, but it doesn't seem possible:
<searchPath name="localbundles">
<provider componentTypes="osgi.bundle" readerType="local" source="true" mutable="true">
<uri format="{0}/../bundles/{1}">
<bc:propertyRef key="basedir"/> <!-- what do I use here??? -->
<bc:propertyRef key="buckminster.component"/>
<uri>
<!-- using a path relative to the rmap location doesn't work either -->
<uri format="../bundles/{0}">
<bc:propertyRef key="buckminster.component"/>
<uri>
</provider>
</searchPath>
Thanks in advance for any feedback
--Mike
This E-mail and any of its attachments may contain Time Warner
Cable proprietary information, which is privileged, confidential,
or subject to copyright belonging to Time Warner Cable. This E-mail
is intended solely for the use of the individual or entity to which
it is addressed. If you are not the intended recipient of this
E-mail, you are hereby notified that any dissemination,
distribution, copying, or action taken in relation to the contents
of and attachments to this E-mail is strictly prohibited and may be
unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any
copy of this E-mail and any printout.
|
|
|
Re: [buckminster-dev] Relative URI for local readerType in provider search path [message #533012 is a reply to message #532978] |
Tue, 11 May 2010 15:44   |
Eclipse User |
|
|
|
There is nothing stopping you from keeping things in a folder relative
to the workspace. You could hide it from normal view by calling it
".localp4files" or something similar.
The propertyRef should be able to pick up any defined property (defined
on the command line or in a property file).
- henrik
On 5/11/10 8:11 PM, McKibben, Michael wrote:
> Hi All,
>
> I'm a new user to buckminster and I've been banging my head around coming up with a clean solution to importing local set of projects checked out in local directory via a perforce provider. Since the buckminster p4 provider is no longer available, I am trying to use the local reader to materialize a set of plugin projects.
>
> My rmap and cquery files are already relative to where the projects are checked out, and I was hoping there is a buckminster equivalent to ANT's ${basedir} property. I can't use workspace.root, since the projects haven't been materialized into the eclipse workspace yet. I don't want to hard-code the absolute URI since developers checkout the sources to different locations on their workstations.
>
> I was hoping I could write something similar to the following, but it doesn't seem possible:
>
> <searchPath name="localbundles">
> <provider componentTypes="osgi.bundle" readerType="local" source="true" mutable="true">
> <uri format="{0}/../bundles/{1}">
> <bc:propertyRef key="basedir"/> <!-- what do I use here??? -->
> <bc:propertyRef key="buckminster.component"/>
> <uri>
> <!-- using a path relative to the rmap location doesn't work either -->
> <uri format="../bundles/{0}">
> <bc:propertyRef key="buckminster.component"/>
> <uri>
> </provider>
> </searchPath>
>
> Thanks in advance for any feedback
>
> --Mike
> This E-mail and any of its attachments may contain Time Warner
> Cable proprietary information, which is privileged, confidential,
> or subject to copyright belonging to Time Warner Cable. This E-mail
> is intended solely for the use of the individual or entity to which
> it is addressed. If you are not the intended recipient of this
> E-mail, you are hereby notified that any dissemination,
> distribution, copying, or action taken in relation to the contents
> of and attachments to this E-mail is strictly prohibited and may be
> unlawful. If you have received this E-mail in error, please notify
> the sender immediately and permanently delete the original and any
> copy of this E-mail and any printout.
>
|
|
|
|
Re: [buckminster-dev] Relative URI for local readerType in provider search path [message #533055 is a reply to message #533052] |
Wed, 12 May 2010 02:56  |
Eclipse User |
|
|
|
Sorry, I sent this too early.
You can set the workspace.root to the intended location even though the workspace isn't there yet. Buckminster will need
the workspace.root to be set in order to do the import in any case.
The workspace root is set when you pass the -data <path> to the Buckminster import command.
- thomas
On 05/12/2010 08:53 AM, Thomas Hallgren wrote:
> On 05/11/2010 08:11 PM, McKibben, Michael wrote:
>> ...
>> I was hoping I could write something similar to the following, but it
>> doesn't seem possible:
>>
>> <searchPath name="localbundles">
>> <provider componentTypes="osgi.bundle" readerType="local"
>> source="true" mutable="true">
>> <uri format="{0}/../bundles/{1}">
>> <bc:propertyRef key="basedir"/> <!-- what do I use here??? -->
>
> Try "workspace.root"
>
> HTH,
> - thomas
|
|
|
Powered by
FUDForum. Page generated in 0.03243 seconds