empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r904828 - in /incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen: ./ src/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/empire/ src/test/java/org/apache/empire/db/ src/tes...
Date Sat, 30 Jan 2010 17:47:39 GMT
Author: francisdb
Date: Sat Jan 30 17:47:38 2010
New Revision: 904828

URL: http://svn.apache.org/viewvc?rev=904828&view=rev
Log:
EMPIREDB-64
Initial version of the empire-db maven (codegen) plugin + example project

Added:
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/pom.xml
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/ValidatePluginRunTest.java

Added: incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/pom.xml
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/pom.xml?rev=904828&view=auto
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/pom.xml (added)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/pom.xml Sat Jan
30 17:47:38 2010
@@ -0,0 +1,57 @@
+<?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/maven-v4_0_0.xsd">
+	<parent>
+		<artifactId>empire-db-examples</artifactId>
+		<groupId>org.apache.empire-db</groupId>
+		<version>2.0.6-incubating-SNAPSHOT</version>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.empire-db</groupId>
+	<artifactId>empire-db-example-codegen</artifactId>
+	<name>Apache Empire-db Maven Codegen Example</name>
+	<description>Example showing the use of empire-db wrapped in a webservice</description>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.empire-db</groupId>
+				<artifactId>empire-db-maven-plugin</artifactId>
+				<version>${project.version}</version>
+				<configuration>
+					<goalPrefix>empiredb</goalPrefix>
+					<jdbcClass>org.hsqldb.jdbcDriver</jdbcClass>
+					<jdbcURL>jdbc:hsqldb:file:hsqldb/sample;shutdown=true</jdbcURL>
+					<jdbcUser>sa</jdbcUser>
+					<jdbcPwd></jdbcPwd>
+				</configuration>
+				<executions>
+					<!-- 
+					We enable the code generation on each build. The other option is 
+					to leave out this section and call mvn empiredb:codegen
+					 -->
+					<execution>
+		            	<goals>
+			              	<goal>codegen</goal>
+			            </goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+	
+</project>
\ No newline at end of file

Added: incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/ValidatePluginRunTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/ValidatePluginRunTest.java?rev=904828&view=auto
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/ValidatePluginRunTest.java
(added)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-codegen/src/test/java/org/apache/empire/db/examples/codegen/ValidatePluginRunTest.java
Sat Jan 30 17:47:38 2010
@@ -0,0 +1,19 @@
+package org.apache.empire.db.examples.codegen;
+
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+
+import org.junit.Test;
+
+
+public class ValidatePluginRunTest {
+	
+	@Test
+	public void testTargetFolder(){
+		File file = new File("target/generated-sources/empiredb");
+		assertTrue("No sources generated", file.exists());
+		// TODO add extra validation for the real generated sources
+	}
+
+}



Mime
View raw message