You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Joerg Schaible (JIRA)" <ji...@apache.org> on 2007/02/16 18:47:06 UTC

[jira] Created: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
------------------------------------------------------------------------------

                 Key: IO-115
                 URL: https://issues.apache.org/jira/browse/IO-115
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 1.3.1
            Reporter: Joerg Schaible
             Fix For: 1.3.1


Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.

If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated IO-115:
-----------------------------

    Fix Version/s:     (was: 1.3.1)
                   1.4

> FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
> ------------------------------------------------------------------------------
>
>                 Key: IO-115
>                 URL: https://issues.apache.org/jira/browse/IO-115
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.3.1
>            Reporter: Joerg Schaible
>             Fix For: 1.4
>
>
> Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.
> If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481869 ] 

Oliver Heger commented on IO-115:
---------------------------------

The problem seems to be fixed in revision 518770 (http://svn.apache.org/viewvc?view=rev&revision=518770). Here the os.name system property is checked to avoid that the affected tests get executed under windows. Don't know if this is the most elegant solution, but it works!

> FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
> ------------------------------------------------------------------------------
>
>                 Key: IO-115
>                 URL: https://issues.apache.org/jira/browse/IO-115
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.3.1
>            Reporter: Joerg Schaible
>             Fix For: 1.4
>
>
> Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.
> If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann resolved IO-115.
--------------------------------

    Resolution: Fixed

After two months without reply, it seems valid to assume that my unintentional change didn'd cause any problems. Closing.


> FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
> ------------------------------------------------------------------------------
>
>                 Key: IO-115
>                 URL: https://issues.apache.org/jira/browse/IO-115
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.3.1
>            Reporter: Joerg Schaible
>             Fix For: 1.4
>
>
> Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.
> If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated IO-115:
-------------------------------

    Fix Version/s:     (was: 1.4)
                   1.3.2

> FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
> ------------------------------------------------------------------------------
>
>                 Key: IO-115
>                 URL: https://issues.apache.org/jira/browse/IO-115
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.3.1
>            Reporter: Joerg Schaible
>             Fix For: 1.3.2
>
>
> Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.
> If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-115) FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available

Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481882 ] 

Jochen Wiedmann commented on IO-115:
------------------------------------

Checking this in was unintentional. My plan was to discuss the issue before actually committing it. However, this issue is of course a good platform to discuss the necessary steps. I am ready to revert the change, if this should be desired. Otherwise, someone else should resove the issue.



> FileUtilsCleanDirectoryTestCase fails on Windoes if command chmod is available
> ------------------------------------------------------------------------------
>
>                 Key: IO-115
>                 URL: https://issues.apache.org/jira/browse/IO-115
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.3.1
>            Reporter: Joerg Schaible
>             Fix For: 1.4
>
>
> Some tests in FileUtilsCleanDirectoryTestCase try to delete files that have been set to read-only. This is expected to throw an exception. To set the read-only flag the method chmod() tries to execute the unix "chmod" command. If this fails (which should normally be the case on windows), the test is ignored.
> If Posix tools are available e.g. from Cygwin, MKS Toolkit, Microsoft's Posix Tools or similar ones the test fails.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org