private void copyContents() {
        try {
            File baseDir = new File(buildName, serverName);
            FileUtils.deleteRecursive(baseDir);

            final Path path = Paths.get(baseDir.getAbsolutePath());

            final Path baseFile = Paths.get(configDir.getAbsolutePath() + resourcesDir);
            doCopy(path.resolve(Locations.CONTENT), baseFile.resolve(Locations.CONTENT));
            doCopy(path.resolve(Locations.MODULES), baseFile.resolve(Locations.MODULES));
            doCopy(path.resolve(Locations.CONFIGURATION), baseFile.resolve(Locations.CONFIGURATION));
            doCopy(path.resolve(Locations.SUBSYSTEM_TEMPLATES), baseFile.resolve(Locations.SUBSYSTEM_TEMPLATES));

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
private void copyContents ( ) { try { File baseDir = new File ( buildName , serverName ) ; FileUtils . deleteRecursive ( baseDir ) ; final Path path = Paths . get ( baseDir . getAbsolutePath ( ) ) ; final Path baseFile = Paths . get ( configDir . getAbsolutePath ( ) + resourcesDir ) ; doCopy ( path . resolve ( Locations . CONTENT ) , baseFile . resolve ( Locations . CONTENT ) ) ; doCopy ( path . resolve ( Locations . MODULES ) , baseFile . resolve ( Locations . MODULES ) ) ; doCopy ( path . resolve ( Locations . CONFIGURATION ) , baseFile . resolve ( Locations . CONFIGURATION ) ) ; doCopy ( path . resolve ( Locations . SUBSYSTEM_TEMPLATES ) , baseFile . resolve ( Locations . SUBSYSTEM_TEMPLATES ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
@throws IOException