[ 
http://jira.codehaus.org/browse/MFINDBUGS-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199626#action_199626
 ] 

Stefan Seifert edited comment on MFINDBUGS-99 at 11/26/09 11:53 AM:
--------------------------------------------------------------------

comment from MFINDBUGS-94:
{quote}
Unfortunately that patch reintroduces a windows environment issue.
That is why a response files was used.

Garvin
{quote}

unfortunately i've not a unix setup right at hand to test it.
i experimented a lot with the previous implementation using the response file 
hack and was not able to get it running at all with windows.
paths with spaces in it where already interpreted wrong (seems that " " was 
interpreted as path separation char as well). i tried to insert quotation marks 
in the response file as whole or for each single path, but this did not work.

      was (Author: sseifert):
    comment from MFINDBUGS-94:
{quote}
Unfortunately that patch reintroduces a windows environment issue.
That is why a response files was used.

Garvin
{quote}

unfortunately i've not a unix setup right at hand to test it.
if experimented a lot with the previous implementation using the response file 
hack and was not able to get it running at all with windows.
paths with spaces in it where already interpreted wrong (seems that " " was 
interpreted as path separation char as well). i tried to insert quotation marks 
in the response file as whole or for each single path, but this did not work.
  
> Findbugs 2.2 fails with "FileNotFoundException" and "Premature end of file"
> ---------------------------------------------------------------------------
>
>                 Key: MFINDBUGS-99
>                 URL: http://jira.codehaus.org/browse/MFINDBUGS-99
>             Project: Maven 2.x FindBugs Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Windows XP SP3, JDK 1.6
>            Reporter: Stefan Seifert
>            Assignee: David J. M. Karlsen
>             Fix For: 2.3
>
>         Attachments: auxclasspath_fix.patch
>
>
> after building the auxClassPath the findbugs:findbugs execution fails with an 
> error like this:
> {noformat}
>      [java] Exception in thread "main" java.io.FileNotFoundException: 
> D:\Develop\svn-public\day_cqstone\medialib\und (Das System kann die 
> angegebene Datei nicht finden)
>      [java]     at java.util.zip.ZipFile.open(Native Method)
>      [java]     at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>      [java]     at java.util.zip.ZipFile.<init>(ZipFile.java:131)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.<init>(ZipFileCodeBase.java:53)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.countUsingZipFile(ZipCodeBaseFactory.java:92)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:46)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:97)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:564)
>      [java]     at 
> edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195)
>      [java]     at 
> edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:584)
>      [java]     at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:181)
>      [java]     at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:348)
>      [java]     at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1057)
>      [java] Scanning archives (0 / 111)
>      [java] Java Result: 1
> [Fatal Error] :-1:-1: Premature end of file.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] An error has occurred in FindBugs Report report generation.
> Embedded error: Premature end of file.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 32 seconds
> [INFO] Finished at: Wed Nov 25 12:21:00 CET 2009
> [INFO] Final Memory: 27M/48M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> paths with spaces in it (like "Dokumente und Einstellungen" / "Documents and 
> Settings") make problems since 2.2.
> the reason is the change made for MFINDBUGS-89 - the auxclasspath is passed 
> as an external file. this seems not to work as expected on windows (i've not 
> testes it no other platforms).
> attached is a patch that fixes the problem in my environment 
> [^auxclasspath_fix.patch]
> the "responseFile" is removed again, and the path is passed using an "arg" 
> element with "path" property.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to