You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Radim Kolar <hs...@filez.com> on 2012/04/04 02:02:22 UTC
create executable file in target/ directory
I need to create executable file in target/ directory. It is script
which needs to be copied from src/ tree and then chmod +x.
resource plugin can copy it but can not chmod +x it
assembly plugin can make it executable but it is placed into tar archive
any ideas?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: create executable file in target/ directory
Posted by Radim Kolar <hs...@filez.com>.
resource plugin can copy it but can not chmod +x it
assembly plugin can make it executable but it is placed into tar archive
any ideas?
> http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html
> http://ant.apache.org/manual/Tasks/chmod.html
I just discovered that assembly plugin can do <format>dir</format> and
in assembly descriptor you can chmod file.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: create executable file in target/ directory
Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,
On Tue, Apr 3, 2012 at 8:02 PM, Radim Kolar <hs...@filez.com> wrote:
> I need to create executable file in target/ directory. It is script which
> needs to be copied from src/ tree and then chmod +x.
>
> resource plugin can copy it but can not chmod +x it
> assembly plugin can make it executable but it is placed into tar archive
>
> any ideas?
http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html
http://ant.apache.org/manual/Tasks/chmod.html
-Jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org