Hi all, I have two questions : how to load Moose in Pharo 1.0? then how can I make in a programmatic way a MooseModel with packages that I chose in Pharo 1.0? cheers,
------------------------------------
Hayatou
some clarification the goal is to create MooseModel in different versions of Pharo, to run SmallLint rules on these versions and make diffs. these diffs will allow us to see what has been changed to remove an alerts. cheers
------------------------------------
Hayatou
Le Vendredi 23 mai 2014 8h57, Hayatou Oumarou hayatou.oumarou@inria.fr a écrit :
Hi all, I have two questions : how to load Moose in Pharo 1.0? then how can I make in a programmatic way a MooseModel with packages that I chose in Pharo 1.0? cheers,
------------------------------------
Hayatou
_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi,
You can start with this script to create the model that should run on some of the recent versions of Pharo and then adapt to your own needs.
|importer model1 | importer := MoosePharoImporterTask new. importer importingContext: (MooseImportingContext new importClass; importMethod; importAccess; importInvocation; importInheritance; mergeClassAndMetaclass; yourself). importer candidateClass: CandidateListOperator. importer importerClass: SmalltalkImporter. importer model: MooseModel new; addFromPackagesNamed: #(#'XML-Writer-Tests'); run. model1 := importer model. model1 name: 'a moose model'.
usman
On Fri, May 23, 2014 at 9:55 AM, Hayatou Oumarou hayatou.oumarou@inria.frwrote:
Hi all, I have two questions : how to load Moose in Pharo 1.0? then how can I make in a programmatic way a MooseModel with packages that I chose in Pharo 1.0? cheers,
Hayatou
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev