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

Last change on this file since 14236 was 14236, checked in by Mark Evenson, 8 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
Line 
1;;;; -*- Mode: LISP -*-
2
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 "net.java.dev.jna/jna/3.5.1"
9                  :alternate-uri "http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.5.1/jna-3.5.1.jar"
10                  :classname "com.sun.jna.Native")))
11
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)))
16
17                         
Note: See TracBrowser for help on using the repository browser.