public void run()

in src/main/java/org/apache/openejb/tools/release/cmd/ReleaseTasks.java [78:115]


    public void run() throws IOException, JAXBException {
        String response = post(task());
        response = response.replaceAll("[{} \n\"]", "");
        response = response.replaceAll(",", "\n");
        final Properties properties = IO.readProperties(IO.read(response));

        final String key = properties.getProperty("key");

        final JAXBContext context = JAXBContext.newInstance(Tasks.class);
        final Unmarshaller unmarshaller = context.createUnmarshaller();

        final URL resource = this.getClass().getResource("/release-tasks.xml");
        final Tasks tasks = (Tasks) unmarshaller.unmarshal(IO.read(resource));

        for (final Task task : tasks.getTasks()) {
            String description = task.getDescription();

            if (task.getCommands().size() > 0) {
                description += "\n\nCommands:\n";
                for (final String command : task.getCommands()) {
                    description += String.format("https://svn.apache.org/repos/asf/tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/%s.java\n", command);
                }
            }

            description = description.replaceAll("\n", "\\\\n");
            description = description.replaceAll("\t", "\\\\t");
            description = description.replaceAll("\r", "\\\\r");
            description = description.replaceAll("'", "\\'");
            description = description.replaceAll("\"", "\\\\\"");
            description = description.replaceAll("&", "\\\\&");

            final String subtask = subtask(key, task.summary, description);
            System.out.println(task);
            post(subtask);

//            if (true) break;
        }
    }