private void removeApplicationPages(String applicationName, Class<?> robotContext, boolean verbose) {
        String applicationPagePath = mainPath + File.separator + "java" + File.separator + robotContext.getCanonicalName().replaceAll("\\.", "/")
                .replaceAll("utils", "application/pages/" + applicationName).replaceAll("/", Matcher.quoteReplacement(File.separator)).replaceAll(robotContext.getSimpleName(), "");
        try {
            FileUtils.forceDelete(new File(applicationPagePath));
            if (verbose) {
                logger.info("{} removed with success.", applicationPagePath);
            }
        } catch (IOException e) {
            logger.debug("{} not revove because do not exist.", applicationPagePath);
        }
    }
private void removeApplicationPages ( String applicationName , Class < ? > robotContext , boolean verbose ) { String applicationPagePath = mainPath + File . separator + "java" + File . separator + robotContext . getCanonicalName ( ) . replaceAll ( "\\." , "/" ) . replaceAll ( "utils" , "application/pages/" + applicationName ) . replaceAll ( "/" , Matcher . quoteReplacement ( File . separator ) ) . replaceAll ( robotContext . getSimpleName ( ) , "" ) ; try { FileUtils . forceDelete ( new File ( applicationPagePath ) ) ; if ( verbose ) { logger . info ( "{} removed with success." , applicationPagePath ) ; } } catch ( IOException e ) { logger . debug ( "{} not revove because do not exist." , applicationPagePath ) ; } }
@param applicationName
name of application removed.
@param robotContext
Context class from robot.
@param verbose
boolean to activate verbose mode (show more traces).