krfkeith / metacello

Automatically exported from code.google.com/p/metacello
0 stars 0 forks source link

means for adding repository to package from MetacelloToolBox #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
see conversation:

  http://forum.world.st/Releasing-a-version-td4165256.html

specifically:

  http://forum.world.st/Releasing-a-version-tp4165256p4165623.html

Original issue reported on code.google.com by henrichs...@gmail.com on 6 Dec 2011 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by henrichs...@gmail.com on 6 Dec 2011 at 7:31

GoogleCodeExporter commented 9 years ago

Original comment by henrichs...@gmail.com on 18 Jan 2012 at 7:04

GoogleCodeExporter commented 9 years ago
From Issue 158, the method MetacelloTooBox 
class>>modifyVersion:section:for:repository:requiredProjects:packages:dependenci
es:includes:files:repositories:preLoadDoIts:postLoadDoIts:supplyingAnswers:group
s: can also be used to add a repository.

In MetacelloTooBoxAPITestCase>>testComplexModifyBaseline, the following was 
used to dd a package and dependency to version '1.1-baseline':

    MetacelloToolBox
        modifyVersion: '1.1-baseline'
        section: #'common'
        for: self configurationName asString
        repository: nil
        requiredProjects: #()
        packages: #('GoferFoo')
        dependencies: {('GeauxFaux' -> #('GoferFoo'))}
        includes: #()
        files: #()
        repositories: #()
        preLoadDoIts: #()
        postLoadDoIts: #()
        supplyingAnswers: #()
        groups: #().

To add a repository for a particular package (say GoferFoo) you would do the 
following:

    MetacelloToolBox
        modifyVersion: '1.1-baseline'
        section: #'common'
        for: self configurationName asString
        repository: nil
        requiredProjects: #()
        packages: #(')
        dependencies: #()
        includes: #()
        files: #()
        repositories: {('GoferFoo' -> #('http://www.squeaksource.com/CommandShell'))}
        preLoadDoIts: #()
        postLoadDoIts: #()
        supplyingAnswers: #()
        groups: #().

Original comment by henrichs...@gmail.com on 25 Jan 2012 at 10:18