From 84b226c27ee4f3292182b0a8580b2fa5f102f255 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 4 Mar 2019 21:57:05 +0100 Subject: gnu: java-eclipse-jdt-core: Include resources. * gnu/packages/java.scm (java-eclipse-jdt-core)[arguments]: Add build phases "copy-resources" and "move-sources". --- gnu/packages/java.scm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 43ba9d2d17..8dce255f5d 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2016, 2017 Roel Janssen ;;; Copyright © 2017 Carlo Zancanaro @@ -5948,7 +5948,24 @@ and contributes the Eclipse default text editor.") (build-system ant-build-system) (arguments `(#:tests? #f ; no tests included - #:jar-name "eclipse-jdt-core.jar")) + #:jar-name "eclipse-jdt-core.jar" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'move-sources + (lambda _ + (with-directory-excursion "src/jdtCompilerAdaptersrc/" + (for-each (lambda (file) + (install-file file (string-append "../" (dirname file)))) + (find-files "." ".*"))) + (delete-file-recursively "src/jdtCompilerAdaptersrc/") + #t)) + (add-before 'build 'copy-resources + (lambda _ + (with-directory-excursion "src" + (for-each (lambda (file) + (install-file file (string-append "../build/classes/" (dirname file)))) + (find-files "." ".*.(props|properties|rsc)"))) + #t))))) (inputs `(("java-eclipse-core-contenttype" ,java-eclipse-core-contenttype) ("java-eclipse-core-filesystem" ,java-eclipse-core-filesystem) -- cgit v1.2.3