Jarsigner is not search on the right location for AIX and JAVA 1.5
------------------------------------------------------------------

                 Key: MJAR-104
                 URL: http://jira.codehaus.org/browse/MJAR-104
             Project: Maven 2.x Jar Plugin
          Issue Type: Bug
          Components: sign
         Environment: IBM AIX 5.3 and JAVA 1.5
            Reporter: hugo lassiege


Hi,

On previous versions of JAVA for AIX, the JAVA was a JDK and the JAVA_HOME was 
under JAVA/jre/.... 
So, for AIX, the plugin search the jarsigner executable under JAVA_HOME/../sh :



    private static File getJDKCommandExe( String command )
414     {
415         String fullCommand = command + ( SystemUtils.IS_OS_WINDOWS ? ".exe" 
: "" );
416 
417         File exe;
418 
419         // For IBM's JDK 1.2
420         if ( SystemUtils.IS_OS_AIX )
421         {
422             exe = new File( SystemUtils.getJavaHome() + "/../sh", 
fullCommand );
423         }


However, since JAVA 1.5, AIX deliver a JRE and there is no need to search in 
this strange location. jarsigner is in the same place as for SUN or Linux : 
JAVA_HOME/bin

The test should be enhance for java 1.5.




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

        

Reply via email to