ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1035958 - in /ant/ivy/ivyde/trunk/test: ./ jetty-webapp/ jetty-webapp/src/ jetty-webapp/src/org/ jetty-webapp/src/org/apache/ jetty-webapp/src/org/apache/ivyde/ jetty-webapp/src/org/apache/ivyde/test/ jetty-webapp/webapp/ jetty-webapp/weba...
Date Wed, 17 Nov 2010 09:39:40 GMT
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&amp;confs=*&amp;ivySettingsPath=&amp;loadSettingsOnDemand=false&amp;propertyFiles=&amp;acceptedTypes=jar&amp;sourceTypes=source&amp;javadocTypes=javadoc&amp;sourceSuffixes=-source%2C-sources%2C-src&amp;javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&amp;alphaOrder=false&amp;resolveInWorkspace=false&amp;resolveBeforeLaunch=false&amp;retrievedClasspath=false&amp;mapIfOnlyOneSource=false&amp;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&amp;confs=*&amp;ivySettingsPath=&amp;loadSettingsOnDemand=false&amp;propertyFiles=&amp;acceptedTypes=jar&amp;sourceTypes=source&amp;javadocTypes=javadoc&amp;sourceSuffixes=-source%2C-sources%2C-src&amp;javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&amp;alphaOrder=false&amp;resolveInWorkspace=false&amp;resolveBeforeLaunch=false&amp;retrievedClasspath=false&amp;mapIfOnlyOneSource=false&amp;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="&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;sourceLookupDirector&gt;&#10;&lt;sourceContainers
duplicates=&quot;false&quot;&gt;&#10;&lt;container memento=&quot;&amp;lt;?xml
version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;javaProject
name=&amp;quot;ivydetest-jetty-webapp&amp;quot;/&amp;gt;&amp;#10;&quot;
typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#10;&lt;container
memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;
standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;classpathContainer
path=&amp;quot;org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&amp;amp;amp;confs=*&amp;amp;amp;ivySettingsPath=&amp;amp;amp;loadSettingsOnDemand=false&amp;amp;amp;propertyFiles=&amp;a
 mp;amp;acceptedTypes=jar&amp;amp;amp;sourceTypes=source&amp;amp;amp;javadocTypes=javadoc&amp;amp;amp;sourceSuffixes=-source%2C-sources%2C-src&amp;amp;amp;javadocSuffixes=-javadoc%2C-javadocs%2C-doc%2C-docs&amp;amp;amp;alphaOrder=false&amp;amp;amp;resolveInWorkspace=false&amp;amp;amp;resolveBeforeLaunch=false&amp;amp;amp;retrievedClasspath=false&amp;amp;amp;mapIfOnlyOneSource=false&amp;amp;amp;mapIfOnlyOneJavadoc=false&amp;quot;/&amp;gt;&amp;#10;&quot;
typeId=&quot;org.eclipse.jdt.launching.sourceContainer.classpathContainer&quot;/&gt;&#10;&lt;container
memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;
standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#10;&amp;lt;javaProject
name=&amp;quot;ivydetest-jetty&amp;quot;/&amp;gt;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#10;&lt;/sourceContainers&gt;&#10;&lt;/sourceLookupDirector&gt;&#10;"/>
+<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;
javaProject=&quot;ivydetest-jetty&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot;
projectName=&quot;ivydetest-jetty&quot; type=&quot;1&quot;/&gt;&#10;"/>
+<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;
standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot;
projectName=&quot;ivydetest-jetty-webapp&quot; type=&quot;1&quot;/&gt;&#10;"/>
+</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();
+    }
+}



Mime
View raw message