lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6438) Improve clean-jars when dealing with symbolic links.
Date Mon, 20 Apr 2015 02:10:58 GMT


Mark Miller commented on LUCENE-6438:

I'm not so sure that is the only issue - the jars are often in solr/server, but I've seen
the problem in other dirs as well - like the lucene test framework module and other solr modules
and contribs.

I have just assumed the sync is still buggy. I tried upgrading to ivy 2.4.0 as part of the
initial investigation into this I did.

> Improve clean-jars when dealing with symbolic links.
> ----------------------------------------------------
>                 Key: LUCENE-6438
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message