Author: akarasulu
Date: Thu Oct 7 12:24:57 2004
New Revision: 54007
Added:
incubator/directory/eve/trunk/backend/tools/
incubator/directory/eve/trunk/backend/tools/project.properties (contents,
props changed)
incubator/directory/eve/trunk/backend/tools/project.xml (contents, props
changed)
incubator/directory/eve/trunk/backend/tools/src/
incubator/directory/eve/trunk/backend/tools/src/conf/
incubator/directory/eve/trunk/backend/tools/src/conf/app.properties
(contents, props changed)
incubator/directory/eve/trunk/backend/tools/src/java/
incubator/directory/eve/trunk/backend/tools/src/java/org/
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/eve/
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/eve/tools/
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/eve/tools/App.java
(contents, props changed)
incubator/directory/eve/trunk/backend/tools/src/test/
incubator/directory/eve/trunk/backend/tools/src/test/org/
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AbstractTestCase.java
(contents, props changed)
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AppTest.java
(contents, props changed)
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/NaughtyTest.java
(contents, props changed)
Modified:
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/EveContextFactory.java
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/CoreSyntaxes.java
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/NormalizerConfig.java
Log:
start maven prj for tools for Eve: just genapp goal run at this point
Modified:
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/EveContextFactory.java
==============================================================================
---
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/EveContextFactory.java
(original)
+++
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/jndi/EveContextFactory.java
Thu Oct 7 12:24:57 2004
@@ -12,7 +12,7 @@
import org.apache.eve.schema.DefaultSyntaxRegistry;
import org.apache.eve.schema.DefaultOidRegistry;
-import org.apache.eve.schema.config.SyntaxConfig;
+import org.apache.eve.schema.config.CoreSyntaxes;
/**
@@ -77,11 +77,11 @@
EveJndiProvider provider = null;
Syntax[] syntaxes;
DefaultOidRegistry oidRegistry;
- SyntaxConfig syntaxConfig;
+ CoreSyntaxes coreSyntaxes;
DefaultSyntaxRegistry syntaxRegistry;
- syntaxConfig = new SyntaxConfig();
- syntaxes = syntaxConfig.loadSyntaxes( null );
+ coreSyntaxes = new CoreSyntaxes();
+ syntaxes = coreSyntaxes.loadSyntaxes( null );
oidRegistry = new DefaultOidRegistry();
syntaxRegistry = new DefaultSyntaxRegistry( syntaxes, oidRegistry );
Modified:
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/CoreSyntaxes.java
==============================================================================
---
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/CoreSyntaxes.java
(original)
+++
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/CoreSyntaxes.java
Thu Oct 7 12:24:57 2004
@@ -25,7 +25,7 @@
/**
* A Syntax schema object configuration set for the core LDAP schema in Section
* 4.3.2 of <a href="http://www.faqs.org/rfcs/rfc2252.html">RFC2252</a>.
- * The following table reproduced from RFC2252 shows the syntaxes included
+ * The following table reproduced from RFC2252 shows the syntaxes inclu ded
* within this SyntaxConfigSet:
* <pre>
* Index Value being represented H-R OBJECT IDENTIFIER
Modified:
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/NormalizerConfig.java
==============================================================================
---
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/NormalizerConfig.java
(original)
+++
incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/schema/config/NormalizerConfig.java
Thu Oct 7 12:24:57 2004
@@ -24,8 +24,7 @@
/**
* Document me.
*
- * @author <a href="mailto:[EMAIL PROTECTED]">Apache Directory
- * Project</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Apache Directory Project</a>
* @version $Rev$
*/
public class NormalizerConfig
Added: incubator/directory/eve/trunk/backend/tools/project.properties
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/tools/project.properties Thu Oct
7 12:24:57 2004
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 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.
+# -------------------------------------------------------------------
+
+maven.xdoc.date=left
+## maven.xdoc.version=${pom.currentVersion}
\ No newline at end of file
Added: incubator/directory/eve/trunk/backend/tools/project.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/tools/project.xml Thu Oct 7
12:24:57 2004
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2001-2004 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.
+ */
+ -->
+
+
+<project>
+ <!-- the version of maven's project object model -->
+
+ <pomVersion>3</pomVersion>
+ <!-- a unique name for this project -->
+
+ <id>tools</id>
+ <!-- a short but descriptive name for the project -->
+
+ <name>Eve Tools</name>
+ <!-- The version of the project under development, e.g.
+ 1.1, 1.2, 2.0-SNAPSHOT -->
+
+ <currentVersion>1.0</currentVersion>
+ <!-- details about the organization that 'owns' the project -->
+
+ <organization>
+ <name>Apache Software Foundation</name>
+ <url>http://www.apache.org/</url>
+ <logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
+ </organization>
+ <!-- the year the project started -->
+
+ <inceptionYear>2002</inceptionYear>
+ <package>org.apache.eve.tools</package>
+ <logo>http://maven.apache.org/images/maven.jpg</logo>
+ <description>A collection of example projects showing how to use maven in
different situations</description>
+ <!-- a short description of what the project does -->
+
+ <shortDescription>How to use maven in different situations</shortDescription>
+ <!-- the project home page -->
+
+ <url>http://maven.apache.org/reference/plugins/examples/</url>
+
<issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl>
+ <siteAddress>jakarta.apache.org</siteAddress>
+
<siteDirectory>/www/maven.apache.org/reference/plugins/examples/</siteDirectory>
+ <distributionDirectory>/www/maven.apache.org/builds/</distributionDirectory>
+ <!-- the version control repository and http url for online access
+ the connection element has the form:
+ scm:<system>:<system specific connection string> -->
+
+ <repository>
+ <connection>scm:cvs:pserver:[EMAIL
PROTECTED]:/home/cvspublic:maven-plugins/examples</connection>
+ <url>http://cvs.apache.org/viewcvs/maven-plugins/examples/</url>
+ </repository>
+ <!-- any mailing lists for the project -->
+
+ <mailingLists/>
+ <!-- who the developers are for the project -->
+
+ <developers/>
+ <!-- jar files the project is dependent on -->
+
+ <dependencies/>
+ <!-- build information for the project -->
+
+ <build>
+ <nagEmailAddress>[email protected]</nagEmailAddress>
+ <sourceDirectory>src/java</sourceDirectory>
+ <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
+ <unitTest>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/NaughtyTest.java</exclude>
+ </excludes>
+ </unitTest>
+ <resources>
+ <resource>
+ <directory>src/conf</directory>
+ <includes>
+ <include>*.properties</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+</project>
Added: incubator/directory/eve/trunk/backend/tools/src/conf/app.properties
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/tools/src/conf/app.properties Thu Oct
7 12:24:57 2004
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 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.
+# -------------------------------------------------------------------
+
+# Sample app properties.
+foo=bar
Added:
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/eve/tools/App.java
==============================================================================
--- (empty file)
+++
incubator/directory/eve/trunk/backend/tools/src/java/org/apache/eve/tools/App.java
Thu Oct 7 12:24:57 2004
@@ -0,0 +1,15 @@
+package org.apache.eve.tools;
+
+/**
+ * Hello world!
+ *
+ * @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Added:
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AbstractTestCase.java
==============================================================================
--- (empty file)
+++
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AbstractTestCase.java
Thu Oct 7 12:24:57 2004
@@ -0,0 +1,40 @@
+package org.apache.eve.tools;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Abstract base class for test cases.
+ *
+ * @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
+ */
+public abstract class AbstractTestCase
+ extends TestCase
+{
+ /**
+ * Basedir for all file I/O. Important when running tests from
+ * the reactor.
+ */
+ public String basedir = System.getProperty("basedir");
+
+ /**
+ * Constructor.
+ */
+ public AbstractTestCase(String testName)
+ {
+ super(testName);
+ }
+
+ /**
+ * Get test input file.
+ *
+ * @param path Path to test input file.
+ */
+ public String getTestFile(String path)
+ {
+ return new File(basedir,path).getAbsolutePath();
+ }
+}
+
Added:
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AppTest.java
==============================================================================
--- (empty file)
+++
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/AppTest.java
Thu Oct 7 12:24:57 2004
@@ -0,0 +1,40 @@
+package org.apache.eve.tools;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
+ */
+public class AppTest
+ extends AbstractTestCase
+{
+ /**
+ * 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()
+ {
+ assertEquals( "maven kicks ass", "maven kicks ass" );
+ }
+}
Added:
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/NaughtyTest.java
==============================================================================
--- (empty file)
+++
incubator/directory/eve/trunk/backend/tools/src/test/org/apache/eve/tools/NaughtyTest.java
Thu Oct 7 12:24:57 2004
@@ -0,0 +1,40 @@
+package org.apache.eve.tools;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
+ */
+public class NaughtyTest
+ extends AbstractTestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public NaughtyTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( NaughtyTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ // Crash and burn!
+ }
+}