[Glass] ConfigurationOf question
Dale Henrichs via Glass
glass at lists.gemtalksystems.com
Mon Sep 21 14:23:55 PDT 2015
Bruno,
Good question ... by default the subclasses of ConfigurationOf are
expected to be using Semantic Versioning[1] which requires three `.`
separated fields followed by others ... since you are moving your
configurations under ConfigurationOf, you are switching the Metacello
version parsing class ...
Fortunately you can switch back to the old class by adding a
#versionNumberClass method to your configurations like the following:
versionNumberClass
^ MetacelloVersionNumber
MetacelloVersionNumber is very flexible with the pattern of versions
parsed...
Dale
[1] http://semver.org/
On 09/21/2015 01:45 PM, BrunoBB via Glass wrote:
> Hi,
>
> The project i'm working has a lot of ConfigurationOf and:
> MetacelloToolBox validateConfiguration: ConfigurationOfOrbeon. answer 0
> errors :)
>
> But the ConfigurationOfOrbeon was an old version and it's superclass was
> Object. Now i have move all my confgurations as subclass of ConfigurationOf.
> ConfigurationOf
> --->ConfigurationOfOrbeon
>
> But i having problems with MetacelloToolBox validateConfiguration:
> ConfigurationOfOrbeon.
> The error:
> Error: Error creating project: UserDefinedError: invalid version number:
> normal version must have only 3 components to reproduce evalutate the
> following: 'ConfigurationOfOrbeon project' { projectCreationError } [
> #'validateProject' ]
>
> After some debug i reach the following method:
> MetacelloSemanticVersionNumber>>fromString:
> MetacelloSemanticVersionNumber fromString: '1.102-baseline' "FAILS" but
> MetacelloSemanticVersionNumber fromString: '1.1.102-baseline' "IT is OK"
>
> To versioning package the correct format is:
> <package>-<initials>.<brach>.<count>.mcz
> Which is the correct format for baselines inside ConfigurationOf ?
>
> Regards,
> Bruno
>
>
>
>
> --
> View this message in context: http://forum.world.st/ConfigurationOf-question-tp4851395.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
More information about the Glass
mailing list