Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailing list filter rule generator / verifier #733

wants to merge 6 commits into from
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -27,6 +27,12 @@ plugins {

module {
name = 'org.openjdk.skara.cli'
test {
requires 'org.openjdk.skara.test'
requires 'org.junit.jupiter.api'
opens 'org.openjdk.skara.cli.debug' to 'org.junit.platform.commons'


dependencies {
@@ -42,22 +48,22 @@ dependencies {
implementation project(':issuetracker')
implementation project(':proxy')
implementation project(':version')
implementation project(':process')

testImplementation project(':test')

images {
ext.launchers = [
'git-jcheck': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitJCheck',
'git-webrev': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitWebrev',
'git-defpath': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitDefpath',
'git-verify-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitVerifyImport',
'git-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitOpenJDKImport',
'git-fork': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitFork',
'git-pr': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitPr',
'git-token': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitToken',
'git-info': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitInfo',
'git-translate': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitTranslate',
'git-skara': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara',
'hg-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.HgOpenJDKImport',
'git-sync': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSync',
'git-publish': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitPublish',
'git-proxy': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitProxy',
@@ -31,6 +31,7 @@
requires org.openjdk.skara.forge;
requires org.openjdk.skara.proxy;
requires org.openjdk.skara.version;
requires org.openjdk.skara.process;

requires java.logging;
@@ -29,9 +29,8 @@
import org.openjdk.skara.version.Version;

import java.nio.file.Path;
import java.nio.file.Files;
import java.nio.charset.StandardCharsets;
import java.nio.file.*;
import java.util.*;

public class GitSkara {
@@ -189,8 +188,7 @@ public static void main(String[] args) throws Exception {
commands.put("jcheck", GitJCheck::main);
commands.put("webrev", GitWebrev::main);
commands.put("defpath", GitDefpath::main);
commands.put("verify-import", GitVerifyImport::main);
commands.put("openjdk-import", GitOpenJDKImport::main);
commands.put("debug", SkaraDebug::main);
commands.put("fork", GitFork::main);
commands.put("pr", GitPr::main);
commands.put("token", GitToken::main);
@@ -0,0 +1,57 @@
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit if you need additional information or have any
* questions.
package org.openjdk.skara.cli;

import org.openjdk.skara.args.*;
import org.openjdk.skara.cli.debug.*;
import org.openjdk.skara.proxy.HttpProxy;

import java.util.List;

public class SkaraDebug {
public static void main(String[] args) throws Exception {
var commands = List.of("help")
.helptext("show help text")
.helptext("import a hg repository")
.helptext("import git repository")
.helptext("verify imported repository")
.helptext("create and verify jdk mailing list filter rules")


var parser = new MultiCommandParser("skara debug", commands);
var command = parser.parse(args);