1. Avro
  2. AVRO-281

Symlink in build.xml does not work well with Cygwin


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: java
    • Labels:


      Ant's symlink task seems to have trouble if the link already exists. So any attempt to build for a second time fails. We use symlink to link version specific JavaCC jar to javacc.jar. Curiously, even if you succeed in symlink for javacc, javacc task fails with an error that javacc.jar or JavaCC.zip cannot be found in path. It appears that the ant problem has been around for some time: http://www.mail-archive.com/nutch-dev@incubator.apache.org/msg00880.html.

      The forthcoming patch addresses the problem by replacing symlink with a delete and copy. I could have simply used copy with overwrite="true", but, I'm not sure how it'll behave with existing symlinks.

      1. AVRO-281.patch
        0.7 kB
        Thiruvalluvan M. G.


        Thiruvalluvan M. G. created issue -
        Thiruvalluvan M. G. made changes -
        Field Original Value New Value
        Attachment AVRO-281.patch [ 12429306 ]
        Thiruvalluvan M. G. made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Thiruvalluvan M. G. added a comment -

        Committed revision 897642. Replaced symlink with a copy.

        Thiruvalluvan M. G. added a comment - Committed revision 897642. Replaced symlink with a copy.
        Thiruvalluvan M. G. made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Doug Cutting made changes -
        Fix Version/s 1.3.0 [ 12314318 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1m 54s 1 Thiruvalluvan M. G. 04/Jan/10 00:42
        Patch Available Patch Available Resolved Resolved
        6d 13h 58m 1 Thiruvalluvan M. G. 10/Jan/10 14:41
        Resolved Resolved Closed Closed
        50d 2h 28m 1 Doug Cutting 01/Mar/10 17:09


          • Assignee:
            Thiruvalluvan M. G.
            Thiruvalluvan M. G.
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: