Thank you very much :)) 2010/7/27 Dale Henrichs <dhenrich@vmware.com>
Denis Kudriashov wrote:
Hello
Can I use configurations inner my configurations to set dependencies between packages.
For example, my application depends on XmlParser. In ConfigurationOfMyApp I need set "requires: 'XmlParser'". But I load XmlParser to my image by ConfigurationOfXmlParser. And I dont want inspect ConfigurationOfXmlParser to see what packages I need load for XmlParser. Can I refer to ConfigurationOfXmlParser in ConfigurationOfMyApp?
Denis,
You can refer to the XML config with the following statement in your baseline method define the project reference and the dependencies:
... spec project: 'XML Parser' with: [ spec className: 'ConfigurationOfXMLSupport'; loads: #('Core'); repository: 'http://www.squeaksource.com/MetacelloRepository' ]. ... spec package: 'myPackage' with: [ spec requires: #('XML Parser'). ...
Then in your version method specify the particular version of the XML Parser that you want to use:
... spec project: 'XML Parser' with: '1.0'. ....
Dale
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project