(String nameFile)
| 497 | |
| 498 | /***/ |
| 499 | public void executableFile(String nameFile) |
| 500 | throws IOException,InterruptedException{ |
| 501 | String osName = System.getProperty("os.name" ); |
| 502 | if( !osName.startsWith("Windows") ){ |
| 503 | Runtime rt = Runtime.getRuntime(); |
| 504 | Process proc = rt.exec("chmod 711 "+nameFile); |
| 505 | |
| 506 | // any error??? |
| 507 | int exitVal = proc.waitFor(); |
| 508 | if (exitVal!=0) |
| 509 | Out.prln("Warning: it is necessary to make executable the "+ |
| 510 | "following file: " + nameFile); |
| 511 | }//if |
| 512 | }// executableFile |
| 513 | |
| 514 | /** Creates the resource and dumps out a project structure using the |
| 515 | * structure from gate/resource/creole/bootstrap/Template and the |
no test coverage detected