We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MCFileTreeAbstractReader>>#packageProperties packageProperties ifNil: [ packageProperties := Dictionary new. (packageDirectory entries detect: [ :entry | entry name = '.filetree' ] ifNone: [ ]) ifNotNil: [ :configEntry | configEntry readStreamDo: [ :fileStream | | jsonObject structureVersion | [ (jsonObject := STON fromStream: fileStream) isFloat ifTrue: [ " 0.0 - original structure 0.1 - separate files for method metaData (timestamp) and source 0.2 - no method metaData file" packageProperties := Dictionary new. structureVersion := jsonObject printShowingDecimalPlaces: 1. packageProperties at: 'noMethodMetaData' put: structureVersion = '0.2'. packageProperties at: 'separateMethodMetaAndSource' put: structureVersion = '0.1' ] ifFalse: [ packageProperties := jsonObject. ((packageProperties at: 'noMethodMetaData' ifAbsent: [ false ]) and: [ packageProperties at: 'separateMethodMetaAndSource' ifAbsent: [ false ] ]) ifTrue: [ self error: 'noMethodMetaData and separateMethodMetaAndSource cannot both be true' ] ] ] on: Error do: [ :ex | SystemNotification signal: 'Error reading package properties (.filetree): ' , packageDirectory pathName , ' :: ' , ex description ] ] ] ]. ^ packageProperties
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: