[ http://jira.codehaus.org/browse/MAPPASM-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213274#action_213274 ]
Trenton edited comment on MAPPASM-84 at 3/9/10 7:40 PM: -------------------------------------------------------- PROBLEM If I 1. put my app in /usr/local/myapp 2. ln -s /usr/local/myapp/bin/myapp /usr/local/bin/myapp Then the classpath is determined to be the jars found in /usr/local/repo/ which does not exist. SOLUTION The unix shell script should start with... PROGRAM=$(readlink $0) if [ $? -ne 0 ]; then PROGRAM=$0 fi; BASEDIR=`dirname $PROGRAM`/.. And not... BASEDIR=`dirname $0`/.. was (Author: trent): PROBLEM If I 1. put my app in /usr/local/myapp 2. ln -s /usr/local/myapp/bin/myapp /usr/local/bin/myapp Then the classpath is determined to be the jars found in /usr/local/repo/ which does not exist. SOLUTION The unix shell script should start with... PROGRAM=$(readlink $0) if [ $? -ne 0 ]; then PROGRAM=$0 fi; BASEDIR=`dirname $PROGRAM`/.. And not... BASEDIR=`dirname $0`/.. > The generated scritps should calculate the canonical installation path > ---------------------------------------------------------------------- > > Key: MAPPASM-84 > URL: http://jira.codehaus.org/browse/MAPPASM-84 > Project: Mojo AppAssembler Plugin > Issue Type: Bug > Reporter: Trygve Laugstol > > When the a symlink to the binary script is used, the classpath is built from > the base of the symlink instead of where it actually installed. > Maven does this, see bin/mvn, around line 77. -- 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