Author: rdonkin
Date: Fri Dec 12 06:02:04 2008
New Revision: 726011
URL: http://svn.apache.org/viewvc?rev=726011&view=rev
Log:
Create outline for new App module. Add Development Interface MPT-1
(https://issues.apache.org/jira/browse/MPT-1)
Added:
james/mpt/trunk/app/ (with props)
james/mpt/trunk/app/pom.xml
- copied, changed from r725994, james/mpt/trunk/antlib/pom.xml
james/mpt/trunk/app/src/
james/mpt/trunk/app/src/main/
james/mpt/trunk/app/src/main/java/
james/mpt/trunk/app/src/site/ (props changed)
- copied from r725994, james/mpt/trunk/main/src/site/
james/mpt/trunk/app/src/test/
james/mpt/trunk/app/src/test/java/
Modified:
james/mpt/trunk/app/src/site/site.xml
james/mpt/trunk/app/src/site/xdoc/index.xml
james/mpt/trunk/pom.xml
Propchange: james/mpt/trunk/app/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Dec 12 06:02:04 2008
@@ -0,0 +1,2 @@
+.*
+target
Copied: james/mpt/trunk/app/pom.xml (from r725994,
james/mpt/trunk/antlib/pom.xml)
URL:
http://svn.apache.org/viewvc/james/mpt/trunk/app/pom.xml?p2=james/mpt/trunk/app/pom.xml&p1=james/mpt/trunk/antlib/pom.xml&r1=725994&r2=726011&rev=726011&view=diff
==============================================================================
--- james/mpt/trunk/antlib/pom.xml (original)
+++ james/mpt/trunk/app/pom.xml Fri Dec 12 06:02:04 2008
@@ -28,12 +28,12 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.james</groupId>
- <artifactId>apache-james-mtp-antlib</artifactId>
- <name>Apache JAMES MPT AntLib</name>
+ <artifactId>apache-james-mtp-app</artifactId>
+ <name>Apache JAMES MPT Application</name>
<description>Apache JAMES Mail Protocol Tester (MTP) is a library providing
a framework for the
-scritable functional testing of ASCII based line protocols. This AntLib
provides an easy interface
-to the library requiring no extra coding.</description>
- <url>http://james.apache.org/mpt/antlib</url>
+scritable functional testing of ASCII based line protocols. This application
provides easy executable
+interfaces to the MPT library.</description>
+ <url>http://james.apache.org/mpt/app</url>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
@@ -50,20 +50,11 @@
<artifactId>junit</artifactId>
</dependency>
<dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- </dependency>
- <dependency>
<groupId>jmock</groupId>
<artifactId>jmock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-antunit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>${project.groupId}</groupId>
<artifactId>apache-james-mtp</artifactId>
<!-- TODO: Use dependency from project pom -->
@@ -77,46 +68,16 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <ant antfile="src/test/resources/build.xml" inheritAll="false"
inheritRefs="false">
- <property name="jar.name"
location="${project.build.outputDirectory}"/>
- <property name="base.dir" location="${basedir}"/>
- <property name="test.skipped" value="${maven.test.skip}"/>
- <property name="test.classpath" refid="maven.test.classpath"
/>
- </ant>
- </tasks>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <!-- AntUnit require Ant 1.7+ -->
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>1.7.1</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<configuration>
<archive>
-
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
- <Specification-Title>Apache James MPT
AntLib</Specification-Title>
+ <Specification-Title>Apache James MPT
Application</Specification-Title>
<Specification-Version>${pom.version}</Specification-Version>
<Specification-Vendor>The Apache Software
Foundation</Specification-Vendor>
- <Implementation-Title>Apache James MPT
AntLib</Implementation-Title>
+ <Implementation-Title>Apache James MPT
Application</Implementation-Title>
<Implementation-Version>${pom.version}</Implementation-Version>
<Implementation-Vendor>The Apache Software
Foundation</Implementation-Vendor>
<Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
@@ -125,34 +86,13 @@
</archive>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>1.4.3</version>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- <extensions>true</extensions>
- <configuration>
- <instructions>
-
<Export-Package>org.apache.james.mpt.ant</Export-Package>
- <Embed-Dependency>*;scope=runtime</Embed-Dependency>
- </instructions>
- </configuration>
- </plugin>
</plugins>
</build>
<scm>
-
<connection>scm:svn:http://svn.apache.org/repos/asf/james/mpt/trunk/antlib</connection>
-
<developerConnection>scm:svn:https://${[email protected]/repos/asf/james/mpt/trunk/antlib</developerConnection>
-
<url>http://svn.apache.org/viewcvs.cgi/james/mpt/trunk/antlib?root=Apache-SVN</url>
+
<connection>scm:svn:http://svn.apache.org/repos/asf/james/mpt/trunk/app</connection>
+<developerConnection>scm:svn:https://${[email protected]/repos/asf/james/mpt/trunk/app</developerConnection>
+
<url>http://svn.apache.org/viewcvs.cgi/james/mpt/trunk/app?root=Apache-SVN</url>
</scm>
</project>
Propchange: james/mpt/trunk/app/src/site/
------------------------------------------------------------------------------
svn:mergeinfo =
Modified: james/mpt/trunk/app/src/site/site.xml
URL:
http://svn.apache.org/viewvc/james/mpt/trunk/app/src/site/site.xml?rev=726011&r1=725994&r2=726011&view=diff
==============================================================================
--- james/mpt/trunk/app/src/site/site.xml (original)
+++ james/mpt/trunk/app/src/site/site.xml Fri Dec 12 06:02:04 2008
@@ -33,10 +33,10 @@
<body>
<menu name="Mail Protocol Tester">
- <item name="Overview" href="index.html"/>
+ <item name="Interface" href="index.html"/>
<item
name="DOAP"
- href="doap_apache-james-mtp.rdf"
+ href="doap_apache-james-mtp-app.rdf"
img='http://www.w3.org/RDF/icons/rdf_metadata_button.32'/>
</menu>
Modified: james/mpt/trunk/app/src/site/xdoc/index.xml
URL:
http://svn.apache.org/viewvc/james/mpt/trunk/app/src/site/xdoc/index.xml?rev=726011&r1=725994&r2=726011&view=diff
==============================================================================
--- james/mpt/trunk/app/src/site/xdoc/index.xml (original)
+++ james/mpt/trunk/app/src/site/xdoc/index.xml Fri Dec 12 06:02:04 2008
@@ -39,85 +39,10 @@
template responses.
</p>
</section>
-<section name='Using MPT'>
-<subsection name='Host System'>
+<section name='Development Interface'>
<p>
-MPT is a lightweight, flexible framework which is capable of being used
-in a variety of ways. <code>HostSystem</code> is pivotal, defining the
-interface between the framework and the server system under test.
+This module contains an executable interface useful when developing scripts.
</p>
-<ul>
-<li>
-The <code>ExternalHostSystem</code> implementation connects to a port on a
server.
-This is typically used to test a complete running server (including the
sockets).
-<a href='../antlib'>MPT AntLib</a> provides an
-<a href='http://ant.apache.org' rel='tag'>Ant</a> task suitable for this use
case.
-</li>
-<li>
-When performing in-JVM testing (without a live server socket) a custom
implementation
-must be created connecting the framework to the components under test. This
use case
-is typically developed as a <a href='http://www.junit.org'>JUnit</a> test case.
-</li>
-</ul>
-</subsection>
-<subsection name='With JUnit'>
-<p>
-In-JVM JUnit testing is a typical use case. The framework provides
-abstract superclasses which setup up appropriate fixtures.
-</p>
-</subsection>
-</section>
-<section name="Script Features">
-<subsection name='Basic Syntax'>
-<p>
-MPT scripts are line based plain text files. The initial letter of each line
determines it's type:
-</p>
-<table>
-<tr>
- <td><strong>Line Prefix</strong></td> <td><strong>Description</strong></td>
-</tr>
-<tr>
- <td>#</td>
- <td>A comment: the rest of the line will be ignored</td>
-</tr>
-<tr>
- <td>C: </td>
- <td>A client request: the rest of the line will be sent to the server</td>
-</tr>
-<tr>
- <td>S: </td>
- <td>A server response: the framework will read one line of response from
the server,
- and compare it to the rest of the line (see
- <a href='#Regex Matching Of Server Responses'>regex matching</a>)</td>
-</tr>
-</table>
-<p>
-Example:
-</p>
-<source><pre>
-#
-# This script is a basic SMTP HELO.
-#
-S: 220 localhost. SMTP Server \(JAMES SMTP Server .*
-C: HELO example.org
-S: 250 localhost. Hello example.org .*
-C: QUIT
-S: 221 2.0.0 localhost. Service closing transmission channel
-</pre></source>
-</subsection>
-<subsection name='Regex Matching Of Server Responses'>
-<p>
-The server responses in the script support regex matching.
-<a
href='http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html'>Java
Pattern</a>
-is used for the regex comparison and so the syntax is identical.
-</p>
-</subsection>
-<subsection name='Variable Substitution'>
-<p>
-Variables of form <code>${<em>variable-name</em>}</code> may be substituted by
values
-passed into the script builder before interpretation.
-</p>
-</subsection>
</section>
</body>
-</document>
\ No newline at end of file
+</document>
Modified: james/mpt/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/james/mpt/trunk/pom.xml?rev=726011&r1=726010&r2=726011&view=diff
==============================================================================
--- james/mpt/trunk/pom.xml (original)
+++ james/mpt/trunk/pom.xml Fri Dec 12 06:02:04 2008
@@ -39,6 +39,7 @@
<modules>
<module>main</module>
<module>antlib</module>
+ <module>app</module>
</modules>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/james/mpt/trunk</connection>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]