Commit 3137406e authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

2.26.3: Better translate-jar-pathname from ABCL 1.1.0

parent c2991e55
......@@ -14,7 +14,7 @@
:licence "MIT"
:description "Another System Definition Facility"
:long-description "ASDF builds Common Lisp software organized into defined systems."
:version "2.26.2" ;; to be automatically updated by bin/bump-revision
:version "2.26.3" ;; to be automatically updated by bin/bump-revision
:depends-on ()
((:file "asdf")))
;;; -*- mode: Common-Lisp; Base: 10 ; Syntax: ANSI-Common-Lisp ; coding: utf-8 -*-
;;; This is ASDF 2.26.2: Another System Definition Facility.
;;; This is ASDF 2.26.3: Another System Definition Facility.
;;; Feedback, bug reports, and patches are all welcome:
;;; please mail to <>.
......@@ -118,7 +118,7 @@
;; "2.345.6" would be a development version in the official upstream
;; "2.345.0.7" would be your seventh local modification of official release 2.345
;; "2.345.6.7" would be your seventh local modification of development version 2.345.6
(asdf-version "2.26.2")
(asdf-version "2.26.3")
(existing-asdf (find-class 'component nil))
(existing-version *asdf-version*)
(already-there (equal asdf-version existing-version)))
......@@ -3964,16 +3964,29 @@ effectively disabling the output translation facility."
(defun* translate-jar-pathname (source wildcard)
(declare (ignore wildcard))
(let* ((p (pathname (first (pathname-device source))))
(root (format nil "/___jar___file___root___/~@[~A/~]"
(and (find :windows *features*)
(pathname-device p)))))
(relativize-pathname-directory source)
(relativize-pathname-directory (ensure-directory-pathname p))
(flet ((normalize-device (pathname)
(if (find :windows *features*)
(make-pathname :defaults pathname :device :unspecific))))
(let* ((jar
(pathname (first (pathname-device source))))
(format nil "/___jar___file___root___/~@[~A/~]"
(and (find :windows *features*)
(pathname-device jar))))
(relativize-pathname-directory source))
(relativize-pathname-directory (ensure-directory-pathname jar)))
(parse-namestring target-root-directory-namestring))))
(merge-pathnames* relative-jar target-root-directory))
(merge-pathnames* relative-source target-root)))
(normalize-device (apply-output-translations target)))))
;;;; -----------------------------------------------------------------
;;;; Compatibility mode for ASDF-Binary-Locations
......@@ -4014,6 +4027,8 @@ call that function where you would otherwise have loaded and configured A-B-L.")
#+abcl (#p"jar:file:/**/*.jar!/**/*.*" (:function translate-jar-pathname))
#+abcl (#p"/___jar___file___root___/**/*.*" (,@destination-directory))
((:root ,*wild-inferiors* ,mapped-files)
(,@destination-directory ,mapped-files))
(t t)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment