Bug in getJswPlatformIncludes
-----------------------------

                 Key: MAPPASM-64
                 URL: http://jira.codehaus.org/browse/MAPPASM-64
             Project: Mojo AppAssembler Plugin
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: linux 
            Reporter: Erik Drolshammer


In JavaServiceWrapperDaemonGenerator in private List getJswPlatformIncludes( 
Daemon daemon ): 


Without generatorConfigurations, I get a NPE in 

if ( jswPlatformIncludes == null || jswPlatformIncludes.isEmpty() )
        {            
            jswPlatformIncludes.add( "linux-x86-32" );
            jswPlatformIncludes.add( "macosx-x86-universal-32" );
            jswPlatformIncludes.add( "solaris-x86-32" );
            jswPlatformIncludes.add( "windows-x86-32" );
        }

, because  jswPlatformIncludes is null. When I add 

jswPlatformIncludes = new ArrayList();

I get a bit further, but it still doesn't seem correct. I was expecting all 
available includes, but I got only those in the list above, the "defaults". 
The defaults are not what I expected, no big deal. 

However, when I add 

<generatorConfigurations>
                    <generatorConfiguration>
                      <generator>jsw</generator>                      
                      <includes>
                        <include>linux-x86-32</include>
                        <include>linux-x86-64</include>
                      </includes>
                    </generatorConfiguration>
                  </generatorConfigurations>

I'd expect these and only these, but I get 

libwrapper-linux-x86-32.so
libwrapper-linux-x86-64.so
libwrapper-macosx-universal-32.jnilib
libwrapper-solaris-x86-32.so



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