Author: hibou
Date: Wed Nov 17 09:39:39 2010
New Revision: 1035958
URL: http://svn.apache.org/viewvc?rev=1035958&view=rev
Log:
test case for IVYDE-237
Added:
ant/ivy/ivyde/trunk/test/.classpath
ant/ivy/ivyde/trunk/test/.project
ant/ivy/ivyde/trunk/test/ivy.xml
ant/ivy/ivyde/trunk/test/jetty/
ant/ivy/ivyde/trunk/test/jetty-webapp/
ant/ivy/ivyde/trunk/test/jetty-webapp/.classpath
ant/ivy/ivyde/trunk/test/jetty-webapp/.project
ant/ivy/ivyde/trunk/test/jetty-webapp/HelloWorldServlet.launch
ant/ivy/ivyde/trunk/test/jetty-webapp/ivy.xml
ant/ivy/ivyde/trunk/test/jetty-webapp/jetty.xml
ant/ivy/ivyde/trunk/test/jetty-webapp/src/
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/HelloWorldServlet.java
ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/
ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/
ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/web.xml
ant/ivy/ivyde/trunk/test/src/
ant/ivy/ivyde/trunk/test/src/org/
ant/ivy/ivyde/trunk/test/src/org/apache/
ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/
ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/
ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/JettyLauncher.java
Added: ant/ivy/ivyde/trunk/test/.classpath
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/.classpath?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/.classpath (added)
+++ ant/ivy/ivyde/trunk/test/.classpath Wed Nov 17 09:39:39 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&confs=*&ivySettingsPath=&loadSettingsOnDemand=false&propertyFiles=&acceptedTypes=jar&sourceTypes=source&javadocTypes=javadoc&sourceSuffixes=-source%2C-sources%2C-src&javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&alphaOrder=false&resolveInWorkspace=false&resolveBeforeLaunch=false&retrievedClasspath=false&mapIfOnlyOneSource=false&mapIfOnlyOneJavadoc=false"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: ant/ivy/ivyde/trunk/test/.project
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/.project?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/.project (added)
+++ ant/ivy/ivyde/trunk/test/.project Wed Nov 17 09:39:39 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<projectDescription>
+ <name>ivydetest-jetty</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.apache.ivyde.eclipse.ivynature</nature>
+ </natures>
+</projectDescription>
Added: ant/ivy/ivyde/trunk/test/ivy.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/ivy.xml?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/ivy.xml (added)
+++ ant/ivy/ivyde/trunk/test/ivy.xml Wed Nov 17 09:39:39 2010
@@ -0,0 +1,32 @@
+<!--
+ 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.
+-->
+<ivy-module version="1.0">
+ <info organisation="org.apache.ivyde" module="ivytest-jetty">
+ <description>
+ Project of a Jetty launcher, to test the launch configs which have
+ a different source classpth than the binary one
+ </description>
+ </info>
+ <configurations>
+ <conf name="default" />
+ </configurations>
+ <dependencies>
+ <dependency org="org.mortbay.jetty" name="jetty" rev="6.1.26"
conf="default" />
+ </dependencies>
+</ivy-module>
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/.classpath
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/.classpath?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/.classpath (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/.classpath Wed Nov 17 09:39:39 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry exported="true" kind="con"
path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&confs=*&ivySettingsPath=&loadSettingsOnDemand=false&propertyFiles=&acceptedTypes=jar&sourceTypes=source&javadocTypes=javadoc&sourceSuffixes=-source%2C-sources%2C-src&javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&alphaOrder=false&resolveInWorkspace=false&resolveBeforeLaunch=false&retrievedClasspath=false&mapIfOnlyOneSource=false&mapIfOnlyOneJavadoc=false"/>
+ <classpathentry kind="output" path="webapp/WEB-INF/classes"/>
+</classpath>
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/.project
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/.project?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/.project (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/.project Wed Nov 17 09:39:39 2010
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<projectDescription>
+ <name>ivydetest-jetty-webapp</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.apache.ivyde.eclipse.ivynature</nature>
+ </natures>
+</projectDescription>
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/HelloWorldServlet.launch
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/HelloWorldServlet.launch?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/HelloWorldServlet.launch (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/HelloWorldServlet.launch Wed Nov 17
09:39:39 2010
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry
value="/ivydetest-jetty/src/org/apache/ivyde/test/JettyLauncher.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.core.source_locator_id"
value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
+<stringAttribute key="org.eclipse.debug.core.source_locator_memento"
value="<?xml version="1.0" encoding="UTF-8"
standalone="no"?> <sourceLookupDirector> <sourceContainers
duplicates="false"> <container memento="&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;javaProject
name=&quot;ivydetest-jetty-webapp&quot;/&gt;&#10;"
typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container
memento="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;classpathContainer
path=&quot;org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&amp;amp;confs=*&amp;amp;ivySettingsPath=&amp;amp;loadSettingsOnDemand=false&amp;amp;propertyFiles=&a
mp;amp;acceptedTypes=jar&amp;amp;sourceTypes=source&amp;amp;javadocTypes=javadoc&amp;amp;sourceSuffixes=-source%2C-sources%2C-src&amp;amp;javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&amp;amp;alphaOrder=false&amp;amp;resolveInWorkspace=false&amp;amp;resolveBeforeLaunch=false&amp;amp;retrievedClasspath=false&amp;amp;mapIfOnlyOneSource=false&amp;amp;mapIfOnlyOneJavadoc=false&quot;/&gt;&#10;"
typeId="org.eclipse.jdt.launching.sourceContainer.classpathContainer"/> <container
memento="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;javaProject
name=&quot;ivydetest-jetty&quot;/&gt;&#10;"
typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> </sourceContainers> </sourceLookupDirector> "/>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="<?xml version="1.0" encoding="UTF-8"
standalone="no"?> <runtimeClasspathEntry
containerPath="org.eclipse.jdt.launching.JRE_CONTAINER"
javaProject="ivydetest-jetty" path="1"
type="4"/> "/>
+<listEntry value="<?xml version="1.0" encoding="UTF-8"
standalone="no"?> <runtimeClasspathEntry path="3"
projectName="ivydetest-jetty" type="1"/> "/>
+<listEntry value="<?xml version="1.0" encoding="UTF-8"
standalone="no"?> <runtimeClasspathEntry path="3"
projectName="ivydetest-jetty-webapp" type="1"/> "/>
+</listAttribute>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.apache.ivyde.test.JettyLauncher"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="${workspace_loc:/ivydetest-jetty-webapp/jetty.xml}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="ivydetest-jetty"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Djetty.war=${workspace_loc:/ivydetest-jetty-webapp/webapp}"/>
+</launchConfiguration>
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/ivy.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/ivy.xml?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/ivy.xml (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/ivy.xml Wed Nov 17 09:39:39 2010
@@ -0,0 +1,33 @@
+<!--
+ 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.
+-->
+<ivy-module version="1.0">
+ <info organisation="org.apache.ivyde" module="ivytest-jetty-webapp">
+ <description>
+ Project of a webapp to be used with the project ivyde-test-jetty
+ </description>
+ </info>
+ <configurations>
+ <conf name="compile" />
+ <conf name="runtime" />
+ </configurations>
+ <dependencies>
+ <dependency org="javax.servlet" name="servlet-api" rev="2.4"
conf="compile->default" />
+ <dependency org="commons-lang" name="commons-lang" rev="2.4"
conf="compile,runtime->default" />
+ </dependencies>
+</ivy-module>
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/jetty.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/jetty.xml?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/jetty.xml (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/jetty.xml Wed Nov 17 09:39:39 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
+<Configure id="Server" class="org.mortbay.jetty.Server">
+
+ <!-- HTTP -->
+ <Call name="addConnector">
+ <Arg>
+ <New class="org.mortbay.jetty.nio.SelectChannelConnector">
+ <Set name="port">
+ <SystemProperty name="jetty.port" default="8080" />
+ </Set>
+ </New>
+ </Arg>
+ </Call>
+
+ <Call name="addHandler">
+ <Arg>
+ <New class="org.mortbay.jetty.webapp.WebAppContext">
+ <Set name="contextPath"><SystemProperty
name="jetty.webappcontext" default="/" /></Set>
+ <Set name="war"><SystemProperty name="jetty.war"
default="src/main/webapp" /></Set>
+ </New>
+ </Arg>
+ </Call>
+
+</Configure>
Added:
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/HelloWorldServlet.java
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/HelloWorldServlet.java?rev=1035958&view=auto
==============================================================================
---
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/HelloWorldServlet.java
(added)
+++
ant/ivy/ivyde/trunk/test/jetty-webapp/src/org/apache/ivyde/test/HelloWorldServlet.java
Wed Nov 17 09:39:39 2010
@@ -0,0 +1,36 @@
+package org.apache.ivyde.test;
+
+/*
+ * 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.
+ *
+ */
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang.StringUtils;
+
+public class HelloWorldServlet extends HttpServlet {
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
+ resp.setContentType("text/plain");
+ resp.getWriter().write(StringUtils.join(new String[] { "Hello ",
"world ", "!" }));
+ }
+}
Added: ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/web.xml?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/web.xml (added)
+++ ant/ivy/ivyde/trunk/test/jetty-webapp/webapp/WEB-INF/web.xml Wed Nov 17
09:39:39 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
+
+ <servlet>
+ <servlet-name>hello</servlet-name>
+ <servlet-class>org.apache.ivyde.test.HelloWorldServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>hello</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Added: ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/JettyLauncher.java
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/JettyLauncher.java?rev=1035958&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/JettyLauncher.java
(added)
+++ ant/ivy/ivyde/trunk/test/src/org/apache/ivyde/test/JettyLauncher.java Wed
Nov 17 09:39:39 2010
@@ -0,0 +1,38 @@
+package org.apache.ivyde.test;
+/*
+ * 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.
+ *
+ */
+import java.io.FileInputStream;
+
+import org.mortbay.jetty.Server;
+import org.mortbay.xml.XmlConfiguration;
+
+/**
+ * Basic jetty launcher
+ */
+public class JettyLauncher {
+
+ public static void main(String[] args) throws Exception {
+ Server server = new Server();
+ FileInputStream jettyConfFile = new FileInputStream(args[0]);
+ XmlConfiguration configuration = new XmlConfiguration(jettyConfFile);
+ jettyConfFile.close();
+ configuration.configure(server);
+ server.start();
+ server.join();
+ }
+}