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

         Key: GERONIMO-1465
         URL: http://issues.apache.org/jira/browse/GERONIMO-1465
     Project: Geronimo
        Type: Bug
  Components: buildsystem  
    Versions: 1.0    
 Environment: 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)
    Reporter: John Sisson
 Assigned to: John Sisson 
    Priority: Minor
     Fix For: 1.1


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)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to