Update configuration
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
e8cf6eb68f
commit
a585414982
@ -1,13 +1,15 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.bigeon</groupId>
|
<groupId>net.bigeon.gclc</groupId>
|
||||||
<artifactId>gclc.system</artifactId>
|
<artifactId>system</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<url>http://www.bigeon.net</url>
|
<url>http://www.bigeon.net</url>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<copyright.email>emmanuel@bigeon.fr</copyright.email>
|
||||||
|
<license.licenseName>cecill_2.1</license.licenseName>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
@ -21,21 +23,54 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>fr.bigeon</groupId>
|
<groupId>net.bigeon</groupId>
|
||||||
<artifactId>gclc</artifactId>
|
<artifactId>gclc</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<name>GCLC system command</name>
|
<name>GCLC system command</name>
|
||||||
<description>Provide an exec command to execute system commands</description>
|
<description>Provide an exec command to execute system commands</description>
|
||||||
<inceptionYear>2016</inceptionYear>
|
<inceptionYear>2016</inceptionYear>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<distribution>manual</distribution>
|
||||||
|
<name>CeCILL 2.1</name>
|
||||||
|
<url>https://cecill.info/licences/Licence_CeCILL_V2.1-en.html</url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.10.3</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.sevntu-checkstyle</groupId>
|
||||||
|
<artifactId>dsm-maven-plugin</artifactId>
|
||||||
|
<version>2.2.0</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</reporting>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<email>emmanuel@bigeon.fr</email>
|
||||||
|
<name>Emmanuel Bigeon</name>
|
||||||
|
<url>bigeon.net</url>
|
||||||
|
<roles>
|
||||||
|
<role>PM</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<developerConnection>scm:git:gogs@git.code.bigeon.net:emmanuel/gclc.git</developerConnection>
|
<developerConnection>scm:git:gogs@git.code.bigeon.net:emmanuel/gclc.git</developerConnection>
|
||||||
<tag>HEAD</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>fr.bigeon</groupId>
|
<groupId>net.bigeon.config</groupId>
|
||||||
<artifactId>ebigeon-config</artifactId>
|
<artifactId>ebigeon-config</artifactId>
|
||||||
<version>1.7.1</version>
|
<version>1.8.4</version>
|
||||||
</parent>
|
</parent>
|
||||||
</project>
|
</project>
|
||||||
|
@ -12,11 +12,11 @@ import java.io.OutputStreamWriter;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import fr.bigeon.gclc.command.Command;
|
import net.bigeon.gclc.command.Command;
|
||||||
import fr.bigeon.gclc.exception.CommandRunException;
|
import net.bigeon.gclc.exception.CommandRunException;
|
||||||
import fr.bigeon.gclc.exception.CommandRunExceptionType;
|
import net.bigeon.gclc.exception.CommandRunExceptionType;
|
||||||
import fr.bigeon.gclc.manager.ConsoleInput;
|
import net.bigeon.gclc.manager.ConsoleInput;
|
||||||
import fr.bigeon.gclc.manager.ConsoleOutput;
|
import net.bigeon.gclc.manager.ConsoleOutput;
|
||||||
|
|
||||||
/** A command that will execute a system command.
|
/** A command that will execute a system command.
|
||||||
*
|
*
|
||||||
@ -87,13 +87,13 @@ public class ExecSystemCommand extends Command {
|
|||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new CommandRunException(
|
throw new CommandRunException(
|
||||||
CommandRunExceptionType.INTERACTION,
|
CommandRunExceptionType.INTERACTION,
|
||||||
"manager was closed", e, this); //$NON-NLS-1$
|
"manager was closed", e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
writer.write(user + EOL);
|
writer.write(user + EOL);
|
||||||
}
|
}
|
||||||
} catch (final IOException e1) {
|
} catch (final IOException e1) {
|
||||||
throw new CommandRunException(CommandRunExceptionType.INTERACTION,
|
throw new CommandRunException(CommandRunExceptionType.INTERACTION,
|
||||||
"manager was closed", e1, this); //$NON-NLS-1$
|
"manager was closed", e1); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ public class ExecSystemCommand extends Command {
|
|||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new CommandRunException(
|
throw new CommandRunException(
|
||||||
CommandRunExceptionType.INTERACTION,
|
CommandRunExceptionType.INTERACTION,
|
||||||
"manager was closed", e, this); //$NON-NLS-1$
|
"manager was closed", e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user