You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Attila Ravai <at...@yahoo.com> on 2008/10/10 19:46:33 UTC

symlink in my webapp

Hello All,

I tried to add a symlink to a folder today in my webapp folder and after running maven2 I saw that in the target I have now a duplicated folder instead of a symlink to the other folder. Is there a way to tell maven to copy symlinks as files?

thanks,
Janos



      

RE: symlink in my webapp

Posted by Martin Gainty <mg...@hotmail.com>.
you're asking a java class in the apps layer to manipulate a feature of the OS below it
I would suggest using an ant copy *.lnk in a suitable goal to target with something like
<goal name="copy" description="Copies the ProjectObjectModel to a directory"/>
    <!-- Basic Ant task -->
    <copy file="${basedir}/*.lnk" tofile="${maven.copy.target.dir}/*.lnk"/>
</goal>  Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Date: Fri, 10 Oct 2008 10:46:33 -0700
> From: attilaravai@yahoo.com
> Subject: symlink in my webapp
> To: users@maven.apache.org
> 
> Hello All,
> 
> I tried to add a symlink to a folder today in my webapp folder and after running maven2 I saw that in the target I have now a duplicated folder instead of a symlink to the other folder. Is there a way to tell maven to copy symlinks as files?
> 
> thanks,
> Janos
> 
> 
> 
>       

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: symlink in my webapp

Posted by Stephen Connolly <st...@gmail.com>.
or you could use jna.dev.java.net which can support them

Sent from my iPod

On 10 Oct 2008, at 18:51, "Wayne Fay" <wa...@gmail.com> wrote:

> No. Java doesn't know about symlinks, therefore Maven2 does not
> either. Perhaps Java7 will address this.
>
> Wayne
>
> On Fri, Oct 10, 2008 at 10:46 AM, Attila Ravai  
> <at...@yahoo.com> wrote:
>> Hello All,
>>
>> I tried to add a symlink to a folder today in my webapp folder and  
>> after running maven2 I saw that in the target I have now a  
>> duplicated folder instead of a symlink to the other folder. Is  
>> there a way to tell maven to copy symlinks as files?
>>
>> thanks,
>> Janos
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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 my webapp

Posted by Wayne Fay <wa...@gmail.com>.
No. Java doesn't know about symlinks, therefore Maven2 does not
either. Perhaps Java7 will address this.

Wayne

On Fri, Oct 10, 2008 at 10:46 AM, Attila Ravai <at...@yahoo.com> wrote:
> Hello All,
>
> I tried to add a symlink to a folder today in my webapp folder and after running maven2 I saw that in the target I have now a duplicated folder instead of a symlink to the other folder. Is there a way to tell maven to copy symlinks as files?
>
> thanks,
> Janos
>
>
>
>

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