lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Updated: (LUCENE-2318) Add System.getProperty("tempDir") as final static to LuceneTestCase(J4)
Date Sun, 14 Mar 2010 13:11:27 GMT


Uwe Schindler updated LUCENE-2318:

    Attachment: LUCENE-2318.patch

New patch, removed usage of DATA_DIR again.

All tests that simply needed an InputStream were converted to getResourceAsStream(). Other
tests that really need a File instance can use LuceneTestCase(J4).getDataFile(String), which
was heavily borrowed from the PorterTestCase, I moved the code there. Its only few tests that
use this function.

This is now ready to commit.

> Add System.getProperty("tempDir") as final static to LuceneTestCase(J4)
> -----------------------------------------------------------------------
>                 Key: LUCENE-2318
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Test
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 3.1
>         Attachments: LUCENE-2318.patch, LUCENE-2318.patch
> Almost every test calls System.getProperty("tempDir") and some of them check the return
value for null. In other cases the test simply fails from within eclipse.
> We should add this to LuceneTestCase(J4) as a static final constant. For enabling tests
run in eclipse, we can add a fallback to ".", if the Sysprop is not defined.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message