Doru,
Just to clarify, are you looking for the list of packages that are already loaded in the
image or do you mean something else?
Some sample code and expected values might help?
Dale
On 04/29/2011 11:44 AM, Tudor Girba wrote:
Hi,
Indeed, the issue is that I do not know how to get only the packages that would load. I
need this to be able to do static analysis (e.g., import in Moose) of all packages from a
version.
Cheers,
Doru
On 29 Apr 2011, at 20:38, Dale Henrichs wrote:
Doru,
When you "query version 1.1 for packages", you get the extra package, because
it is *part of the project*, just not loaded.
But when you "query version 1.1 for packages" you'd like only the loaded
packages?
Is that the issue?
Dale
On 04/29/2011 11:17 AM, Tudor Girba wrote:
> Hi,
>
> ConfigurationOfFuelMooseExtensions has the following baseline and
> version definitions and I am not sure whether they are correct. The
> problem is that the baseline defines a package only in a group, and then
> the version defines the version for it.
>
> Loading seems to load just fine. If I simply load the version, it loads
> the two packages defined in the Core group as expected. However, my
> problem is that when I query version 1.1 for packages, it retrieves the
> extra *FuelMooseExtensionBenchmarks *package.
>
> Could someone look into this?
>
>
> baseline11: spec
> <version: '1.1-baseline'>
>
> spec for: #common do: [
> spec blessing: #baseline.
> spec repository: 'http://www.squeaksource.com/Fuel'.
> spec
> package: 'FuelFameExtension' with: [ spec requires: 'Fuel' ];
> package: 'FuelMooseExtension' with: [ spec requires:
'FuelFameExtension' ].
> spec
> group: 'default' with: #('Core');
> group: 'Core' with: #('FuelFameExtension'
'FuelMooseExtension');
> group: 'Tests' with: #('FuelFameExtension'
'FuelMooseExtension');
> *group: 'Benchmarks' with: #('FuelFameExtension'
'FuelMooseExtension'
> 'FuelMooseExtensionBenchmarks'*).
> spec
> project: 'Fuel' with: [
> spec
> className: 'ConfigurationOfFuel';
> loads: #('CoreWithProgressBar' );
> file: 'ConfigurationOfFuel';
> repository: 'http://www.squeaksource.com/Fuel' ] ].
>
> version11: spec
> <version: '1.1' imports: #('1.1-baseline')>
>
> spec for: #common do: [
> spec blessing: #release.
> spec
> project: 'Fuel' with: '1.1';
> package: 'FuelFameExtension' with:
'FuelFameExtension-MartinDias.28';
> package: 'FuelMooseExtension' with:
'FuelMooseExtension-MartinDias.8';
> *package: 'FuelMooseExtensionBenchmarks' with:
> 'FuelMooseExtensionBenchmarks-MartinDias.2'].*
>
>
> Cheers,
> Doru
>
>
> --
>
www.tudorgirba.com<http://www.tudorgirba.com>
>
> "Some battles are better lost than fought."
>
>
>
--
www.tudorgirba.com
"In a world where everything is moving ever faster,
one might have better chances to win by moving slower."