Examples of clean()


Examples of org.apache.portals.applications.webcontent.proxy.impl.DefaultURICleanerImpl.clean()

        String wrongUriWithSpace = "http://SERVER/0/F8C57293124EDBF9C125783200376835/$FILE/EXXO-ADDM-2011-000020-01 (p2).doc";
       
        DefaultURICleanerImpl uriCleaner = new DefaultURICleanerImpl();
        uriCleaner.setSearchList(new String [] { " " });
        uriCleaner.setReplacementList(new String [] { "%20" });
        String cleanedUri = uriCleaner.clean(wrongUriWithSpace);
        assertEquals("http://SERVER/0/F8C57293124EDBF9C125783200376835/$FILE/EXXO-ADDM-2011-000020-01%20(p2).doc", cleanedUri);

        wrongUriWithSpace = "http://SERVER/0/F8C57293124EDBF9C125783200376835/$FILE/EXXO-ADDM-2011-000020-01 (p2)^^^.doc";
        uriCleaner.setSearchList(new String [] { " ", "^" });
        uriCleaner.setReplacementList(new String [] { "%20", "%5E" });
View Full Code Here

Examples of org.apache.s4.comm.tools.TaskSetup.clean()

        CommTestUtils.cleanupTmpDirs();

        zkFactory = CommTestUtils.startZookeeperServer();

        TaskSetup taskSetup = new TaskSetup("localhost:" + CommTestUtils.ZK_PORT);
        taskSetup.clean("s4");
        taskSetup.setup("cluster1", numTasks, 1300);
    }

    @After
    public void cleanupZkBasedTest() throws IOException, InterruptedException {
View Full Code Here

Examples of org.apache.s4.comm.tools.TaskSetup.clean()

    }

    private void initializeS4Node() throws ConfigurationException, IOException, InterruptedException, KeeperException {
        // 1. start s4 nodes. Check that no app is deployed.
        TaskSetup taskSetup = new TaskSetup("localhost:" + CommTestUtils.ZK_PORT);
        taskSetup.clean("s4");
        taskSetup.setup(PRODUCER_CLUSTER, 1, 1300);

        TaskSetup taskSetup2 = new TaskSetup("localhost:" + CommTestUtils.ZK_PORT);
        taskSetup2.setup(CONSUMER_CLUSTER, 1, 1400);
View Full Code Here

Examples of org.apache.s4.comm.tools.TaskSetup.clean()

        try {

            logger.info("preparing new cluster [{}] with [{}] node(s)", clusterArgs.clusterName, clusterArgs.nbTasks);

            TaskSetup taskSetup = new TaskSetup(clusterArgs.zkConnectionString);
            taskSetup.clean(clusterArgs.clusterName);
            taskSetup.setup(clusterArgs.clusterName, clusterArgs.nbTasks, clusterArgs.firstListeningPort);
            logger.info("New cluster configuration uploaded into zookeeper");
        } catch (Exception e) {
            logger.error("Cannot initialize zookeeper with specified configuration", e);
        }
View Full Code Here

Examples of org.apache.s4.comm.tools.TaskSetup.clean()

                    clusterConfigs = Collections.emptyList();
                }
            }
            for (ClusterConfig config : clusterConfigs) {
                TaskSetup taskSetup = new TaskSetup("localhost:" + zkArgs.zkPort);
                taskSetup.clean(config.clusterName);
                taskSetup.setup(config.clusterName, config.nbTasks, config.firstListeningPort);
                logger.info("Defined S4 cluster [{}] with [{}] tasks with first listening port [{}]", new String[] {
                        config.clusterName, String.valueOf(config.nbTasks), String.valueOf(config.firstListeningPort) });
            }
View Full Code Here

Examples of org.apache.sling.scripting.jsp.jasper.compiler.Compiler.clean()

            JasperException je = new JasperException(
                        Localizer.getMessage("jsp.error.unable.compile"),
                        ex);
            return je;
        } finally {
           c.clean();
        }

        return null;
    }
View Full Code Here

Examples of org.apache.velocity.tools.config.ConfigurationCleaner.clean()

        if ("true".equals(cleanConfig))
        {
            // remove invalid tools, data, and properties from the configuration
            ConfigurationCleaner cleaner = new ConfigurationCleaner();
            cleaner.setLog(getLog());
            cleaner.clean(factoryConfig);
        }

        // apply this configuration to the specified factory
        getLog().debug("Configuring toolboxFactory with: "+factoryConfig);
        factory.configure(factoryConfig);
View Full Code Here

Examples of org.apache.velocity.tools.config.ConfigurationCleaner.clean()

        if ("true".equals(cleanConfig))
        {
            // remove invalid tools, data, and properties from the configuration
            ConfigurationCleaner cleaner = new ConfigurationCleaner();
            cleaner.setLog(getLog());
            cleaner.clean(factoryConfig);
        }

        // apply this configuration to the specified factory
        getLog().debug("Configuring toolboxFactory with: "+factoryConfig);
        factory.configure(factoryConfig);
View Full Code Here

Examples of org.eclipse.jgit.api.Git.clean()

        public void run(IProgressMonitor monitor) throws InvocationTargetException,
            InterruptedException {
          monitor.beginTask(UIText.CleanRepositoryPage_findingItems, IProgressMonitor.UNKNOWN);

          Git git = Git.wrap(repository);
          CleanCommand command = git.clean().setDryRun(true);
          command.setCleanDirectories(cleanDirectories);
          command.setIgnore(!includeIgnored);
          try {
            final Set<String> paths = command.call();
View Full Code Here

Examples of org.erlide.core.internal.builder.ErlangBuilder.clean()

        final ErlangBuilder builder = ErlangBuilderFactory.get(builderTool);
        final BuildNotifier notifier = new BuildNotifier(null, prj);
        final IErlProject erlProject = ErlangEngine.getInstance().getModel()
                .getErlangProject(prj);

        builder.clean(erlProject, notifier);
        prj.refreshLocal(IResource.DEPTH_INFINITE, null);
        waitJobsToFinish(ResourcesPlugin.FAMILY_MANUAL_REFRESH);

        final String targetBeamPath = "ebin/mod.beam";
        final IResource beam2 = prj.findMember(targetBeamPath);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.