Forum Discussion

max1965's avatar
max1965
Contributor
13 years ago

running jar file into groovy

I have a jar executable that I run with the following command line:

java -jar blowfish.jar crypt <string> <key>

The execution retutn the following output: "cryptata = 2C:D4:C1:C5:98:C3:33:E1"

I want to execute the jar inside a groovy script; it is possible ?

1 Reply

  • I found the solution:

    def output = "java -jar <jar file> <options>".execute().text