tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1178115 - in /openejb/trunk/sandbox/arquillian-tomee/ziplock: ./ pom.xml src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/ziplock/ src/main/java/org/apache/ziplock/WebModule.java
Date Sun, 02 Oct 2011 03:43:13 GMT
Author: dblevins
Date: Sun Oct  2 03:43:13 2011
New Revision: 1178115

URL: http://svn.apache.org/viewvc?rev=1178115&view=rev
Log:
shell for a new little mini lib

Added:
    openejb/trunk/sandbox/arquillian-tomee/ziplock/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/pom.xml
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/
    openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/WebModule.java

Added: openejb/trunk/sandbox/arquillian-tomee/ziplock/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/arquillian-tomee/ziplock/pom.xml?rev=1178115&view=auto
==============================================================================
--- openejb/trunk/sandbox/arquillian-tomee/ziplock/pom.xml (added)
+++ openejb/trunk/sandbox/arquillian-tomee/ziplock/pom.xml Sun Oct  2 03:43:13 2011
@@ -0,0 +1,30 @@
+<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>
+    <artifactId>arquillian-tomee</artifactId>
+    <groupId>org.apache.openejb</groupId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.openejb</groupId>
+  <artifactId>ziplock</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>TomEE Arquillian Adaptor :: Remote Adaptor</name>
+  <url>http://maven.apache.org</url>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss.shrinkwrap</groupId>
+      <artifactId>shrinkwrap-api</artifactId>
+      <version>1.0.0-beta-5</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.openejb</groupId>
+      <artifactId>openejb-jee</artifactId>
+      <version>4.0.0-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Added: openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/WebModule.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/WebModule.java?rev=1178115&view=auto
==============================================================================
--- openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/WebModule.java
(added)
+++ openejb/trunk/sandbox/arquillian-tomee/ziplock/src/main/java/org/apache/ziplock/WebModule.java
Sun Oct  2 03:43:13 2011
@@ -0,0 +1,47 @@
+/**
+ * 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.ziplock;
+
+import org.apache.openejb.jee.WebApp;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class WebModule {
+
+    private final WebApp webApp = new WebApp();
+
+    private final WebArchive archive;
+
+    public WebModule(WebArchive archive) {
+        this.archive = archive;
+    }
+
+    public WebModule(String name) {
+        this(ShrinkWrap.create(WebArchive.class, name));
+    }
+
+    public WebModule(Class<?> clazz) {
+        this(clazz.getSimpleName());
+    }
+
+    public WebArchive getArchive() {
+        return archive;
+    }
+}



Mime
View raw message