Changeset 15647


Ignore:
Timestamp:
02/20/23 09:12:34 (10 months ago)
Author:
Mark Evenson
Message:

abcl-asdf: MAKE-LOCAL-MAVEN installs in local XDG hierarchy

Location:
trunk/abcl/contrib/abcl-asdf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/abcl-asdf/maven.lisp

    r15586 r15647  
    742742                                `(:repository ,repository))))))))))
    743743
     744(defun make-local-maven ()
     745  "Use ABCL-BUILD to install a local Maven, configuring it for subsequent use"
     746  ;; TODO: use this in an interactive restart if Maven can't be found
     747    (setf abcl-asdf:*mvn-libs-directory*
     748     (multiple-value-bind (mvn entries)
     749         (abcl-build:mvn/install)
     750       (let* ((root
     751                (first (last entries)))
     752              (lib
     753                (merge-pathnames  "./lib/" root )))
     754         (abcl-asdf:with-aether (lib)
     755           (values
     756            (and
     757             ;; for good measure
     758             (when (asdf:clear-system :jna)
     759               (asdf:make :jna))
     760             lib)
     761            (abcl-asdf:ensure-mvn-version)
     762            (abcl-build:ensure-maven)))))))
    744763
    745764;;; Currently the last file listed in ASDF
  • trunk/abcl/contrib/abcl-asdf/package.lisp

    r15243 r15647  
    2222
    2323   #:init
     24   #:make-local-maven
     25   
    2426
    2527;;; "Internal" API
Note: See TracChangeset for help on using the changeset viewer.