Found this workaround and verified that it works.  On the downside,
it's quite slow.  Using it (called once for each subproject) is
doubling my total build time.  I assume that's because it's calling
Ant.  Anyone have any other solutions?

    doLast { ant.chmod(dir: "$installDir/bin", perm: "755", includes: "*") }

On Tue, Apr 19, 2011 at 5:06 PM, Jared D. Cottrell <[email protected]> wrote:
> It seems that GRADLE-971 is still outstanding and Copy.fileMode isn't
> honored.  At least not in the tests I've done with 1.0-milestone-2.
> Yet I see Gradle's own build.gradle using the property several times.
> So if wonder if there is some workaround it's using that I might take
> advantage of?
>
> http://issues.gradle.org/browse/GRADLE-971
>
> Here's one of my tests:
>
>  task myCopyTask ( type: Copy ) {
>    into ( installDir )
>    from ( 'src/bin/env' )
>    fileMode = 0755
>  }
>
> The file is copied, but with 0644 permissions.
>
> Cheers!
>
>
> J
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to