You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ws...@apache.org on 2008/10/17 22:44:52 UTC

svn commit: r705748 - in /continuum/sandbox/flat-example: ./ flat-core/ flat-core/src/ flat-core/src/main/ flat-core/src/main/java/ flat-core/src/main/java/com/ flat-core/src/main/java/com/example/ flat-core/src/main/java/com/example/flat/ flat-core/sr...

Author: wsmoak
Date: Fri Oct 17 13:44:52 2008
New Revision: 705748

URL: http://svn.apache.org/viewvc?rev=705748&view=rev
Log:
Add an example with the parent as a sibling of the modules

Added:
    continuum/sandbox/flat-example/
    continuum/sandbox/flat-example/flat-core/
    continuum/sandbox/flat-example/flat-core/pom.xml
    continuum/sandbox/flat-example/flat-core/src/
    continuum/sandbox/flat-example/flat-core/src/main/
    continuum/sandbox/flat-example/flat-core/src/main/java/
    continuum/sandbox/flat-example/flat-core/src/main/java/com/
    continuum/sandbox/flat-example/flat-core/src/main/java/com/example/
    continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/
    continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/App.java
    continuum/sandbox/flat-example/flat-core/src/test/
    continuum/sandbox/flat-example/flat-core/src/test/java/
    continuum/sandbox/flat-example/flat-core/src/test/java/com/
    continuum/sandbox/flat-example/flat-core/src/test/java/com/example/
    continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/
    continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/AppTest.java
    continuum/sandbox/flat-example/flat-parent/
    continuum/sandbox/flat-example/flat-parent/pom.xml
    continuum/sandbox/flat-example/flat-webapp/
    continuum/sandbox/flat-example/flat-webapp/pom.xml
    continuum/sandbox/flat-example/flat-webapp/src/
    continuum/sandbox/flat-example/flat-webapp/src/main/
    continuum/sandbox/flat-example/flat-webapp/src/main/resources/
    continuum/sandbox/flat-example/flat-webapp/src/main/webapp/
    continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/
    continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/web.xml
    continuum/sandbox/flat-example/flat-webapp/src/main/webapp/index.jsp

Added: continuum/sandbox/flat-example/flat-core/pom.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-core/pom.xml?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-core/pom.xml (added)
+++ continuum/sandbox/flat-example/flat-core/pom.xml Fri Oct 17 13:44:52 2008
@@ -0,0 +1,24 @@
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>com.example.flat</groupId>
+    <artifactId>flat-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>flat-core</artifactId>
+  <packaging>jar</packaging>
+  <name>flat-core</name>
+  <url>http://maven.apache.org</url>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>

Added: continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/App.java
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/App.java?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/App.java (added)
+++ continuum/sandbox/flat-example/flat-core/src/main/java/com/example/flat/App.java Fri Oct 17 13:44:52 2008
@@ -0,0 +1,13 @@
+package com.example.flat;
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Added: continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/AppTest.java
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/AppTest.java?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/AppTest.java (added)
+++ continuum/sandbox/flat-example/flat-core/src/test/java/com/example/flat/AppTest.java Fri Oct 17 13:44:52 2008
@@ -0,0 +1,38 @@
+package com.example.flat;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}

Added: continuum/sandbox/flat-example/flat-parent/pom.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-parent/pom.xml?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-parent/pom.xml (added)
+++ continuum/sandbox/flat-example/flat-parent/pom.xml Fri Oct 17 13:44:52 2008
@@ -0,0 +1,21 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>com.example.flat</groupId>
+  <artifactId>flat-parent</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  <name>Flat Example</name>
+
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/continuum/sandbox/flat-example/flat-parent</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/continuum/sandbox/flat-example/flat-parent</developerConnection>
+  </scm>
+
+  <modules>
+    <module>../flat-core</module>
+    <module>../flat-webapp</module>
+  </modules>
+
+</project>

Added: continuum/sandbox/flat-example/flat-webapp/pom.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-webapp/pom.xml?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-webapp/pom.xml (added)
+++ continuum/sandbox/flat-example/flat-webapp/pom.xml Fri Oct 17 13:44:52 2008
@@ -0,0 +1,27 @@
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>com.example.flat</groupId>
+    <artifactId>flat-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>flat-webapp</artifactId>
+  <packaging>war</packaging>
+  <name>flat-webapp Maven Webapp</name>
+  <url>http://maven.apache.org</url>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <finalName>flat-webapp</finalName>
+  </build>
+</project>

Added: continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/web.xml?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/web.xml (added)
+++ continuum/sandbox/flat-example/flat-webapp/src/main/webapp/WEB-INF/web.xml Fri Oct 17 13:44:52 2008
@@ -0,0 +1,7 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+  <display-name>Archetype Created Web Application</display-name>
+</web-app>

Added: continuum/sandbox/flat-example/flat-webapp/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/continuum/sandbox/flat-example/flat-webapp/src/main/webapp/index.jsp?rev=705748&view=auto
==============================================================================
--- continuum/sandbox/flat-example/flat-webapp/src/main/webapp/index.jsp (added)
+++ continuum/sandbox/flat-example/flat-webapp/src/main/webapp/index.jsp Fri Oct 17 13:44:52 2008
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>