On Wed, Oct 26, 2011 at 8:57 AM, Andrew Hunt <[email protected]> wrote:
> Hi
>
> I have a project in which our run scripts are in src/main/resources/.  The 
> code is in a GIT repo and I found out how to set the file permission include 
> execute permission in GIT.
> $ ls -l src/main/resources/
> total 60
> -rw-r-----  1 svc_fx_build APP_Repo_Users 16097 Oct 24 15:47 
> change_readme.docx
> -rwxr-x---  1 svc_fx_build APP_Repo_Users 18763 Oct 25 09:55 
> db.build.package.pl
> drwxr-x--- 12 svc_fx_build APP_Repo_Users  4096 Sep 19 08:00 oracle
> -rwxr-x---  1 svc_fx_build APP_Repo_Users    65 Oct 25 09:55 sqlplus.cmd
>
> However, after running mvn clean install, the files are copied to 
> target/classes as
> $ ls -l target/classes
> total 60
> -rw-r-----  1 svc_fx_build APP_Repo_Users 16097 Oct 24 15:47 
> change_readme.docx
> -rw-r-----  1 svc_fx_build APP_Repo_Users 18763 Oct 25 09:55 
> db.build.package.pl
> drwxr-x--- 12 svc_fx_build APP_Repo_Users  4096 Sep 19 08:00 oracle
> -rw-r-----  1 svc_fx_build APP_Repo_Users    65 Oct 25 09:55 sqlplus.cmd
>
> I noticed an issue for this in the "resources:test-resources" 
> [http://jira.codehaus.org/browse/MRESOURCES-132] phase/goal - but on the face 
> of it, this issue also applies to "resources:resources" and 
> "resources:copy-resources".  Or is there configuration somewhere I am 
> missing/ need to add?  Have I structured things poorly?  If not, do you have 
> a FAQ for getting access to JIRA to update / create a new issue [must be 
> blind - I cannot find it sorry]?
>
> [FYI - We need the permissions set as the script is executed as part of our 
> release].  I am using an ANT workaround for now.

Did you see the email about three messages back titled
"Is there a workaround for this bug:
http://jira.codehaus.org/browse/MRESOURCES-132";

I'll quote Stephen
On Wed, Oct 26, 2011 at 2:25 AM, Stephen Connolly
<[email protected]> wrote:
> How would such a build work on windows?
>
> When those resources get bundled up in a jar, there will not be
> execute permissions reflected in the jar.
>
> IOW the jar command does not store the extended permissions
> information that a zip file can hold.
>
> If you are looking to create zip files with extended permissions I
> would recommend using the assembly plugin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to