src/main/java/org/apache/openejb/tools/release/cmd/ReleaseTasks.java [134:148]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        post.addHeader("Authorization", authorization);
        post.addHeader("Content-Type", "application/json");

        post.setEntity(new StringEntity(data));

        final HttpResponse execute = client.execute(post);

        final String message = IO.slurp(execute.getEntity().getContent());

        final int statusCode = execute.getStatusLine().getStatusCode();
        if (statusCode != 200 && statusCode != 201) {
            throw new IOException(String.format("%s\n%s", execute.getStatusLine().toString(), message));
        }

        return message;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/openejb/tools/release/cmd/ReleaseTasks.java [167:181]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        post.addHeader("Authorization", authorization);
        post.addHeader("Content-Type", "application/json");

        post.setEntity(new StringEntity(data));

        final HttpResponse execute = client.execute(post);

        final String message = IO.slurp(execute.getEntity().getContent());

        final int statusCode = execute.getStatusLine().getStatusCode();
        if (statusCode != 200 && statusCode != 201) {
            throw new IOException(String.format("%s\n%s", execute.getStatusLine().toString(), message));
        }

        return message;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



