From commits-return-6193-apmail-jackrabbit-commits-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Aug 05 16:47:44 2008 Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 56712 invoked from network); 5 Aug 2008 16:47:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 16:47:44 -0000 Received: (qmail 38691 invoked by uid 500); 5 Aug 2008 16:47:43 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 38662 invoked by uid 500); 5 Aug 2008 16:47:43 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 38653 invoked by uid 99); 5 Aug 2008 16:47:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 09:47:43 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 16:46:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 313912388882; Tue, 5 Aug 2008 09:46:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r682786 - in /jackrabbit/sandbox/jackrabbit-standalone: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/jackrabbit/ src/main/java/org/apache/jackrabbit/standalone/ Date: Tue, 05 Aug 2008 16:46:53 -0000 To: commits@jackrabbit.apache.org From: jukka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080805164653.313912388882@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jukka Date: Tue Aug 5 09:46:52 2008 New Revision: 682786 URL: http://svn.apache.org/viewvc?rev=682786&view=rev Log: JCR-1357: Create "quick start" developer bundles for model 1,2,3 deployment Started a jackrabbit-standalone snapshot project that produces a runnable jar file that comes with embedded Jetty and the Jackrabbit webapp. Ideally it should be possible to use this package also as a normal war file so we wouldn't need to differentiate between the jar and war distributions. Added: jackrabbit/sandbox/jackrabbit-standalone/ (with props) jackrabbit/sandbox/jackrabbit-standalone/pom.xml jackrabbit/sandbox/jackrabbit-standalone/src/ jackrabbit/sandbox/jackrabbit-standalone/src/main/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java Propchange: jackrabbit/sandbox/jackrabbit-standalone/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Tue Aug 5 09:46:52 2008 @@ -0,0 +1,2 @@ +.* +target Added: jackrabbit/sandbox/jackrabbit-standalone/pom.xml URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-standalone/pom.xml?rev=682786&view=auto ============================================================================== --- jackrabbit/sandbox/jackrabbit-standalone/pom.xml (added) +++ jackrabbit/sandbox/jackrabbit-standalone/pom.xml Tue Aug 5 09:46:52 2008 @@ -0,0 +1,72 @@ + + + + + + 4.0.0 + + org.apache.jackrabbit + jackrabbit-standalone + SNAPSHOT + + + + + maven-assembly-plugin + + + jar-with-dependencies + + + + + + + + + javax.jcr + jcr + 1.0 + + + org.apache.jackrabbit + jackrabbit-webapp + 1.4 + war + + + org.mortbay.jetty + jetty + 6.1.11 + + + org.mortbay.jetty + jsp-2.1 + 6.1.11 + + + org.slf4j + slf4j-simple + 1.3.0 + + + + Added: jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java?rev=682786&view=auto ============================================================================== --- jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java (added) +++ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java Tue Aug 5 09:46:52 2008 @@ -0,0 +1,48 @@ +/* + * 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. + */ +package org.apache.jackrabbit.standalone; + +import java.io.File; + +import org.mortbay.jetty.Server; +import org.mortbay.jetty.webapp.WebAppContext; + +/** + * + */ +public class Main { + + /** + * @param args + */ + public static void main(String[] argv) throws Exception { + File jackrabbit = new File("jackrabbit"); + jackrabbit.mkdirs(); + + WebAppContext webapp = new WebAppContext(); + webapp.setContextPath("/"); + webapp.setWar("target/jackrabbit-standalone-SNAPSHOT-jar-with-dependencies.jar"); + webapp.setExtractWAR(false); + webapp.setTempDirectory(new File(jackrabbit, "jetty")); + + Server server = new Server(8080); + server.setHandler(webapp); + server.start(); + server.join(); + } + +}