ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bender <tben...@cl.uni-heidelberg.de>
Subject tar task with symlinks
Date Thu, 08 Mar 2007 12:26:09 GMT
Hi.

Can ant create tar archives including symbolic links?

I want to execute this tar task:

	<symlink link="${freecol.release.dir}/FreeCol.app/Contents/MacOS/ 
FreeCol"
	resource="/System/Library/Frameworks/JavaVM.framework/Resources/ 
MacOS/JavaApplicationStub/"/>

	<tar destfile="${freecol.release.dir}/${freecol.release.name}- 
mac.tar.bz2" compression="bzip2">
		<tarfileset dir="${freecol.release.dir}" mode="755"
			includes="FreeCol.app/Contents/MacOS/FreeCol"
			excludes="**/freecol*"
			/>
		<tarfileset dir="${freecol.release.dir}">
			<include name="FreeCol.app/**"/>
			<exclude name="**/freecol*"/>
			<exclude name="FreeCol.app/Contents/MacOS/FreeCol"/>
		</tarfileset>	
          </tar>

FreeCol.app/Contents/MacOS/FreeCol is only a symbolic link. Can  
anybody explain, if I had done something wrong or if the ant task  
cannot include symbolic links into the created archives.

I have tested the follwing:
	<!--exec executable="tar">
     <arg value="cfvj"/>
     <arg value="${freecol.release.dir}/${freecol.release.name}- 
mac2.tar.bz2"/>
     <arg value="FreeCol.app"/>
   	</exec-->

This creates the archive **WITH** the symlink.

Thanks in advance,
Tobias

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


Mime
View raw message