views:

651

answers:

2

We are using Windows as development system and ANT to create the platform-specific bundles. For the Mac OS X specific bundle (.tar.gz file) we are using the tar task. I want to create a symbolic link in the output .tar.gz file which points to another file in the same .tar.gz file. Can this be done using ANT?

A: 

You cannot create a symbolic link on Windows. Therefore, the Symlink Ant task would not work properly. One option would be to run a continuous build server on a Mac machine. Then, you could run that task at regular intervals and the Symlink Ant task would work.

mike boldischar
Maybe there is a misunderstanding: I don't want to create a symlink in the operating system's file system, but only in the .tar.gz file which is created by ANT's tar task.
mklhmnn
It's not true that you cannot create a symbolic link in Windows. mklink is the command line tool; CreateSymbolicLink is the Win32 function. http://msdn.microsoft.com/en-us/library/aa363866(VS.85).aspx
Cheeso
+1  A: 

To the best of my knowledge stock Ant can't do this.