You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directmemory.apache.org by ol...@apache.org on 2012/02/29 00:08:20 UTC

svn commit: r1294886 [1/5] - in /incubator/directmemory/trunk/server: ./ directmemory-server-archetype/ directmemory-server-archetype/src/ directmemory-server-archetype/src/main/ directmemory-server-archetype/src/main/resources/ directmemory-server-arc...

Author: olamy
Date: Tue Feb 28 23:08:18 2012
New Revision: 1294886

URL: http://svn.apache.org/viewvc?rev=1294886&view=rev
Log:
add an archetype to generate a sample server

Added:
    incubator/directmemory/trunk/server/directmemory-server-archetype/
    incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/css/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/css/bootstrap.2.0.1.css   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/index.html   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.2.0.1.js   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/jquery-1.7.1.js   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/jquery-tmpl.js   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/jquery.json-2.3.js   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/sample.js   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/resources/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/resources/projects/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/resources/projects/basic/
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/resources/projects/basic/archetype.properties   (with props)
    incubator/directmemory/trunk/server/directmemory-server-archetype/src/test/resources/projects/basic/goal.txt   (with props)
Modified:
    incubator/directmemory/trunk/server/pom.xml

Added: incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml?rev=1294886&view=auto
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml (added)
+++ incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml Tue Feb 28 23:08:18 2012
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.directmemory.server</groupId>
+    <artifactId>server</artifactId>
+    <version>0.6.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>server-example-archetype</artifactId>
+  <packaging>maven-archetype</packaging>
+
+  <name>Apache DirectMemory :: Server :: Server Implementation</name>
+
+  <properties>
+    <directMemoryVersion>${project.version}</directMemoryVersion>
+  </properties>
+
+
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+    <extensions>
+      <extension>
+        <groupId>org.apache.maven.archetype</groupId>
+        <artifactId>archetype-packaging</artifactId>
+        <version>2.2</version>
+      </extension>
+    </extensions>
+
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-archetype-plugin</artifactId>
+          <version>2.2</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+
+
+</project>

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1294886&view=auto
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml (added)
+++ incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml Tue Feb 28 23:08:18 2012
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="server-example"
+    xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <fileSets>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/webapp</directory>
+      <includes>
+        <include>**/*.xml</include>
+        <include>**/*.html</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/resources</directory>
+      <includes>
+        <include>**/*.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet encoding="UTF-8">
+      <directory>src/main/webapp</directory>
+      <includes>
+        <include>**/*.js</include>
+        <include>**/*.css</include>
+      </includes>
+    </fileSet>
+    <fileSet encoding="UTF-8">
+      <directory></directory>
+      <includes>
+        <include>server-example.iml</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</archetype-descriptor>

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml?rev=1294886&view=auto
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml (added)
+++ incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml Tue Feb 28 23:08:18 2012
@@ -0,0 +1,83 @@
+<?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.
+  -->
+<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/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <packaging>war</packaging>
+  <name>Apache DirectMemory :: Examples :: Server Javascript</name>
+  <description>${project.name}</description>
+  <version>${version}</version>
+
+  <properties>
+    <tomcatRunPort>9091</tomcatRunPort>
+    <tomcatRunPath>/dm</tomcatRunPath>
+    <directMemoryVersion>${directMemoryVersion}</directMemoryVersion>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.directmemory.server</groupId>
+      <artifactId>directmemory-server</artifactId>
+      <version>${directMemoryVersion}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.directmemory</groupId>
+      <artifactId>directmemory-protostuff</artifactId>
+      <version>${directMemoryVersion}</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.5</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.16</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.tomcat.maven</groupId>
+        <artifactId>tomcat7-maven-plugin</artifactId>
+        <version>2.0-beta-1</version>
+        <configuration>
+          <port>${tomcatRunPort}</port>
+          <path>${tomcatRunPath}</path>
+          <systemProperties>
+            <directMemory.size>1000</directMemory.size>
+          </systemProperties>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml?rev=1294886&view=auto
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml (added)
+++ incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml Tue Feb 28 23:08:18 2012
@@ -0,0 +1,44 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?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.
+  -->
+
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+  <appender name="console" class="org.apache.log4j.ConsoleAppender">
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d %-5p %c %x - %m%n"/>
+    </layout>
+  </appender>
+
+
+  <logger name="${package}">
+    <level value="debug"/>
+  </logger>
+
+  <root>
+    <priority value ="info" />
+    <appender-ref ref="console" />
+  </root>
+
+</log4j:configuration>

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/resources/log4j.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=1294886&view=auto
==============================================================================
--- incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Tue Feb 28 23:08:18 2012
@@ -0,0 +1,40 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ 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.
+  -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
+         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">
+
+  <display-name>Apache DirectMemory</display-name>
+  
+  <servlet>
+    <servlet-name>DirectMemoryServlet</servlet-name>
+    <servlet-class>org.apache.directmemory.server.services.DirectMemoryServlet</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>DirectMemoryServlet</servlet-name>
+    <url-pattern>/cache/*</url-pattern>
+  </servlet-mapping>
+
+  
+</web-app>  
\ No newline at end of file

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/directmemory/trunk/server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision