Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-1465

FixCRLF processing in assembly plugin sometimes fails under windows trying to rename a temp file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1, 1.2
    • buildsystem
    • Security Level: public (Regular issues)
    • None
    • java version "1.4.2_10"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

      (Also tried 1.4.2_08)

    Description

      Assembly fails on windows. This was working for me for days and suddenly started giving me trouble.

      C:\dev\asf\geronimo\branches\1.0\assemblies\j2ee-jetty-server> maven -o -Dgeronimo.assembly.zip=true -Dgeronimo.assembly.tar=true

      <SNIP>

      assemble:package-assembly:
      [echo] Preparing CRLF line endings in text based files for zip
      distribution
      [zip] Building zip: C:\dev\asf\geronimo\branches\1.0\assemblies\j2ee-jetty-server\target\geronimo-jetty-j2ee-1.0.zip
      [echo] Preparing LF line endings in text based files for tar.gz distribution

      BUILD FAILED
      File...... C:\Documents and Settings\sissonj\.maven\cache\geronimo-assembly-plugin-1.0.3\plugin.jelly
      Element... ant:fixcrlf
      Line...... 299
      Column.... -1
      java.io.IOException: Failed to delete C:\dev\asf\geronimo\branches\1.0\assemblies\j2ee-jetty-server\target\geronimo-1.0\config-store
      \index.properties while trying to rename C:\DOCUME~1\sissonj\LOCALS~1\Temp\fixcrlf47584426
      Total time : 1 minutes 23 seconds
      Finished at : Friday, 13 January 2006 12:55:06

      Running maven with -X we I see:

      java.io.IOException: Failed to delete C:\dev\asf\geronimo\branches\1.0\assemblies\j2ee-jetty-server\target\geronimo-1.0\config-store
      \index.properties while trying to rename C:\DOCUME~1\sissonj\LOCALS~1\Temp\fixcrlf94435946
      at org.apache.tools.ant.util.FileUtils.rename(FileUtils.java:1310)
      at org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:539)
      at org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:348)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
      at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
      at org.apache.maven.werkz.Goal.fire(Goal.java:656)
      at org.apache.maven.werkz.Goal.attain(Goal.java:592)
      at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
      at org.apache.maven.werkz.Goal.attain(Goal.java:590)
      at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
      at org.apache.maven.werkz.Goal.attain(Goal.java:590)
      at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693)
      at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
      at org.apache.maven.cli.App.doMain(App.java:511)
      at org.apache.maven.cli.App.main(App.java:1258)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.werken.forehead.Forehead.run(Forehead.java:551)
      at com.werken.forehead.Forehead.main(Forehead.java:581)

      Attachments

        Issue Links

          Activity

            People

              johnrsisson John Sisson
              johnrsisson John Sisson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: