Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial port of GTExtensions for P9+, removed configuration #8

Merged
merged 4 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 36 additions & 49 deletions src/BaselineOfXPath/BaselineOfXPath.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,61 +11,48 @@ Class {
BaselineOfXPath >> baselineOf: spec [

<baseline>
spec
for: #common
do: [

self
xmlParserOn: spec;
xmlWriterOn: spec.

"Packages"
spec
package: 'XPath-Core' with: [ spec requires: #('XMLParser') ];

package: 'XPath-Tests' with: [ spec requires: #('XMLParser Tests' 'XPath-Core') ].
spec
for: #'pharo8.x'
do: [ spec package: 'XPath-GTExtensions'
with: [ spec requires: #('XMLWriter' 'XPath-Core') ]].

"Groups"
spec
group: 'Core' with: #('XPath-Core');
group: 'Tools' with: #('XMLParser Tools');
group: 'P8Tools' with: #('XMLParser Tools' 'XPath-GTExtensions' );
group: 'Tests' with: #('XPath-Tests');
group: 'all' with: #('Core' 'Tools' 'Tests');
group: 'default' with: #('all')
]
]
spec for: #common do: [
self xmlParserOn: spec.

{ #category : #baseline }
BaselineOfXPath >> xmlParserOn: spec [
"Packages"
spec
package: 'XPath-Core' with: [ spec requires: #( 'XMLParser' ) ];
package: 'XPath-Tests'
with: [ spec requires: #( 'XMLParser Tests' 'XPath-Core' ) ];
package: 'XPath-Inspector'
with: [ spec requires: #( 'XMLParser Tools' 'XPath-Core' ) ].

spec
baseline: 'XMLParser'
with: [
"Core group"
spec group: 'Core' with: #( 'XPath-Core' ).

"Tools group"
spec group: 'Tools' with: #( 'XPath-Inspector' ).
spec for: #( #'pharo8.x' #'pharo7.x' #'pharo6.x' ) do: [
spec
loads: #('Core');
repository: 'github://pharo-contributions/XML-XMLParser:v3.6.0/src' ].

spec
project: 'XMLParser Tests' copyFrom: 'XMLParser' with: [ spec loads: #('Tests') ];
project: 'XMLParser Tools' copyFrom: 'XMLParser' with: [ spec loads: #('Tools') ]
package: 'XPath-GTExtensions'
with: [ spec requires: #( 'XMLParser Tools' 'XPath-Core' ) ];
group: 'Tools' with: #( 'XPath-GTExtensions' ) ].

"Other groups"
spec
group: 'Tests' with: #( 'XPath-Tests' );
group: 'all' with: #( 'Tools' 'Tests' );
group: 'default' with: #( 'all' ) ]
]

{ #category : #baseline }
BaselineOfXPath >> xmlWriterOn: spec [
BaselineOfXPath >> xmlParserOn: spec [

spec baseline: 'XMLParser' with: [
spec
loads: #( 'Core' );
repository: 'github://pharo-contributions/XML-XMLParser:v3.6.1/src' ].

spec
baseline: 'XMLWriter'
with: [
spec
loads: #('Core');
repository: 'github://pharo-contributions/XML-XMLWriter:v3.1.0/src' ].

spec
project: 'XMLWriter Tests' copyFrom: 'XMLWriter' with: [ spec loads: #('Tests') ];
project: 'XMLWriter Tools' copyFrom: 'XMLWriter' with: [ spec loads: #('Tools') ]
project: 'XMLParser Tests'
copyFrom: 'XMLParser'
with: [ spec loads: #( 'Tests' ) ];
project: 'XMLParser Tools'
copyFrom: 'XMLParser'
with: [ spec loads: #( 'Tools' ) ]
]
Loading