private void checkIfEkstaziDirCanBeCreated ( ) throws MojoExecutionException { File ekstaziDir = Config . createRootDir ( parentdir ) ; // If .ekstazi does not exist and cannot be created, let them // know. (We also remove directory if successfully created.) if ( ! ekstaziDir . exists ( ) && ( ! ekstaziDir . mkdirs ( ) || ! ekstaziDir . delete ( ) ) ) { throw new MojoExecutionException ( "Cannot create Ekstazi directory in " + parentdir ) ; } }
Checks if . ekstazi directory can be created . For example the problems can happen if there is no sufficient permission .