Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
firmador_estatal
firmador-servidor
Commits
7ac3dfdc
Commit
7ac3dfdc
authored
May 12, 2017
by
jcca
Browse files
Merge branch 'Desarrollo' into 'master'
pasando url del archivo por argumento para el servicio See merge request
!7
parents
6d4d1dad
a99a2367
Changes
3
Hide whitespace changes
Inline
Side-by-side
nbactions.xml
View file @
7ac3dfdc
...
...
@@ -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.
FormServidor
</exec.args>
<exec.args>
-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.
Run "config/token.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.
FormServidor
</exec.args>
<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.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.
FormServidor
</exec.args>
<exec.args>
-classpath %classpath bo.gob.softwarelibre.firmadorestatal.vista.
Run "config/token.cfg"
</exec.args>
<exec.executable>
java
</exec.executable>
</properties>
</action>
...
...
src/main/java/bo/gob/softwarelibre/firmadorestatal/vista/FormServidor.java
View file @
7ac3dfdc
...
...
@@ -30,7 +30,7 @@ import javax.swing.JTextField;
import
javax.swing.filechooser.FileNameExtensionFilter
;
/**
* Formulario Vista
* Formulario Vista
con todas las opciones del servicio Rest del Firmador Servidor
*
* @author: Angel Céspedes Quiroz
* @Skype: acq1305
...
...
src/main/java/bo/gob/softwarelibre/firmadorestatal/vista/Run.java
View file @
7ac3dfdc
...
...
@@ -21,8 +21,9 @@ import sun.security.pkcs11.wrapper.PKCS11Exception;
public
class
Run
{
/**
* Main para iniciar el servidor REST como demonio
*
* 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
...
...
@@ -32,7 +33,7 @@ public class Run {
try
{
GestorSlot
gestorSlot
;
gestorSlot
=
GestorSlot
.
getInstance
();
gestorSlot
.
adicionarProveedor
(
proveedores
(
new
File
(
"config/token.cfg"
).
getAbsolutePath
()));
gestorSlot
.
adicionarProveedor
(
proveedores
(
new
File
(
args
[
0
]
).
getAbsolutePath
()));
ServidorRest
rest
=
new
ServidorRest
();
rest
.
iniciar
();
}
catch
(
Exception
e
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment