You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Spacey <si...@eumetsat.int> on 2008/08/20 12:39:16 UTC

Symlink in assembly

Hi

I need to assemble a tar.gz artifact with directories containing some
symbolic links.
I'm using filesets in assembly 2.2-beta-2to copy the source directories, but
the sym links are not replicated (as they would be if I used tar):
If the symlink is resolvable then the link is resolved and copied.
If the symlink is not resolvable then it's silently ignored.

Is there a way to get the links replicated?

Thanks,
Simon
-- 
View this message in context: http://www.nabble.com/Symlink-in-assembly-tp19066796p19066796.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Symlink in assembly

Posted by Simon Spacey <Si...@eumetsat.int>.
Yes, of course - hopefully in Java 7! A warning in the documentation would be handy!

Didn't try assembly:directory but surely it also needs to copy/recognise links so won't work either, so only way I can see is to drop into OS or ant symlink.

I have an install script so simply changed it to build the links, so not a showstopper for me.

Cheers
Simon


>>> "Brett Porter" <br...@gmail.com> 20/08/2008 13:15 >>>
Because the code is in Java, it probably isn't possible to distinguish
symlinks from files.

One (albeit roundabout) alternative is to use assembly:directory, and
then exec tar to produce the assembly.

- Brett

2008/8/20 Simon Spacey <si...@eumetsat.int>:
>
> Hi
>
> I need to assemble a tar.gz artifact with directories containing some
> symbolic links.
> I'm using filesets in assembly 2.2-beta-2to copy the source directories, but
> the sym links are not replicated (as they would be if I used tar):
> If the symlink is resolvable then the link is resolved and copied.
> If the symlink is not resolvable then it's silently ignored.
>
> Is there a way to get the links replicated?
>
> Thanks,
> Simon
> --
> View this message in context: http://www.nabble.com/Symlink-in-assembly-tp19066796p19066796.html 
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
> For additional commands, e-mail: users-help@maven.apache.org 
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
For additional commands, e-mail: users-help@maven.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Symlink in assembly

Posted by Brett Porter <br...@gmail.com>.
Because the code is in Java, it probably isn't possible to distinguish
symlinks from files.

One (albeit roundabout) alternative is to use assembly:directory, and
then exec tar to produce the assembly.

- Brett

2008/8/20 Simon Spacey <si...@eumetsat.int>:
>
> Hi
>
> I need to assemble a tar.gz artifact with directories containing some
> symbolic links.
> I'm using filesets in assembly 2.2-beta-2to copy the source directories, but
> the sym links are not replicated (as they would be if I used tar):
> If the symlink is resolvable then the link is resolved and copied.
> If the symlink is not resolvable then it's silently ignored.
>
> Is there a way to get the links replicated?
>
> Thanks,
> Simon
> --
> View this message in context: http://www.nabble.com/Symlink-in-assembly-tp19066796p19066796.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org