[Ds-java-dev] svn commit r14448 - in trunk/solutions/data-services/java/modules/www: . resources src src/org src/org/wso2 src/org/wso2/solutions src/org/wso2/solutions/ds test test/org test/org/wso2 test/org/wso2/solutions test/org/wso2/solutions/ds

svn at wso2.org svn at wso2.org
Mon Mar 3 03:37:12 PST 2008


Author: sumedha
Date: Mon Mar  3 03:37:03 2008
New Revision: 14448

Log:

Initial template code for www project

Added:
   trunk/solutions/data-services/java/modules/www/resources/
   trunk/solutions/data-services/java/modules/www/resources/component.xml
   trunk/solutions/data-services/java/modules/www/src/
   trunk/solutions/data-services/java/modules/www/src/org/
   trunk/solutions/data-services/java/modules/www/src/org/wso2/
   trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/
   trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/
   trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java
   trunk/solutions/data-services/java/modules/www/test/
   trunk/solutions/data-services/java/modules/www/test/org/
   trunk/solutions/data-services/java/modules/www/test/org/wso2/
   trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/
   trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/
   trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1Action.java
Modified:
   trunk/solutions/data-services/java/modules/www/pom.xml

Modified: trunk/solutions/data-services/java/modules/www/pom.xml
==============================================================================
--- trunk/solutions/data-services/java/modules/www/pom.xml	(original)
+++ trunk/solutions/data-services/java/modules/www/pom.xml	Mon Mar  3 03:37:03 2008
@@ -1,21 +1,150 @@
 <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">
-	
+         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">
+
     <parent>
         <groupId>org.wso2.dataservice</groupId>
         <artifactId>dataservice-solution-parent</artifactId>
         <version>SNAPSHOT</version>
     </parent>
-    
-    	
-	<modelVersion>4.0.0</modelVersion>
-	<groupId>org.wso2.dataservice</groupId>
-	<artifactId>dataservice-www</artifactId>
-    <packaging>jar</packaging>
-	<version>SNAPSHOT</version>
-	
-	<name>WSO2 Data Service Web</name>
-	<url>http://wso2.org/projects/solutions/data-services/java</url>
-	<description>WSO2 Data Services Web</description>             
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.wso2.solutions.ds</groupId>
+    <artifactId>www</artifactId>
+    <packaging>bundle</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>WSO2 Data Service Web</name>
+    <url>http://wso2.org/projects/solutions/data-services/java</url>
+    <description>WSO2 Data Services Web</description>    
+    <dependencies>
+
+        <dependency>
+            <groupId>org.wso2.carbon</groupId>
+            <artifactId>wso2carbon-core</artifactId>
+            <version>SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.framework</artifactId>
+            <version>1.0.3</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>org.osgi.compendium</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>1.0.0</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>javax.servlet</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>org.osgi.foundation</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <sourceDirectory>src</sourceDirectory>
+        <testSourceDirectory>test</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>resources</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.wso2.carbon</groupId>
+                <artifactId>carbon-maven-plugin</artifactId>
+                <version>SNAPSHOT</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.0</version>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <version>1.2.0</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-Name>${pom.artifactId}</Bundle-Name>
+                        <Bundle-Description>
+                            ${pom.description}
+                        </Bundle-Description>
+                        <Bundle-Version>1.0.0</Bundle-Version>
+                        <Import-Package>*</Import-Package>
+                        <!--<Bundle-Activator>
+                            org.wso2.carbon.osgi.system.Activator
+                        </Bundle-Activator>-->
+                        <Export-Package>${pom.artifactId}.*</Export-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <repositories>
+        <repository>
+            <id>m2-snapshot-repository</id>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+        <repository>
+            <id>wso2-maven2-repository</id>
+            <url>http://dist.wso2.org/maven2</url>
+        </repository>
+        <repository>
+            <id>ws-zones-repository</id>
+            <url>http://ws.zones.apache.org/repository2</url>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>snapshot-apache</id>
+            <name>Apache Snapshot repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+        <pluginRepository>
+            <id>wso2-maven2-plugin-repository</id>
+            <name>WSO2 WSAS plugin Repository</name>
+            <url>http://dist.wso2.org/maven2</url>
+        </pluginRepository>
+    </pluginRepositories>
+
 </project>

Added: trunk/solutions/data-services/java/modules/www/resources/component.xml
==============================================================================
--- (empty file)
+++ trunk/solutions/data-services/java/modules/www/resources/component.xml	Mon Mar  3 03:37:03 2008
@@ -0,0 +1,3 @@
+<component xmlns="http://products.wso2.org/carbon">
+    <!-- fill the content for components -->
+</component>

Added: trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java
==============================================================================
--- (empty file)
+++ trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java	Mon Mar  3 03:37:03 2008
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2004,2005 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.
+ */
+
+/**
+ *
+ */
+public class WizardStep1Action implements ServiceAction{
+
+    private String root;
+
+    public void load(HttpServletRequest request, HttpServletResponse response) throws Exception {
+        render(root + "/jsp/wizardStep1.jsp", request, response);
+
+    }
+
+    public void setComponentRoot(String componentRoot) {
+         root = componentRoot;
+    }
+}

Added: trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1Action.java
==============================================================================
--- (empty file)
+++ trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1Action.java	Mon Mar  3 03:37:03 2008
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2004,2005 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.
+ */
+
+import junit.framework.TestCase;
+
+/**
+ *
+ */
+public class AppTest extends TestCase {
+    public void testFoo() throws Exception {
+        // Write your test case
+    }
+}



More information about the Ds-java-dev mailing list