From 8b52ba5d4920429a1e8ccd194f0da56a2ec43fcc Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Sat, 1 Dec 2018 11:48:34 -0500 Subject: [PATCH] Licensing Signed-off-by: Emmanuel Bigeon --- .../bigeon/gclc/swt/ConsoleInputManager.java | 34 +++ .../bigeon/gclc/swt/ConsoleOutputDisplay.java | 34 +++ .../bigeon/gclc/swt/ConsoleOutputManager.java | 34 +++ .../bigeon/gclc/swt/ConsolePromptManager.java | 34 +++ .../gclc/swt/PromptReadingRunnable.java | 34 +++ .../net/bigeon/gclc/swt/SWTConsoleView.java | 34 +++ .../gclc/swt/ConsoleInputManagerTest.java | 34 +++ .../gclc/swt/ConsoleOutputManagerTest.java | 34 +++ .../gclc/swt/ConsolePromptManagerTest.java | 34 +++ .../gclc/swt/PromptReadingRunnableTest.java | 34 +++ .../bigeon/gclc/swt/SWTConsoleShellTest.java | 34 +++ .../bigeon/gclc/swt/SWTConsoleViewTest.java | 34 +++ .../bigeon/gclc/command/base/EchoCommand.java | 233 ++++++++++-------- .../gclc/manager/forwarding/package-info.java | 34 +++ .../command/ParametrizedCommandDataTest.java | 34 +++ .../gclc/command/base/EchoCommandTest.java | 34 +++ .../net/bigeon/gclc/utils/EmptyInputTest.java | 34 +++ .../net/bigeon/gclc/utils/SinkOutputTest.java | 34 +++ 18 files changed, 711 insertions(+), 100 deletions(-) diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleInputManager.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleInputManager.java index 4df15ab..347f8f7 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleInputManager.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleInputManager.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import java.io.IOException; import org.eclipse.swt.widgets.Text; diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputDisplay.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputDisplay.java index 2f4809c..585b6ed 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputDisplay.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputDisplay.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + /** The common interface for console display. * * @author Emmanuel Bigeon */ diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputManager.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputManager.java index 7126c82..1b0f51d 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputManager.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsoleOutputManager.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Widget; diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsolePromptManager.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsolePromptManager.java index bc261e0..3ac8cb2 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsolePromptManager.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/ConsolePromptManager.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import java.io.BufferedReader; import org.eclipse.swt.widgets.Label; diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/PromptReadingRunnable.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/PromptReadingRunnable.java index e119141..5bb89da 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/PromptReadingRunnable.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/PromptReadingRunnable.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import java.io.BufferedReader; import java.io.IOException; import java.util.logging.Level; diff --git a/gclc-swt/src/main/java/net/bigeon/gclc/swt/SWTConsoleView.java b/gclc-swt/src/main/java/net/bigeon/gclc/swt/SWTConsoleView.java index 55c4276..dbd1b1f 100644 --- a/gclc-swt/src/main/java/net/bigeon/gclc/swt/SWTConsoleView.java +++ b/gclc-swt/src/main/java/net/bigeon/gclc/swt/SWTConsoleView.java @@ -35,6 +35,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleInputManagerTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleInputManagerTest.java index bf1f286..f57f5dd 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleInputManagerTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleInputManagerTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import static org.mockito.Mockito.doThrow; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleOutputManagerTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleOutputManagerTest.java index 0b5d8b1..4b6c0c7 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleOutputManagerTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsoleOutputManagerTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsolePromptManagerTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsolePromptManagerTest.java index da818bf..12aa3e4 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsolePromptManagerTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/ConsolePromptManagerTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/PromptReadingRunnableTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/PromptReadingRunnableTest.java index d82300e..64c98da 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/PromptReadingRunnableTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/PromptReadingRunnableTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleShellTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleShellTest.java index 1d8d818..e5b26ce 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleShellTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleShellTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertNotNull; import org.eclipse.swt.SWT; diff --git a/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleViewTest.java b/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleViewTest.java index 350e076..a0ddbfa 100644 --- a/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleViewTest.java +++ b/gclc-swt/src/test/java/net/bigeon/gclc/swt/SWTConsoleViewTest.java @@ -3,6 +3,40 @@ */ package net.bigeon.gclc.swt; +/*- + * #%L + * GCLC swt + * %% + * Copyright (C) 2015 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; diff --git a/gclc/src/main/java/net/bigeon/gclc/command/base/EchoCommand.java b/gclc/src/main/java/net/bigeon/gclc/command/base/EchoCommand.java index 5e9bfd8..7c8d2b5 100644 --- a/gclc/src/main/java/net/bigeon/gclc/command/base/EchoCommand.java +++ b/gclc/src/main/java/net/bigeon/gclc/command/base/EchoCommand.java @@ -1,100 +1,133 @@ -/* - * ralph.runner, Runs RALPH (belongs to IREQ) in sequence for several days - * Copyright (C) 2016-2018 E. Bigeon - * mailto:emmanuel@bigeon.fr - * - * This software is governed by the CeCILL license under French law and - * abiding by the rules of distribution of free software. You can use, - * modify and/or redistribute the software under the terms of the CeCILL - * license as circulated by CEA, CNRS and INRIA at the following URL - * "http://www.cecill.info". - * - * As a counterpart to the access to the source code and rights to copy, - * modify and redistribute granted by the license, users are provided only - * with a limited warranty and the software's author, the holder of the - * economic rights, and the successive licensors have only limited - * liability. - * - * In this respect, the user's attention is drawn to the risks associated - * with loading, using, modifying and/or developing or reproducing the - * software by the user in light of its specific status of free software, - * that may mean that it is complicated to manipulate, and that also - * therefore means that it is reserved for developers and experienced - * professionals having in-depth computer knowledge. Users are therefore - * encouraged to load and test the software's suitability as regards their - * requirements in conditions enabling the security of their systems and/or - * data to be ensured and, more generally, to use and operate it in the - * same conditions as regards security. - * - * The fact that you are presently reading this means that you have had - * knowledge of the CeCILL license and that you accept its terms. - */ -/** - * - */ -package net.bigeon.gclc.command.base; - -import java.io.IOException; -import java.text.MessageFormat; -import java.util.Arrays; - -import net.bigeon.gclc.command.Command; -import net.bigeon.gclc.exception.CommandRunException; -import net.bigeon.gclc.manager.ConsoleInput; -import net.bigeon.gclc.manager.ConsoleOutput; - -/** A command printing test to the console. - *

- * This command mimics the effect of the echo command in linux system. The - * difference is this command accepts java like formatting. - * - *

- * echo.execute(out, in, "My Formatted {0}, with {1}", "message", "short arguments");
- * 
- * - * @author Emmanuel Bigeon */ -public class EchoCommand extends Command { - - /** Create the command. - * - * @param name the command name */ - public EchoCommand(final String name) { - super(name); - } - - /* (non-Javadoc) - * @see - * fr.bigeon.gclc.command.ICommand#execute(fr.bigeon.gclc.manager.ConsoleOutput, - * fr.bigeon.gclc.manager.ConsoleInput, java.lang.String[]) */ - @Override - public void execute(final ConsoleOutput out, final ConsoleInput in, - final String... args) throws CommandRunException { - try { - if (args.length == 1) { - out.print(args[0]); - } - if (args.length > 1) { - out.print(MessageFormat.format(args[0], - (Object[]) Arrays.copyOfRange(args, 1, args.length))); - } - out.println(); - } catch (final IOException e) { - throw new CommandRunException("Printing failed", e); - } - } - - /* (non-Javadoc) - * @see fr.bigeon.gclc.command.ICommand#tip() */ - @Override - public String tip() { - return "Print the message"; - } - - /* (non-Javadoc) - * @see fr.bigeon.gclc.command.Command#usageDetail() */ - @Override - protected String usageDetail() { - return "A formatted message can be used"; - } - -} +/* + * ralph.runner, Runs RALPH (belongs to IREQ) in sequence for several days + * Copyright (C) 2016-2018 E. Bigeon + * mailto:emmanuel@bigeon.fr + * + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + */ +/** + * + */ +package net.bigeon.gclc.command.base; + +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ +import java.io.IOException; +import java.text.MessageFormat; +import java.util.Arrays; + +import net.bigeon.gclc.command.Command; +import net.bigeon.gclc.exception.CommandRunException; +import net.bigeon.gclc.manager.ConsoleInput; +import net.bigeon.gclc.manager.ConsoleOutput; + +/** A command printing test to the console. + *

+ * This command mimics the effect of the echo command in linux system. The + * difference is this command accepts java like formatting. + * + *

+ * echo.execute(out, in, "My Formatted {0}, with {1}", "message", "short arguments");
+ * 
+ * + * @author Emmanuel Bigeon */ +public class EchoCommand extends Command { + + /** Create the command. + * + * @param name the command name */ + public EchoCommand(final String name) { + super(name); + } + + /* (non-Javadoc) + * @see + * fr.bigeon.gclc.command.ICommand#execute(fr.bigeon.gclc.manager.ConsoleOutput, + * fr.bigeon.gclc.manager.ConsoleInput, java.lang.String[]) */ + @Override + public void execute(final ConsoleOutput out, final ConsoleInput in, + final String... args) throws CommandRunException { + try { + if (args.length == 1) { + out.print(args[0]); + } + if (args.length > 1) { + out.print(MessageFormat.format(args[0], + (Object[]) Arrays.copyOfRange(args, 1, args.length))); + } + out.println(); + } catch (final IOException e) { + throw new CommandRunException("Printing failed", e); + } + } + + /* (non-Javadoc) + * @see fr.bigeon.gclc.command.ICommand#tip() */ + @Override + public String tip() { + return "Print the message"; + } + + /* (non-Javadoc) + * @see fr.bigeon.gclc.command.Command#usageDetail() */ + @Override + protected String usageDetail() { + return "A formatted message can be used"; + } + +} diff --git a/gclc/src/main/java/net/bigeon/gclc/manager/forwarding/package-info.java b/gclc/src/main/java/net/bigeon/gclc/manager/forwarding/package-info.java index 6ea53bc..61df81d 100644 --- a/gclc/src/main/java/net/bigeon/gclc/manager/forwarding/package-info.java +++ b/gclc/src/main/java/net/bigeon/gclc/manager/forwarding/package-info.java @@ -7,3 +7,37 @@ * @author Emmanuel Bigeon */ package net.bigeon.gclc.manager.forwarding; +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + diff --git a/gclc/src/test/java/net/bigeon/gclc/command/ParametrizedCommandDataTest.java b/gclc/src/test/java/net/bigeon/gclc/command/ParametrizedCommandDataTest.java index a1d06f0..8e36880 100644 --- a/gclc/src/test/java/net/bigeon/gclc/command/ParametrizedCommandDataTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/command/ParametrizedCommandDataTest.java @@ -1,5 +1,39 @@ package net.bigeon.gclc.command; +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.*; import org.junit.Test; diff --git a/gclc/src/test/java/net/bigeon/gclc/command/base/EchoCommandTest.java b/gclc/src/test/java/net/bigeon/gclc/command/base/EchoCommandTest.java index b8e61d7..c6f9c9c 100644 --- a/gclc/src/test/java/net/bigeon/gclc/command/base/EchoCommandTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/command/base/EchoCommandTest.java @@ -1,5 +1,39 @@ package net.bigeon.gclc.command.base; +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; diff --git a/gclc/src/test/java/net/bigeon/gclc/utils/EmptyInputTest.java b/gclc/src/test/java/net/bigeon/gclc/utils/EmptyInputTest.java index d4fab25..1a7d480 100644 --- a/gclc/src/test/java/net/bigeon/gclc/utils/EmptyInputTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/utils/EmptyInputTest.java @@ -1,5 +1,39 @@ package net.bigeon.gclc.utils; +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; diff --git a/gclc/src/test/java/net/bigeon/gclc/utils/SinkOutputTest.java b/gclc/src/test/java/net/bigeon/gclc/utils/SinkOutputTest.java index a4e1215..1252b28 100644 --- a/gclc/src/test/java/net/bigeon/gclc/utils/SinkOutputTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/utils/SinkOutputTest.java @@ -1,5 +1,39 @@ package net.bigeon.gclc.utils; +/*- + * #%L + * Generic Command Ligne console + * %% + * Copyright (C) 2014 - 2018 Bigeon + * %% + * This software is governed by the CeCILL license under French law and + * abiding by the rules of distribution of free software. You can use, + * modify and/ or redistribute the software under the terms of the CeCILL + * license as circulated by CEA, CNRS and INRIA at the following URL + * "http://www.cecill.info". + * + * As a counterpart to the access to the source code and rights to copy, + * modify and redistribute granted by the license, users are provided only + * with a limited warranty and the software's author, the holder of the + * economic rights, and the successive licensors have only limited + * liability. + * + * In this respect, the user's attention is drawn to the risks associated + * with loading, using, modifying and/or developing or reproducing the + * software by the user in light of its specific status of free software, + * that may mean that it is complicated to manipulate, and that also + * therefore means that it is reserved for developers and experienced + * professionals having in-depth computer knowledge. Users are therefore + * encouraged to load and test the software's suitability as regards their + * requirements in conditions enabling the security of their systems and/or + * data to be ensured and, more generally, to use and operate it in the + * same conditions as regards security. + * + * The fact that you are presently reading this means that you have had + * knowledge of the CeCILL license and that you accept its terms. + * #L% + */ + import static org.junit.Assert.assertFalse; import java.io.IOException;