source: trunk/abcl/contrib/mvn/jna.asd @ 14236

Last change on this file since 14236 was 14236, checked in by Mark Evenson, 9 years ago

abcl-asdf: Enable bypassing of loading from network if a given class already exists.

An ASDF:MVN component can now optionally specify a CLASSNAME that if
able to be found in the current jvm process, inhbits further loading
from the network.

An ASDF:MVN component may also optionally specify an ALTERNATE-URI
that will be added to the current jvm classpath if Maven cannot be
invoked. Most jvm implementations won't access such jar archives from
the network by default, so this is an intermediate step before
actually writing the code to download the jar to the local filesystem
to then be added.

Refresh documentation in README.markdown.

File size: 628 bytes
1;;;; -*- Mode: LISP -*-
3;;;; Need to have jna.jar present for CFFI to work.
4(asdf:defsystem :jna
5    :version "3.5.1"
6    :defsystem-depends-on (jss abcl-asdf)
7;; FIXME: always seems to be resolving the LATEST maven artifact.
8    :components ((:mvn ""
9                  :alternate-uri ""
10                  :classname "com.sun.jna.Native")))
12(in-package :asdf)
13(defmethod perform :after ((o load-op) (c (eql (find-system :jna))))
14  (when (jss:find-java-class "com.sun.jna.Native")
15    (provide :jna)))
Note: See TracBrowser for help on using the repository browser.