Hi there,

JIRA seems to be offline, so here:

My CygWin installation reports an error when running a repeated 'ant jar' -- symlink fails with:

jar:
  [symlink] ln -s ./build/nutch-0.7-dev.jar D:\nutch\nutch\trunk/nutch.jar
  [symlink] ln: `D:\\nutch\\nutch\\trunk/nutch.jar': File exists

A quick and dirty hack is to attempt to delete the link:

$ svn diff build.xml
Index: build.xml
===================================================================
--- build.xml   (revision 179742)
+++ build.xml   (working copy)
@@ -101,6 +101,7 @@
       jarfile="${build.dir}/${final.name}.jar"
       basedir="${build.classes}"
     />
+    <delete failonerror="false" file="${basedir}/${name}.jar.lnk" />
     <symlink overwrite="true" link="${basedir}/${name}.jar"
              resource="${build.dir}/${final.name}.jar"/>
   </target>

Is anyone having the same issue?

Dawid

Reply via email to