[jbossseam-issues] [JBoss JIRA] Resolved: (JBSEAM-3560) seam script uses readlink which is not compatible with the version of readlink shipped with OS X 10.5

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue Oct 14 18:03:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Allen resolved JBSEAM-3560.
-------------------------------

    Resolution: Done


Cross-platform scripts are so fun.

The original logic took the dirname of the script, changed to that directory, ran pwd to capture the path, then returned to the original directory. The problem, as Pete has pointed out, is that this does not properly locate the seam distribution directory if the seam script is a symlink. Thus, we needed to use readlink. In doing so, I used the flag -f which only works with gnu readlink. As it turns out, we really don't need the full path anyway, all we need to do is properly resolve the symlink. Hence, readlink without any flags works just fine.

Balance has been restored in the cross-platform scripting world (hopefully).

> seam script uses readlink which is not compatible with the version of readlink shipped with OS X 10.5
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-3560
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3560
>             Project: Seam
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.1.0.CR1
>         Environment: OS X 10.5.5, J2SE 64-bit build 1.5.0_16-b06-284
>            Reporter: rkilcoyne
>            Assignee: Dan Allen
>            Priority: Blocker
>             Fix For: 2.1.0.GA
>
>
> At some point the seam script started using readlink or the version of readlink shipped with OS X changed. The -f option doesn't work with the version of readink shipped with OS X 10.5.5.
> Replacing readlink with stat seems to fix this issue for OS X.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list