1 ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
2 ;;; $Header: /usr/local/cvsrep/hunchentoot/hunchentoot.asd,v 1.61 2008/04/09 08:17:48 edi Exp $
4 ;;; Copyright (c) 2004-2010, Dr. Edmund Weitz. All rights reserved.
6 ;;; Redistribution and use in source and binary forms, with or without
7 ;;; modification, are permitted provided that the following conditions
10 ;;; * Redistributions of source code must retain the above copyright
11 ;;; notice, this list of conditions and the following disclaimer.
13 ;;; * Redistributions in binary form must reproduce the above
14 ;;; copyright notice, this list of conditions and the following
15 ;;; disclaimer in the documentation and/or other materials
16 ;;; provided with the distribution.
18 ;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED
19 ;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 ;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 ;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 ;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 ;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 ;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 ;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 ;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 ;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 ;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 (defpackage :hunchentoot-asd
35 (in-package :hunchentoot-asd)
37 (defvar *hunchentoot-version* "1.1.1"
38 "A string denoting the current version of Hunchentoot. Used
39 for diagnostic output.")
41 (export '*hunchentoot-version*)
43 (defsystem :hunchentoot
45 :version #.*hunchentoot-version*
51 #-(or :lispworks :hunchentoot-no-ssl) :cl+ssl
56 #-:lispworks :bordeaux-threads)
57 :components ((:module url-rewrite
59 :components ((:file "packages")
63 (:file "url-rewrite")))
65 #+:lispworks (:file "lispworks")
66 #-:lispworks (:file "compat")
77 (:file "easy-handlers")
79 (:file "set-timeouts")
82 #-:hunchentoot-no-ssl (:file "ssl")))
84 (defsystem :hunchentoot-test
85 :components ((:module "test"
87 :components ((:file "packages")
88 (:file "test-handlers")
89 (:file "script-engine")
91 :depends-on (:hunchentoot :cl-who :cl-ppcre :drakma))
93 (defmethod perform ((o test-op) (c (eql (find-system 'hunchentoot))))
94 (operate 'load-op 'hunchentoot-test)
95 (format t "~&;; Starting web server on localhost:4242.")
97 (funcall (intern (symbol-name :start) (find-package :hunchentoot))
98 (make-instance (intern (symbol-name :acceptor) (find-package :hunchentoot)) :port 4242))
99 (format t "~&;; Sleeping 2 seconds...")
102 (format t "~&;; Now running confidence tests.")
104 (funcall (intern (symbol-name :test-hunchentoot) (find-package :hunchentoot-test))
105 "http://localhost:4242"))