Java.io.tmpdir not obeyed by ProjectBuilder


(John Scancella) #1

https://github.com/LibraryOfCongress/simple-artifact-uploader/blob/master/src/test/java/gov/loc/repository/ArtifactoryPluginTest.java#L30 is causing a

Caused by: java.lang.UnsatisfiedLinkError: /tmp/gradle1671374982016007532projectDir/userHome/native/19/linux-amd64/libnative-platform.so: /tmp/gradle1671374982016007532projectDir/userHome/native/19/linux-amd64/libnative-platform.so: failed to map segment from shared object: Operation not permitted

even when -Djava.io.tmpdir is set to a different directory. Is there some other property I should be using instead?


Java.io.tmpdir not obeyed by ProjectBuilder when testing
(John Scancella) #2

So just to make things more clear, to reproduce

  1. clone https://github.com/LibraryOfCongress/simple-artifact-uploader.git on a server that has /tmp mounted with noexec
  2. run gradle gradle test -Djava.io.tmpdir=<SOME DIRECTORY THAT HAS EXEC>
    it still tries to use /tmp as the unpack space for ProjectBuilder

(John Scancella) #3

Has any of the gradle team looked at this?
Bump?