diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-26 22:42:31 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-26 22:42:31 +0000 |
commit | 94a387343c392d61a47574043dc2f207de9d2e62 (patch) | |
tree | ac7e4cfbed92ddb8c061449da2a6c122fc61ae1c /archiva-jetty | |
parent | fbb1cf622c4dd2f467d0695293dd5698402d35be (diff) | |
download | archiva-94a387343c392d61a47574043dc2f207de9d2e62.tar.gz archiva-94a387343c392d61a47574043dc2f207de9d2e62.zip |
rename jetty-js to jetty as it's now default one
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1426074 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-jetty')
-rw-r--r-- | archiva-jetty/pom.xml | 258 | ||||
-rw-r--r-- | archiva-jetty/src/main/appended-resources/notice-supplements.xml | 94 | ||||
-rw-r--r-- | archiva-jetty/src/main/assembly/bin.xml | 124 | ||||
-rw-r--r-- | archiva-jetty/src/main/conf/archiva.xml | 1 | ||||
-rw-r--r-- | archiva-jetty/src/main/conf/jetty.xml | 354 | ||||
-rw-r--r-- | archiva-jetty/src/main/conf/shared.xml | 1 | ||||
-rw-r--r-- | archiva-jetty/src/main/contexts/archiva.xml | 31 | ||||
-rw-r--r-- | archiva-jetty/src/main/resources/LICENSE | 384 |
8 files changed, 1247 insertions, 0 deletions
diff --git a/archiva-jetty/pom.xml b/archiva-jetty/pom.xml new file mode 100644 index 000000000..71daa7815 --- /dev/null +++ b/archiva-jetty/pom.xml @@ -0,0 +1,258 @@ +<?xml version="1.0"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva</artifactId> + <version>1.4-M4-SNAPSHOT</version> + </parent> + <artifactId>archiva-jetty</artifactId> + <packaging>pom</packaging> + <!-- This is filtered into the scripts, so should be set to Apache Archiva --> + <name>Apache Archiva</name> + + <dependencies> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-server</artifactId> + </dependency> + <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-webapp-js</artifactId> + <type>war</type> + </dependency> + <!-- Runtime dependencies that need to be included in the generated binaries --> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-jndi</artifactId> + <version>${jettyVersion}</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-start</artifactId> + <version>${jettyVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-plus</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.eclipse.jetty</groupId> + <artifactId>jetty-deploy</artifactId> + <version>${jettyVersion}</version> + <scope>runtime</scope> + </dependency> + + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.apache.tomcat</groupId> + <artifactId>tomcat-jdbc</artifactId> + <scope>runtime</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>appassembler-maven-plugin</artifactId> + <configuration> + <daemons> + <daemon> + <id>archiva</id> + <mainClass>org.eclipse.jetty.start.Main</mainClass> + <commandLineArguments> + <commandLineArgument>conf/jetty.xml</commandLineArgument> + </commandLineArguments> + <platforms> + <platform>jsw</platform> + </platforms> + <generatorConfigurations> + <generatorConfiguration> + <generator>jsw</generator> + <configuration> + <property> + <name>wrapper.console.loglevel</name> + <value>INFO</value> + </property> + <property> + <name>wrapper.java.additional.1.stripquotes</name> + <value>TRUE</value> + </property> + <property> + <name>set.default.REPO_DIR</name> + <value>lib</value> + </property> + <property> + <name>wrapper.logfile</name> + <value>%ARCHIVA_BASE%/logs/wrapper.YYYYMMDD.log</value> + </property> + <property> + <name>wrapper.logfile.rollmode</name> + <value>DATE</value> + </property> + <property> + <name>wrapper.app.parameter.2</name> + <value>%ARCHIVA_BASE%/conf/jetty.xml</value> + </property> + <property> + <name>app.base.envvar</name> + <value>ARCHIVA_BASE</value> + </property> + <property> + <name>wrapper.on_exit.default</name> + <value>RESTART</value> + </property> + <property> + <name>wrapper.on_exit.0</name> + <value>SHUTDOWN</value> + </property> + <property> + <name>wrapper.restart.delay</name> + <value>30</value> + </property> + </configuration> + <includes> + <include>linux-x86-32</include> + <include>linux-x86-64</include> + <include>macosx-x86-universal-32</include> + <!-- not available --> + <include>macosx-x86-universal-64</include> + <include>solaris-x86-32</include> + <include>solaris-sparc-32</include> + <include>solaris-sparc-64</include> + <include>windows-x86-32</include> + <include>windows-x86-64</include> + </includes> + </generatorConfiguration> + </generatorConfigurations> + <jvmSettings> + <systemProperties> + <systemProperty>appserver.home=.</systemProperty> + <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty> + <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set + <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty> + --> + <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty> + <systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty> + <systemProperty>archiva.tmp.group.index.ttl=30</systemProperty> + </systemProperties> + <extraArguments> + <extraArgument>-XX:MaxPermSize=128m</extraArgument> + </extraArguments> + <initialMemorySize>512</initialMemorySize> + <maxMemorySize>512</maxMemorySize> + </jvmSettings> + </daemon> + </daemons> + <repoPath>lib</repoPath> + <repositoryLayout>flat</repositoryLayout> + <assembleDirectory>target/generated-resources/appassembler/jsw/archiva</assembleDirectory> + </configuration> + <executions> + <execution> + <goals> + <goal>generate-daemons</goal> + <goal>create-repository</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptor>src/main/assembly/bin.xml</descriptor> + <finalName>apache-archiva-js-${project.version}</finalName> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>config</id> + <phase>process-resources</phase> + <configuration> + <tasks> + <copy todir="target/generated-resources/appassembler/jsw/archiva/conf"> + <fileset dir="src/main/conf" /> + </copy> + <mkdir dir="target/generated-resources/appassembler/jsw/archiva/logs" /> + <mkdir dir="target/generated-resources/appassembler/jsw/archiva/temp" /> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-remote-resources-plugin</artifactId> + <configuration> + <supplementalModels> + <supplementalModel>notice-supplements.xml</supplementalModel> + </supplementalModels> + </configuration> + </plugin> + </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>src/main/conf/**</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> diff --git a/archiva-jetty/src/main/appended-resources/notice-supplements.xml b/archiva-jetty/src/main/appended-resources/notice-supplements.xml new file mode 100644 index 000000000..5b281bd30 --- /dev/null +++ b/archiva-jetty/src/main/appended-resources/notice-supplements.xml @@ -0,0 +1,94 @@ +<supplementalDataModels xmlns="http://maven.apache.org/supplemental-model/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/supplemental-model/1.0.0 http://maven.apache.org/xsd/supplemental-model-1.0.0.xsd"> + <supplement> + <project> + <groupId>ant</groupId> + <artifactId>ant</artifactId> + <name>Ant</name> + <url>http://ant.apache.org/</url> + <organization> + <name>The Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + </project> + </supplement> + + <supplement> + <project> + <groupId>geronimo-spec</groupId> + <artifactId>geronimo-spec-jta</artifactId> + <name>Geronimo :: Java Transaction API Specification</name> + <url>http://geronimo.apache.org/</url> + <organization> + <name>The Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + </project> + </supplement> + <supplement> + <project> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + <name>JavaBeans Activation Framework (JAF)</name> + <organization> + <name>Sun Microsystems</name> + <url>http://www.sun.com/</url> + </organization> + <licenses> + <license> + <name>Common Development and Distribution License (CDDL) v1.0</name> + <url>https://glassfish.dev.java.net/public/CDDLv1.0.html</url> + </license> + </licenses> + </project> + </supplement> + <supplement> + <project> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <name>JavaMail API</name> + <organization> + <name>Sun Microsystems</name> + <url>http://www.sun.com/</url> + </organization> + <licenses> + <license> + <name>Common Development and Distribution License (CDDL) v1.0</name> + <url>https://glassfish.dev.java.net/public/CDDLv1.0.html</url> + </license> + </licenses> + </project> + </supplement> + <supplement> + <project> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <name>Xerces</name> + <url>http://xerces.apache.org/</url> + <organization> + <name>The Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + <licenses> + <license> + <name>The Apache Software License, Version 1.1</name> + <url>http://www.apache.org/licenses/LICENSE</url> + </license> + </licenses> + </project> + </supplement> + +</supplementalDataModels>
\ No newline at end of file diff --git a/archiva-jetty/src/main/assembly/bin.xml b/archiva-jetty/src/main/assembly/bin.xml new file mode 100644 index 000000000..d3d93a4ba --- /dev/null +++ b/archiva-jetty/src/main/assembly/bin.xml @@ -0,0 +1,124 @@ +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<assembly> + <id>bin</id> + <formats> + <format>tar.gz</format> + <format>zip</format> + </formats> + <fileSets> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/apps</directory> + <outputDirectory>apps</outputDirectory> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/conf</directory> + <outputDirectory>conf</outputDirectory> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/lib</directory> + <outputDirectory>lib</outputDirectory> + <excludes> + <!-- avoid what is pulled in by the appassembler plugin, and the archiva dependencies --> + <exclude>archiva-*</exclude> + <exclude>maven-metadata-appassembler.xml</exclude> + </excludes> + <fileMode>0755</fileMode> + <directoryMode>0755</directoryMode> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/logs</directory> + <outputDirectory>logs</outputDirectory> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/temp</directory> + <outputDirectory>temp</outputDirectory> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/bin</directory> + <outputDirectory>bin</outputDirectory> + <includes> + <include>archiva</include> + </includes> + <fileMode>0755</fileMode> + <lineEnding>unix</lineEnding> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/bin</directory> + <outputDirectory>bin</outputDirectory> + <includes> + <include>wrapper-linux-x86-32</include> + <include>wrapper-linux-x86-64</include> + <include>wrapper-macosx-universal-32</include> + <include>wrapper-solaris-x86-32</include> + <include>wrapper-solaris-sparc-32</include> + <include>wrapper-solaris-sparc-64</include> + </includes> + <fileMode>0755</fileMode> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/bin</directory> + <outputDirectory>bin</outputDirectory> + <includes> + <include>archiva.bat</include> + </includes> + <fileMode>0755</fileMode> + <lineEnding>dos</lineEnding> + </fileSet> + <fileSet> + <directory>target/generated-resources/appassembler/jsw/archiva/bin</directory> + <outputDirectory>bin</outputDirectory> + <includes> + <include>wrapper-windows-x86-32.exe</include> + </includes> + <fileMode>0755</fileMode> + </fileSet> + <fileSet> + <directory>target/maven-shared-archive-resources/META-INF/</directory> + <outputDirectory>/</outputDirectory> + <includes> + <include>NOTICE</include> + </includes> + </fileSet> + <fileSet> + <directory>src/main/resources/</directory> + <outputDirectory>/</outputDirectory> + <includes> + <include>LICENSE</include> + </includes> + </fileSet> + <fileSet> + <directory>src/main/contexts</directory> + <outputDirectory>contexts</outputDirectory> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <unpack>true</unpack> + <outputDirectory>apps/archiva</outputDirectory> + <includes> + <include>org.apache.archiva:archiva-webapp-js</include> + </includes> + <fileMode>0755</fileMode> + <directoryMode>0755</directoryMode> + </dependencySet> + </dependencySets> +</assembly> + diff --git a/archiva-jetty/src/main/conf/archiva.xml b/archiva-jetty/src/main/conf/archiva.xml new file mode 100644 index 000000000..9afb83352 --- /dev/null +++ b/archiva-jetty/src/main/conf/archiva.xml @@ -0,0 +1 @@ +<configuration /> diff --git a/archiva-jetty/src/main/conf/jetty.xml b/archiva-jetty/src/main/conf/jetty.xml new file mode 100644 index 000000000..39ca9f1ed --- /dev/null +++ b/archiva-jetty/src/main/conf/jetty.xml @@ -0,0 +1,354 @@ +<?xml version="1.0"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<!-- =============================================================== --> +<!-- Configure the Jetty Server --> +<!-- --> +<!-- Documentation of this file format can be found at: --> +<!-- http://docs.codehaus.org/display/JETTY/jetty.xml --> +<!-- --> +<!-- =============================================================== --> + + +<Configure id="Server" class="org.eclipse.jetty.server.Server"> + + <!-- =========================================================== --> + <!-- Server Thread Pool --> + <!-- =========================================================== --> + <Set name="ThreadPool"> + <!-- Default bounded blocking threadpool + --> + <New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> + <Set name="minThreads">10</Set> + <Set name="maxThreads">250</Set> + </New> + + <!-- Optional Java 5 bounded threadpool with job queue + <New class="org.eclipse.jetty.util.thread.ExecutorThreadPool"> + <Set name="corePoolSize">250</Set> + <Set name="maximumPoolSize">250</Set> + </New> + --> + </Set> + + <!-- =========================================================== --> + <!-- Set connectors --> + <!-- =========================================================== --> + <!-- One of each type! --> + <!-- =========================================================== --> + + <!-- Use this connector for many frequently idle connections + and for threadless continuations. + --> + <Call name="addConnector"> + <Arg> + <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> + <Set name="host"><SystemProperty name="jetty.host"/></Set> + <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set> + <Set name="maxIdleTime">30000</Set> + <Set name="Acceptors">2</Set> + <Set name="statsOn">false</Set> + <Set name="confidentialPort">8443</Set> + <Set name="lowResourcesConnections">5000</Set> + <Set name="lowResourcesMaxIdleTime">5000</Set> + </New> + </Arg> + </Call> + + <!-- Use this connector if NIO is not available. + <Call name="addConnector"> + <Arg> + <New class="org.mortbay.jetty.bio.SocketConnector"> + <Set name="port">8081</Set> + <Set name="maxIdleTime">50000</Set> + <Set name="lowResourceMaxIdleTime">1500</Set> + </New> + </Arg> + </Call> + --> + + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + <!-- To add a HTTPS SSL listener --> + <!-- see jetty-ssl.xml to add an ssl connector. use --> + <!-- java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml --> + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + <!-- =========================================================== --> + <!-- Set up global session ID manager --> + <!-- =========================================================== --> + <!-- + <Set name="sessionIdManager"> + <New class="org.mortbay.jetty.servlet.HashSessionIdManager"> + <Set name="workerName">node1</Set> + </New> + </Set> + --> + + <!-- =========================================================== --> + <!-- Set handler Collection Structure --> + <!-- =========================================================== --> + <Set name="handler"> + <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection"> + <Set name="handlers"> + <Array type="org.eclipse.jetty.server.Handler"> + <Item> + <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/> + </Item> + <Item> + <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/> + </Item> + <Item> + <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/> + </Item> + </Array> + </Set> + </New> + </Set> + + <!-- =========================================================== --> + <!-- Configure the context deployer --> + <!-- A context deployer will deploy contexts described in --> + <!-- configuration files discovered in a directory. --> + <!-- The configuration directory can be scanned for hot --> + <!-- deployments at the configured scanInterval. --> + <!-- --> + <!-- This deployer is configured to deploy contexts configured --> + <!-- in the $JETTY_HOME/contexts directory --> + <!-- --> + <!-- =========================================================== --> + <Call name="addLifeCycle"> + <Arg> + <New class="org.eclipse.jetty.deploy.ContextDeployer"> + <Set name="contexts"><Ref id="Contexts"/></Set> + <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set> + <Set name="scanInterval">1</Set> + </New> + </Arg> + </Call> + + <!-- =========================================================== --> + <!-- Configure the webapp deployer. --> + <!-- A webapp deployer will deploy standard webapps discovered --> + <!-- in a directory at startup, without the need for additional --> + <!-- configuration files. It does not support hot deploy or --> + <!-- non standard contexts (see ContextDeployer above). --> + <!-- --> + <!-- This deployer is configured to deploy webapps from the --> + <!-- $JETTY_HOME/webapps directory --> + <!-- --> + <!-- Normally only one type of deployer need be used. --> + <!-- --> + <!-- =========================================================== --> + <Call name="addLifeCycle"> + <Arg> + <New class="org.eclipse.jetty.deploy.WebAppDeployer"> + <Set name="contexts"><Ref id="Contexts"/></Set> + <Set name="webAppDir"><SystemProperty name="jetty.home" default="."/>/apps</Set> + <Set name="parentLoaderPriority">false</Set> + <Set name="extract">true</Set> + <Set name="allowDuplicates">false</Set> + </New> + </Arg> + </Call> + + <!-- =========================================================== --> + <!-- Configure Request Log --> + <!-- Request logs may be configured for the entire server here, --> + <!-- or they can be configured for a specific web app in a --> + <!-- contexts configuration (see $(jetty.home)/contexts/test.xml --> + <!-- for an example). --> + <!-- =========================================================== --> + <Ref id="RequestLog"> + <Set name="requestLog"> + <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog"> + <Set name="filename"><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set> + <Set name="filenameDateFormat">yyyy_MM_dd</Set> + <Set name="retainDays">90</Set> + <Set name="append">true</Set> + <Set name="extended">true</Set> + <Set name="logCookies">false</Set> + <Set name="LogTimeZone">GMT</Set> + </New> + </Set> + </Ref> + + <!-- =========================================================== --> + <!-- extra options --> + <!-- =========================================================== --> + <Set name="stopAtShutdown">true</Set> + <Set name="sendServerVersion">true</Set> + <Set name="sendDateHeader">true</Set> + <Set name="gracefulShutdown">1000</Set> + + + + <!-- =========================================================== --> + <!-- JNDI java:comp/env --> + <!-- To use JNDI with Jetty, you will need to tell your --> + <!-- WebAppContext to process the naming related items in --> + <!-- web.xml. For an example of how to do that, see the test --> + <!-- webapp below. More information can be found at --> + <!-- http://docs.codehaus.org/display/JETTY/Jetty+Wiki --> + <!-- =========================================================== --> + + + <!-- Configuring <resource-ref> and <resource-env-ref>s --> + <!-- --> + <!-- The following are examples of setting up a resource that --> + <!-- can be referenced in a web.xml file as a <resource-ref> or --> + <!-- a <resource-env-ref>. The first argument is the name of the --> + <!-- resource relative to java:comp/env and must be the SAME as --> + <!-- the <res-ref-name> or <resource-env-ref-name> in web.xml. --> + <!-- The second argument is the construction of the resource --> + <!-- object. Any object at all can be configured. --> + + + <!-- These examples set up a javax.sql.DataSource around an --> + <!-- XADataSource that is provided by the Derby relational db. --> + <!-- The DataSource wrapper that is registered in JNDI is --> + <!-- provided by Atomikos, and works with the Atomikos --> + <!-- transaction manager configured further below. To use these --> + <!-- examples, download Atomikos http://www.atomikos.com and --> + <!-- Derby http://db.apache.org/derby --> + + + <!-- Configuring Transactions --> + <!-- --> + <!-- The following is a example of a setting up a JTA --> + <!-- transaction manager that can be referenced by looking up --> + <!-- java:comp/UserTransaction. Note that this is just an --> + <!-- example and if you uncomment it, you will need to download --> + <!-- the atomikos jar (see http://www.atomikos.com/download.html)--> + <!-- You can configure any transaction manager that implements --> + <!-- javax.transaction.UserTransaction. --> + + + <Call name="setAttribute"> + <Arg>org.eclipse.jetty.webapp.configuration</Arg> + <Arg> + <Array type="java.lang.String"> + <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item> + <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item> + <Item>org.eclipse.jetty.webapp.MetaInfConfiguration</Item> + <Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item> + <Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> + <Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item> + <Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item> + <Item>org.eclipse.jetty.webapp.TagLibConfiguration</Item> + </Array> + </Arg> + </Call> + + + <!-- =========================================================== --> + <!-- Configurations for WebAppContexts --> + <!-- Sequence of configurations to be applied to a webapp. --> + <!-- =========================================================== --> + <Array id="plusConfig" type="java.lang.String"> + <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item> + <Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> + <Item>org.eclipse.jetty.webapp.Configuration</Item> + <Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item> + <Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item> + </Array> + + <!-- ARCHIVA CONFIG --> + + <New id="validation_mail" class="org.eclipse.jetty.plus.jndi.Resource"> + <Arg>mail/Session</Arg> + <Arg> + <New class="org.eclipse.jetty.jndi.factories.MailSessionReference"> + <Set name="user"></Set> + <Set name="password"></Set> + <Set name="properties"> + <New class="java.util.Properties"> + <Put name="mail.smtp.host">localhost</Put> + </New> + </Set> + </New> + </Arg> + </New> + + <!-- Users / Security Database --> + <!-- + <New id="users" class="org.eclipse.jetty.plus.jndi.Resource"> + <Arg>jdbc/users</Arg> + <Arg> + <New class="org.apache.derby.jdbc.EmbeddedDataSource"> + <Set name="DatabaseName"><SystemProperty name="appserver.base" default=".."/>/data/databases/users</Set> + <Set name="user">sa</Set> + <Set name="createDatabase">create</Set> + </New> + </Arg> + </New> + + <New id="usersShutdown" class="org.eclipse.jetty.plus.jndi.Resource"> + <Arg>jdbc/usersShutdown</Arg> + <Arg> + <New class="org.apache.derby.jdbc.EmbeddedDataSource"> + <Set name="DatabaseName"><SystemProperty name="appserver.base" default=".."/>/data/databases/users</Set> + <Set name="user">sa</Set> + <Set name="shutdownDatabase">shutdown</Set> + </New> + </Arg> + </New> + --> + <New id="users" class="org.eclipse.jetty.plus.jndi.Resource"> + <Arg>jdbc/users</Arg> + <Arg> + <New class="org.apache.tomcat.jdbc.pool.DataSource"> + <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set> + <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users;create=true</Set> + <Set name="username">sa</Set> + <Set name="maxActive">20</Set> + <Set name="removeAbandoned">true</Set> + <Set name="logAbandoned">true</Set> + <Set name="initialSize">5</Set> + <Set name="testOnBorrow">true</Set> + <!-- very rigourous sql query validation --> + <Set name="validationQuery">select 1</Set> + </New> + </Arg> + </New> + + <New id="usersShutdown" class="org.eclipse.jetty.plus.jndi.Resource"> + <Arg>jdbc/usersShutdown</Arg> + <Arg> + <New class="org.apache.tomcat.jdbc.pool.DataSource"> + <Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set> + <Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users</Set> + <Set name="username">sa</Set> + </New> + </Arg> + </New> + + + <!-- + <New id="ArchivaWebAppContext" class="org.eclipse.jetty.webapp.WebAppContext"> + <Arg><Ref id="Handlers"/></Arg> + <Arg><SystemProperty name="jetty.home" default="."/>/apps/archiva</Arg> + <Arg>/</Arg> + <Set name="extractWAR">false</Set> + <Set name="throwUnavailableOnStartupException">true</Set> + </New> + --> + +</Configure> diff --git a/archiva-jetty/src/main/conf/shared.xml b/archiva-jetty/src/main/conf/shared.xml new file mode 100644 index 000000000..9afb83352 --- /dev/null +++ b/archiva-jetty/src/main/conf/shared.xml @@ -0,0 +1 @@ +<configuration /> diff --git a/archiva-jetty/src/main/contexts/archiva.xml b/archiva-jetty/src/main/contexts/archiva.xml new file mode 100644 index 000000000..93728d8e6 --- /dev/null +++ b/archiva-jetty/src/main/contexts/archiva.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> + +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<Configure class="org.eclipse.jetty.webapp.WebAppContext"> + + <Set name="contextPath">/</Set> + <Set name="war"><SystemProperty name="jetty.home" default="."/>/apps/archiva</Set> + + <Set name="extractWAR">false</Set> + <Set name="copyWebDir">false</Set> + +</Configure>
\ No newline at end of file diff --git a/archiva-jetty/src/main/resources/LICENSE b/archiva-jetty/src/main/resources/LICENSE new file mode 100644 index 000000000..cfc21164b --- /dev/null +++ b/archiva-jetty/src/main/resources/LICENSE @@ -0,0 +1,384 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +For Java Service Wrapper v3.2.3: + +Copyright (c) 1999, 2006 Tanuki Software, Inc. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of the Java Service Wrapper and associated +documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sub-license, +and/or sell copies of the Software, and to permit persons to +whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +Portions of the Software have been derived from source code +developed by Silver Egg Technology under the following license: + + + + +For jQuery 1.8.1: + +Copyright (c) 2009 John Resig, http://jquery.com/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +For JQuery UI 1.8.23: + +Copyright (c) 2009 Paul Bakaus, http://jqueryui.com/ + +This software consists of voluntary contributions made by many +individuals (AUTHORS.txt, http://jqueryui.com/about) For exact +contribution history, see the revision history and logs, available +at http://jquery-ui.googlecode.com/svn/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +For bootstrap: + +Copyright 2012 Twitter, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this work except in compliance with the License. +You may obtain a copy of the License in the LICENSE file, or at: http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed +on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and limitations under the License. + +For chosen jquery + +Version 0.9.7 +Full source at https://github.com/harvesthq/chosen +Copyright (c) 2011 Harvest http://getharvest.com + +MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md + +For require domReady order: + +@license RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. +Available via the MIT or new BSD license. +see: http://github.com/jrburke/requirejs for details + +For jQuery Cookie plugin: + +Copyright (c) 2010 Klaus Hartl (stilbuero.de) +Dual licensed under the MIT and GPL licenses: +http://www.opensource.org/licenses/mit-license.php +http://www.gnu.org/licenses/gpl.html + +For jQuery File Upload + +Copyright 2010, Sebastian Tschan +https://blueimp.net +Licensed under the MIT license: +http://www.opensource.org/licenses/MIT + +For jQuery Templates Plugin +Copyright Software Freedom Conservancy, Inc. +Dual licensed under the MIT or GPL Version 2 licenses. http://jquery.org/license + +For jQuery Validation Plugin + +Copyright (c) 2006 - 2011 Jörn Zaefferer +Dual licensed under the MIT and GPL licenses: +http://www.opensource.org/licenses/mit-license.php +http://www.gnu.org/licenses/gpl.html + +For Knockout JavaScript library +(c) Steven Sanderson - http://knockoutjs.com/ +License: MIT (http://www.opensource.org/licenses/mit-license.php) + +For knockout-sortable +(c) 2012 Ryan Niemeyer +http://www.opensource.org/licenses/mit-license + +For prettify +Copyright (C) 2006 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +For slf4j +Copyright (c) 2004-2011 QOS.ch +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |