In case anyone else runs into this, after poking around in the jelly script I discovered there isn't a maven parameter for setting the mode. I ended up modifying the script to change all cgi files to executable.

<tar tarfile="${maven.build.dir}/${maven.final.name}-site.tar" basedir="${docsDest}" excludes="**/*.cgi">
<tarfileset dir="${docsDest}" mode="755">
<include name="**/*.cgi"/>
</tarfileset>
</tar>



It would be cool if the site plugin could be modified to allow this through the properties. I'm not sure how to do this in jelly for multiple modes, but setting an excludesfile and includesfile through parameters would give a little flexibility (i.e. maven.site.tar.mode=755 and maven.site.tar.includesfile=c:\executables.txt).


Derek


Derek Greer wrote:

I have a perl cgi which I am trying to deploy with my maven site, but the cgi's permissions isn't being maintained. I'm using maven.site.tar.executable = gtar and would like to pass the "-p" argument to have it preserve the permissions. Is there a way to do that?

Derek


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to