gnu: java-jnacl: Use invoke.

* gnu/packages/java.scm (java-jnacl)[arguments]: Use "invoke".
This commit is contained in:
Ricardo Wurmus 2018-02-27 20:36:58 +01:00
parent f201b18ed7
commit 602f54f436
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -7538,18 +7538,18 @@ to use.")
#t))
(replace 'check
(lambda _
(system* "ant" "compile-tests")
(and
(zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"org.testng.TestNG" "-testclass"
"build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class"))
(zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"org.testng.TestNG" "-testclass"
"build/test-classes/com/neilalexander/jnacl/NaClTest.class"))))))))
(invoke "ant" "compile-tests")
(invoke "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"org.testng.TestNG" "-testclass"
"build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class")
(invoke "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes"
":build/test-classes")
"org.testng.TestNG" "-testclass"
"build/test-classes/com/neilalexander/jnacl/NaClTest.class")
#t)))))
(native-inputs
`(("java-testng" ,java-testng)
("java-fest-util" ,java-fest-util)