主权项 |
1. A method for resolving artifact references in a software configuration management tool, the method comprising:
reading a uniform reference to an artifact in memory of a client computer, said uniform reference comprising a multi-component string including a reference kind component indicating which type of reference is represented by the uniform reference, wherein the reference kind is configurable to represent any of a plurality of reference types comprising a component-relative reference, a view reference, an element reference, a version reference and a default file-path reference, and further wherein the multi-component string further comprises as least two of an original path, a component identifier, component path, a view path, and element value, a format field and an object field; parsing said uniform reference by a processor of the client computer to identify said artifact and a reference kind; selecting, by a processor of the client computer based on the reference kind component, a selected resolution routine to reduce said uniform reference to a path name to said artifact, wherein if the reference kind indicates a component reference, the processor selects a component resolve routine resolving a location of the component in reference to a component location registry available on a host of the client computer wherein if the reference kind indicates a view reference, the processor selects a view resolution routine providing an alternative resolution mechanism for an element reference when a versioning server is unavailable, wherein if the reference kind indicates an element reference, the processor selects a an element resolution routine when the versioning server is available, wherein if the reference kind indicates a view reference, the processor selects a version resolution routine returning a version-extended pathname that identifies a version selected when the uniform reference had been originally created, wherein the processor selects a original resolution routine to construct a default pathname if no other resolution routine has been selected; executing the selected resolution routine by the processor to produce said path name. |