For the protocol: I think I know now what is going on:
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.
Now I am on windows, but I happen to have some unix commands in my path
(these are windows ports of some typical unix commands), including
chmod. So the execution of chmod is successful, but obviously the
command does not have the desired effect: the files can be deleted, and
no exception is thrown. This causes the tests to fail.
I guess this is a rather unusual scenario.
Oliver
Henri Yandell wrote:
Worth following up for IO 1.4 (could you add it to JIRA?), but as it's
going to have been in 1.3, I'm not concerned about it being in 1.3.1.
Hen
On 2/10/07, Oliver Heger <[EMAIL PROTECTED]> wrote:
Everything looks good, but I get the test failure below when building
with both ant and maven.
I am on Windows XP SP2. The problem occurred with JDK 1.5.0_09 and
1.6.0. Can anybody reproduce this?
Oliver
Testsuite: org.apache.commons.io.FileUtilsCleanDirectoryTestCase
Tests run: 4, Failures: 1, Errors: 0, Time elapsed: 0,18 sec
Testcase:
testThrowsOnNullList(org.apache.commons.io.FileUtilsCleanDirectoryTestCase):
FAILED
expected IOException
junit.framework.AssertionFailedError: expected IOException
at
org.apache.commons.io.FileUtilsCleanDirectoryTestCase.testThrowsOnNullList(FileUtilsCleanDirectoryTestCase.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:634)
at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
at org.apache.maven.cli.App.doMain(App.java:486)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Henri Yandell wrote:
> Going with RC3:
>
> http://people.apache.org/~bayard/commons-io/1.3.1-rc3/
>
> The only change is that I've fixed the manifest to say 1.3.1 and not
1.3.
>
> [ ] +1
> [ ] -1
>
> Hen
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]