Ignore:
Timestamp:
10/13/12 09:12:36 (8 years ago)
Author:
Mark Evenson
Message:

abcl-asdf: special case handling for finding com.sun.jna.Native et. al.

Fallback to finding 'jna.jar' via Maven is to download it ourselves.

Undefined what having a URI in your classpath means to your local JVM
implementation.

File:
1 edited

Legend:

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

    r13904 r14192  
    101101  "Resolve all runtime dependencies of MVN-COMPONENT.
    102102
    103 Returns a string in JVM CLASSPATH format as entries delimited by classpath separator string."
    104  
    105   (with-slots (asdf::group-id asdf::artifact-id asdf::version) mvn-component
    106     (resolve-dependencies asdf::group-id asdf::artifact-id asdf::version)))
     103Returns a string in JVM CLASSPATH format as entries delimited by
     104classpath separator string.  Can possibly be a single entry denoting a
     105remote binary artifact."
     106  (let ((name (asdf::component-name mvn-component)))
     107    (if (find-mvn)
     108        (with-slots (asdf::group-id asdf::artifact-id asdf::version) mvn-component
     109          (resolve-dependencies asdf::group-id asdf::artifact-id asdf::version))
     110        (cond
     111          ((string= name
     112                    "net.java.dev.jna/jna/3.4.0"
     113                    (let ((uri #p"http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar"))
     114                      (values (namestring uri) uri))))
     115          (t
     116           (error "Failed to resolve MVN component name ~A." name))))))
    107117
    108118(defun as-classpath (classpath)
Note: See TracChangeset for help on using the changeset viewer.