MCPcopy Create free account
hub / github.com/GateNLP/gate-core / executableFile

Method executableFile

src/main/java/gate/creole/BootStrap.java:499–512  ·  view source on GitHub ↗
(String nameFile)

Source from the content-addressed store, hash-verified

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

Callers 1

createResourceMethod · 0.95

Calls 2

prlnMethod · 0.95
getPropertyMethod · 0.65

Tested by

no test coverage detected