Community
Participate
Working Groups
Build Identifier: 20100917-0705 I want to add a software site to my target platform. My software site is located in a project. In a target platform I can refer to a plugins/features or installation folder by using variables like ${porject_loc:name of project}/path_to_plugins. But I cannot do the same for a software site. Or ist this also possible? I have the problem that if I use a software site from some server I have to check in or backup the contents of that server differently than I do that with my sources. I want to hold all information of my product in projects, target platform including, and check that all into my versioning system. Another team member could just synchronize all the data to his workspace and start using the product. Is it possible to let the location of the software site have a variable like ${project_loc} ? Thanks. Udo Reproducible: Always
Moving to p2, as you are asking for variable support when adding a p2 repository.
Curtis, though p2 does not have support for variables in repositories, p2 would unlikely start depending on workspace or something like that to perform the variable replacement. For this particular case, I think PDE is probably more apt to perform the variable replacement.
I suggest that the target platform editor in PDE accepts the variable for software sites like it does it for folders and installations.
I'll move this back to PDE. However, I don't see us implement variable support here either as we are using UI components from p2. We would have to do some significant changes to support it.
*** Bug 419156 has been marked as a duplicate of this bug. ***
Copied from duplicate bug #419156: In order to provide some more flexibility into target files (especially when using with Tycho) it would be interesting to add the concept of "parameters" in target-definitions. Those properties could be used for example for factorize some parts of the URL. The main use-case I have in mind is: Let's imagine we deal with 2 kinds of URLs: stables and snapshots. The difference is just a segment in URL ("stable" vs "snapshots"). It would be nice to be able to put this segement in a property "siteQuality", with default value "stable", and to allow use to override the value of the "siteQuality" in the .target file, or to override this parameter in Tycho. Note that this is already achievable in Tycho without target-platforms, using "repositories" but repositories have some limitation that target definition don't have.