[ 
http://jira.codehaus.org/browse/MAPPASM-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brett Porter updated MAPPASM-14:
--------------------------------

    Fix Version/s: 1.0

> Failing test (JavaServiceWrapperDaemonGeneratorTest)
> ----------------------------------------------------
>
>                 Key: MAPPASM-14
>                 URL: http://jira.codehaus.org/browse/MAPPASM-14
>             Project: Mojo AppAssembler Plugin
>          Issue Type: Bug
>         Environment: windows, eclipse, jdk15
>            Reporter: Brill Pappin
>             Fix For: 1.0
>
>         Attachments: JavaServiceWrapperDaemonGeneratorTest.patch
>
>
> the test JavaServiceWrapperDaemonGeneratorTest is failing.
> It looks like a "current dir" problem were it cant find the file.
> This expectedly fails in eclipse but unexpected fails when run from the 
> appassembler or appassembler-plugin modules.
> Not verified but may also fail with the current release of continuum.
> If this is to remain a unit test, one method that might work is to load the 
> file contents from the src/test/resources directory via the 
> getResourceAsStream instead of a file object. Doing so will ensure that the 
> resource is found no matter where maven is run or what the directory 
> structure looks like.
> Doing so however may be problematic as the call to PlexusTestCase.getTestFile 
> is taking to much control away from the unit test (I can't remember the name 
> of this anti-pattern).
> I did a little hacking and came up with a method that should work despite the 
> location of the currentdir. The attached patch modifies the wrapper test and 
> the abstract test it extends.
> .

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