Le 30/01/2014 11:42, Damien Cassou a écrit :
On Thu, Jan 30, 2014 at 11:12 AM, Goubier Thierry
<[email protected]> wrote:
For configurations of a project on github, it becomes possible to ensure a
load of ConfigurationOfGitFileTree and then use a gitfiletree url to clone,
setup the local repository and load the package, as is done in the latest
ConfigurationOfAltBrowser.
how would you write a configuration for a project on smalltalkhub that
depends on a project on github?
If I have to load a few packages from the project on github:
add the code to ensure ConfigurationOfGitFileTree is loaded, and then
add a dependency with a gitfiletree url (on the github project) as usual.
To ensure ConfigurationOfGitFileTree, I have modified the project method
in the configuration (right after the bootstrap Metacello...)
project
^ project
ifNil: [
| constructor |
"Bootstrap Metacello if it is not already
loaded"
(self class baseConfigurationClassIfAbsent: [ ])
ensureMetacello.
"Load gitfiletree support if not already
loaded."
Smalltalk
at: #MCFileTreeGitRepository
ifAbsent: [
Gofer new
url:
'http://smalltalkhub.com/mc/Pharo/MetaRepoForPharo30/main';
configurationOf: 'GitFileTree';
loadDevelopment ].
"Construct Metacello project"
project := MetacelloMCProject new projectAttributes: self
customProjectAttributes.
constructor := (Smalltalk at: #MetacelloVersionConstructor) on: self
project: project.
project loadType: #linear. "change to #atomic if
desired"
project ]
Thierry
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95