Commit 80655d5d authored by acq1305's avatar acq1305
Browse files

realizando cambios para crear el instalador

parent 11df4ae7
......@@ -10,7 +10,7 @@
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "config/token.cfg"</exec.args>
<exec.args>-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "/home/acq1305/Documentos/config/config.cfg"</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
......@@ -24,7 +24,7 @@
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "config/token.cfg"</exec.args>
<exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "/home/acq1305/Documentos/config/config.cfg"</exec.args>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
......@@ -39,7 +39,7 @@
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "config/token.cfg"</exec.args>
<exec.args>-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.Run "/home/acq1305/Documentos/config/config.cfg"</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
......
......@@ -21,9 +21,10 @@ import sun.security.pkcs11.wrapper.PKCS11Exception;
public class Run {
/**
* Main para iniciar el servidor REST como demonio args[0]= "config/token.cfg"
* cmd windows o terminal linux -> java -jar FirmadorServidor.jar "config/token.cfg"
*
* Main para iniciar el servidor REST como demonio args[0]=
* "config/token.cfg" cmd windows o terminal linux -> java -jar
* FirmadorServidor.jar "config/token.cfg"
*
* @param args
* @throws IOException
* @throws PKCS11Exception
......@@ -33,13 +34,14 @@ public class Run {
try {
GestorSlot gestorSlot;
gestorSlot = GestorSlot.getInstance();
//gestorSlot.adicionarProveedor(proveedores(new File(args[0]).getAbsolutePath()));
gestorSlot.adicionarProveedor(proveedores("config/config.cfg"));
System.out.println("CON ARGUMENTO");
gestorSlot.adicionarProveedor(proveedores(new File(args[0]).getAbsolutePath()));
ServidorRest rest = new ServidorRest();
rest.iniciar();
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println("error al iniciar el servidor REST con el Token (Instale el driver o revise la url al driver del archivo token.cfg)");
System.exit(0);
}
} else {
System.exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment