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 @@ (define-public java-jnacl
#t)) #t))
(replace 'check (replace 'check
(lambda _ (lambda _
(system* "ant" "compile-tests") (invoke "ant" "compile-tests")
(and (invoke "java" "-cp" (string-append (getenv "CLASSPATH")
(zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes"
":build/classes" ":build/test-classes")
":build/test-classes") "org.testng.TestNG" "-testclass"
"org.testng.TestNG" "-testclass" "build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class")
"build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class")) (invoke "java" "-cp" (string-append (getenv "CLASSPATH")
(zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes"
":build/classes" ":build/test-classes")
":build/test-classes") "org.testng.TestNG" "-testclass"
"org.testng.TestNG" "-testclass" "build/test-classes/com/neilalexander/jnacl/NaClTest.class")
"build/test-classes/com/neilalexander/jnacl/NaClTest.class")))))))) #t)))))
(native-inputs (native-inputs
`(("java-testng" ,java-testng) `(("java-testng" ,java-testng)
("java-fest-util" ,java-fest-util) ("java-fest-util" ,java-fest-util)