build.gradle 425 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import org.apache.tools.ant.taskdefs.condition.Os

def process_environment = System.getenv()

task print {

     	  if (Os.isFamily(Os.FAMILY_WINDOWS))
    {
       println process_environment['LIBRARY_PATH']
    }

    if (Os.isFamily(Os.FAMILY_MAC))
    {
       println process_environment['DYLD_LIBRARY_PATH']
    }

    if (Os.isFamily(Os.FAMILY_UNIX))
    {
       println process_environment['LD_LIBRARY_PATH']
    }
}