Hi, Just to point that Junit meets this requirement: http://kentbeck.github.com/junit/javadoc/latest/org/junit/rules/TemporaryFolder.html
Laurent On Mon, Feb 6, 2012 at 12:50 PM, Andy Seaborne <[email protected]> wrote: > On 06/02/12 10:24, Damian Steer wrote: >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On 06/02/12 09:42, Andy Seaborne wrote: >>> >>> On 05/02/12 19:00, Damian Steer wrote: >> >> >>>> Minor: >>>> >>>> <jena-tdb-0.9.0-incubating-source-release.zip> >>>> >>>> contains a tmp directory from testing. >>> >>> >>> Interesting catch - I'll see about putting the test area in target/ >>> and maybe also track down all the points is created to make sure >>> its deleted. >> >> >> Yes, target or create it in the temp directory... although it appears >> they forgot to include that in the jdk: >> >> >> <http://stackoverflow.com/questions/617414/create-a-temporary-directory-in-java> >> >> Finally present in jdk 7! > > > > I like the name to be fixed ... so that when tests go wrong, I know where to > look for evidence! There are some assembler scripts that know the location > of the testing temp area as well. > > And on "certain OS'es" the tests have to have one temp directory per test > because of not being able to delete mmap'ed files. > > For now, made to work by placing in target/ (bit of a hack). > > One thing I do want to avoid is tweaking the Apache release-source process > and its assembly. It's better if we can use that as-is capturing best > practice. > > Andy > > >> Damian >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.11 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAk8vqkkACgkQAyLCB+mTtykr9gCgpyZz0ocS1sFLSgy1VOLsNPkg >> RcwAn3+0HAO4jhibixm0CpphDICaF6Dj >> =XAte >> -----END PGP SIGNATURE----- > >
