The File class is my usual solution here.
On Tue, Apr 6, 2010 at 7:10 AM, Sean Owen <sro...@gmail.com> wrote: > That must be it. I had removed the '/' earlier since on OS X the temp > dir path ends with '/', and at the time I believed it was the cause of > some other failures (which I'm guessing I was wrong about). I can > easily make the logic account for both cases. > > Sean > > On Tue, Apr 6, 2010 at 11:24 AM, Sebastian Schelter > <sebastian.schel...@zalando.de> wrote: >> Hi Sean, >> >> I can only do I guess why the test fails: >> >> Line 225 in ItemSimilarityTest is missing a / when constructing the path >> to the temporary directory: >> >> String tmpDirPath = System.getProperty("java.io.tmpdir") + >> ItemSimilarityTest.class.getCanonicalName(); >> >> which makes it >> >> /tmporg.apache.mahout.cf.taste.hadoop.similarity.item.ItemSimilarityTest >> >> on my system for example. Maybe the hudson user on the CI server is not >> allowed to create this path. >> >> Sebastian >> >