You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "John Williams (JIRA)" <ji...@apache.org> on 2006/12/12 03:39:20 UTC

[jira] Created: (IVY-353) ivy:retrieve should be able to create symlinks

ivy:retrieve should be able to create symlinks
----------------------------------------------

                 Key: IVY-353
                 URL: http://issues.apache.org/jira/browse/IVY-353
             Project: Ivy
          Issue Type: Wish
          Components: Core
    Affects Versions: 1.4.1
         Environment: Linux
            Reporter: John Williams


It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).

My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Nascif Abousalh-Neto (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522646 ] 

Nascif Abousalh-Neto commented on IVY-353:
------------------------------------------

I can see the code in the source code distribution for 2.0-alpha-2, but I don't see the documentation of the new attribute ("symlink") in the Ant task documentation at http://incubator.apache.org/ivy/history/trunk/use/retrieve.html.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: https://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>            Assignee: Gilles Scokart
>             Fix For: 2.0.0-alpha-2
>
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart reopened IVY-353:
--------------------------------

      Assignee: Gilles Scokart  (was: Maarten Coene)

There is a problem when running on windows with cygwin with a java JVM.  In this case, the link is created because the user has an 'ln' application in his path.  But the created link is not useable by the windows java application.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: https://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>            Assignee: Gilles Scokart
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "John Williams (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IVY-353?page=comments#action_12458152 ] 
            
John Williams commented on IVY-353:
-----------------------------------

I'm working on a patch for this.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IVY-353?page=comments#action_12460074 ] 
            
Maarten Coene commented on IVY-353:
-----------------------------------

Be carefull when applying this patch: it introduces a direct dependency on Jakarta Commons IO.
It would be better if we could avoid this.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Eric Crahen (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IVY-353?page=comments#action_12460713 ] 
            
Eric Crahen commented on IVY-353:
---------------------------------

Hey John, I use the useOrigin attribute wiht resolve and cachepath as you mentioned is your workaround. I was wondering if you could tell me more about the use case you have where you prefer to use retrieve. So far I've been able to use cachepath w/o trouble, but maybe you have hit a snag that I haven't yet...

I don't know if its worth the trouble, but you could possibly detect Jakarta Commons IO and if its there, symlink (use Class.forName maybe) and if its not you could resort to copies. Might give me people the best of both worlds, it will always work - and if you have the extra dependency, then you get extra benefits (like you can resolve with ssh if you have jsch, webdav w/ commons vfs, etc.) 

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Resolved: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart resolved IVY-353.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-alpha-2

I have added a check that the 'ln' has indeed created a file.  If not, we fallback on the copy.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: https://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>            Assignee: Gilles Scokart
>             Fix For: 2.0.0-alpha-2
>
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "John Williams (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/IVY-353?page=all ]

John Williams updated IVY-353:
------------------------------

    Attachment: retrieve-symlinks.patch

This patch adds the feature I requested.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Assigned: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/IVY-353?page=all ]

Maarten Coene reassigned IVY-353:
---------------------------------

    Assignee: Maarten Coene

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Assigned To: Maarten Coene
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IVY-353?page=comments#action_12460823 ] 
            
Maarten Coene commented on IVY-353:
-----------------------------------

Hi,

I've integrated your patch, with 2 changes:
- removed the dependency on Jakarta Commons IO
- removed the depdenency on the JDK 1.5 ProcessBuilder

Could you please verify if my changes work for you? I don't have a unix system where I can do the test myself.
If it doesn't work, please reopen the issue

Maarten

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Assigned To: Maarten Coene
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Resolved: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/IVY-353?page=all ]

Maarten Coene resolved IVY-353.
-------------------------------

    Resolution: Fixed

Added to SVN.
Thanks for your contribution! :-)

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: http://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>         Assigned To: Maarten Coene
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

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

        

[jira] Commented: (IVY-353) ivy:retrieve should be able to create symlinks

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523933 ] 

Maarten Coene commented on IVY-353:
-----------------------------------

I've added some documentation, it should be visible when the site gets updated.

> ivy:retrieve should be able to create symlinks
> ----------------------------------------------
>
>                 Key: IVY-353
>                 URL: https://issues.apache.org/jira/browse/IVY-353
>             Project: Ivy
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.4.1
>         Environment: Linux
>            Reporter: John Williams
>            Assignee: Gilles Scokart
>             Fix For: 2.0.0-alpha-2
>
>         Attachments: retrieve-symlinks.patch
>
>
> It would be helpful if the "retrieve" task had an option to create symlinks on systems that support them.  The symlinks could point to either the cache or a local repository (is useOrigin=true).
> My company has a very long number of small projects, many of which depend on some fairly large artifacts, so copying everything would be too slow and use up too much disk space to be practical.  (We work around this now by using the "cachepath" task for instead of retrieve.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.