Java File Attribute setExecutable(File file, boolean executable)

Here you can find the source of setExecutable(File file, boolean executable)

Description

set Executable

License

Open Source License

Declaration

public static void setExecutable(File file, boolean executable) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static void setExecutable(File file, boolean executable) throws IOException {
        if (executable && !file.setExecutable(true)) {
            throw new IOException("Cannot set executable permissions for: " + file);
        }//from  www.  j  a v  a  2s .  c om
    }
}

Related

  1. parallel(ExecutorService executor, Collection> tasks)
  2. patchInfoPList(final File infoPList, final String executable)
  3. persistExecutionTimesCsv(String filePath, LinkedList> executionTimes)
  4. setExecutable(File f, final String pattern)
  5. setExecutable(File file)
  6. setExecutable(String filesList)
  7. setExecute(File f, boolean b)
  8. setExecute(String path)
  9. setExecutePermissions(final File scriptfile)