mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
chnages due to the file location of current sdk file formats
This commit is contained in:
parent
b9d026da5e
commit
d5a30724da
@ -814,6 +814,7 @@ public class TryIt {
|
||||
* @param fileName name of the file to set execution permission.
|
||||
*/
|
||||
private void setExecutePermission(String fileName) {
|
||||
if (new File((fileName)).exists()) {
|
||||
if (!new File(fileName).canExecute()) {
|
||||
if (!new File(fileName).setExecutable(true)) {
|
||||
System.out.println("Unable to set the execute permission of : " + fileName);
|
||||
@ -822,6 +823,9 @@ public class TryIt {
|
||||
System.exit(1); // if can't execute, unable to proceed
|
||||
}
|
||||
}
|
||||
} else {
|
||||
System.out.println("WARN : " + fileName + " does not exists");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user