Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » B3 » output location question...
output location question... [message #596283] Sat, 20 February 2010 01:32
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2500
Registered: July 2009
Senior Member
Hi,
When generating a default output location for a builder a default URI is
created consisting of:

b3output:/unitName_builderName_version

where
- b3output:/
Is a simple b3 scheme that is easily configured (typically points to
b3tmp:/ which points to the equivalence of file:/tmp

- unitName
Is the name of the unit

- builderName
Is the name of the builder

- version
Is the name of the version

QUESTIONS
1. Buckminster uses a simplified version scheme where qualifier is
dropped from the version to reduce the length of the name and make it
more readable. It is also very unlikely that the same unit/builder
combination is invoked for two units at the same time where they only
differ by qualifier.

The question is, how to get a simplified version from a p2 version
(which can be just about anything).

Should it just accept a string of a max length and truncate the rest?
What about the format? Is the format easily removed?

2. Buckminster uses "component type" as well as "component name". I
opted to drop this in b3, since every build unit should have a unique
name in the b3.buildunit name space (analogous with an IU in p2). The
only time this will not work is if the same unit is involved having
different "shape" (i.e. from source or from binary). This seems very
unlikely.

The question is if it is ok to use only the builder name. If not, it
gets quite complicated as b3 allows a unit to implement several
different interfaces (and all of them may be needed to make the result
unique).

3. (Not a question, but worth considering)
Since it is possible to set the source and output locations explicitly
(in the authored build units), or advice generated build units, it is
possible to override any clashes in the unlikely event this will happen.
Previous Topic:output location question...
Next Topic:b3 runs resolver and builds
Goto Forum:
  


Current Time: Fri Nov 28 14:01:11 GMT 2014

Powered by FUDForum. Page generated in 0.02900 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software