Xtreams is already organized to have implementation specific sub-package, so just create a Pharo specific one.
Nicolas 2012/8/29 Igor Stasenko <[email protected]>: > can we add a branch on XTreams project repo with 'pharo20' tag or something? > > On 29 August 2012 14:20, Sven Van Caekenberghe <[email protected]> wrote: >> Hi, >> >> Xtreams (the port from VW done by Nicolas Celier) works out of the box with >> Pharo 1.4. >> >> To get it working on Pharo 2.0, just do the same load (ignoring the warning >> about FileDirectory being gone). >> Next load the following changeset: >> >> --- >> >> 'From Pharo2.0a of ''18 April 2012'' [Latest update: #20245] on 29 August >> 2012 at 2:08:32 pm'! >> >> >> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: >> 'SvenVanCaekenberghe 8/29/2012 10:22'! >> appending >> | handle | >> handle := XTIOHandle forFiles open: self resolve fullName forWrite: true. >> ^ handle writing >> position: handle fileSize; >> isPositionable: false; >> yourself! ! >> >> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: >> 'SvenVanCaekenberghe 8/29/2012 10:22'! >> reading >> ^ (XTIOHandle forFiles new open: self resolve fullName forWrite: false) >> reading! ! >> >> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: >> 'SvenVanCaekenberghe 8/29/2012 10:24'! >> writing >> ^ (XTIOHandle forFiles new open: self resolve fullName forWrite: true) >> writing! ! >> >> --- >> >> Next, change the following test setup method: >> >> --- >> >> XTFileReadingWritingTest>>#setUp >> >> file := (self class name , '-' , testSelector) asFileReference. >> output := file writing. >> input := nil >> >> --- >> >> Now all tests are green ! >> >> Thanks, Camillo and Martin. >> >> From ESUG, >> >> Sven > > > > -- > Best regards, > Igor Stasenko. >
