You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Milos Kleint (JIRA)" <ji...@codehaus.org> on 2007/01/05 10:18:10 UTC

[jira] Reopened: (MASSEMBLY-158) tempRoot directory not created, exceptions thrown when filtering files

     [ http://jira.codehaus.org/browse/MASSEMBLY-158?page=all ]

Milos Kleint reopened MASSEMBLY-158:
------------------------------------

             
please remove the shutdown hook, it's causing problems in embedded environment. 
I get this exception when running the plugin in netbeans. (actually I get the exception on IDE exit and it prevents a proper exiting.
The reason is that the maven build is run in a thread group (in the execution engine of netbeans) that doesn't exist anymore on IDE shutdown.

java.lang.IllegalThreadStateException
        at java.lang.ThreadGroup.add(ThreadGroup.java:856)
        at java.lang.Thread.start(Thread.java:573)
        at java.lang.Shutdown.runHooks(Shutdown.java:128)
        at java.lang.Shutdown.sequence(Shutdown.java:173)
        at java.lang.Shutdown.exit(Shutdown.java:218)
        at java.lang.Runtime.exit(Runtime.java:90)
        at java.lang.System.exit(System.java:869)
        at org.netbeans.TopSecurityManager.exit(TopSecurityManager.java:128)
        at org.netbeans.core.NbTopManager$3.run(NbTopManager.java:408)
        at org.openide.util.Task.run(Task.java:222)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)


> tempRoot directory not created, exceptions thrown when filtering files
> ----------------------------------------------------------------------
>
>                 Key: MASSEMBLY-158
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-158
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Linux/maven 2.0.4
>            Reporter: Daniel Kulp
>         Assigned To: John Casey
>             Fix For: 2.2
>
>         Attachments: assembly_temproot.patch
>
>
> The tempRoot directory isn't actually created before it attempts to write files into it.   Thus, creation of the files fails with FileNotFound exceptions.
> The patch forces the directory to be created at the start of execute() and clears it up at the end.    It also updates the org/apache/maven/plugin/assembly/format/FileFormatter.java to make sure the directory is created first.

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