You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/04/20 02:52:58 UTC

[jira] [Commented] (LUCENE-6438) Improve clean-jars when dealing with symbolic links.

    [ https://issues.apache.org/jira/browse/LUCENE-6438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502197#comment-14502197 ] 

Robert Muir commented on LUCENE-6438:
-------------------------------------

The best solution is not to use clean-jars. Clean-jars is useless, except for a lone solr place: solr/server, because of its "sync-hack". If that can somehow be removed, clean-jars would never be needed, and we would just let ivy do its thing.

> Improve clean-jars when dealing with symbolic links.
> ----------------------------------------------------
>
>                 Key: LUCENE-6438
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6438
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mark Miller
>
> Ever since I started seeing jars in the lib folders use symbolic links on linux I've run into jar problems when working with an old checkout or switching branches on a git checkout. You would normally expect ant clean-jars to help, but it didn't and led to some headaches and random bs.
> Turns out, clean-jars is not properly removing all symbolic links for me. I've seen two cases - symbolic links to jars that are not removed and broken symbolic links to jars.
> I can get rid of the symbolic links with the following:
> {code}
>   <target name="clean-jars" description="Remove all JAR files from lib folders in the checkout">
>     <delete failonerror="true" removeNotFollowedSymlinks="true">
>       <fileset dir="." followsymlinks="false">
> {code}
> But that doesn't work with the broken links.
> I guess you can remove those with the Ant Symlink task, but it seems only specifically one at a time which is not that useful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org