You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by sa...@apache.org on 2006/02/15 08:11:37 UTC
svn commit: r377953 [2/9] - in
/incubator/synapse/trunk/scratch/synase-multimodules: ./ bin/ etc/ modules/
modules/core/ modules/core/conf/ modules/core/src/ modules/core/src/org/
modules/core/src/org/apache/ modules/core/src/org/apache/synapse/ module...
Added: incubator/synapse/trunk/scratch/synase-multimodules/etc/junit-noframes.xsl
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/etc/junit-noframes.xsl?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/etc/junit-noframes.xsl (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/etc/junit-noframes.xsl Tue Feb 14 23:11:24 2006
@@ -0,0 +1,468 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils" version="1.0">
+<xsl:output method="html" indent="yes" encoding="US-ASCII"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
+<xsl:decimal-format decimal-separator="." grouping-separator="," />
+<!--
+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 stylesheet to be used with An JUnitReport output.
+
+ It creates a non-framed report that can be useful to send via
+ e-mail or such.
+
+ @author Stephane Bailliez <a href="mailto:sbailliez@apache.org"/>
+ @author Erik Hatcher <a href="mailto:ehatcher@apache.org"/>
+
+-->
+<xsl:template match="testsuites">
+ <html>
+ <head>
+ <title>Unit Test Results</title>
+ <style type="text/css">
+ body {
+ font:normal 68% verdana,arial,helvetica;
+ color:#000000;
+ }
+ table tr td, table tr th {
+ font-size: 68%;
+ }
+ table.details tr th{
+ font-weight: bold;
+ text-align:left;
+ background:#a6caf0;
+ }
+ table.details tr td{
+ background:#eeeee0;
+ }
+
+ p {
+ line-height:1.5em;
+ margin-top:0.5em; margin-bottom:1.0em;
+ }
+ h1 {
+ margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
+ }
+ h2 {
+ margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica
+ }
+ h3 {
+ margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
+ }
+ h4 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ h5 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ h6 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ .Error {
+ font-weight:bold; color:red;
+ }
+ .Failure {
+ font-weight:bold; color:purple;
+ }
+ .Properties {
+ text-align:right;
+ }
+ </style>
+ <script type="text/javascript" language="JavaScript">
+ var TestCases = new Array();
+ var cur;
+ <xsl:for-each select="./testsuite">
+ <xsl:apply-templates select="properties"/>
+ </xsl:for-each>
+
+ </script>
+ <script type="text/javascript" language="JavaScript"><![CDATA[
+ function displayProperties (name) {
+ var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
+ var doc = win.document.open();
+ doc.write("<html><head><title>Properties of " + name + "</title>");
+ doc.write("<style>")
+ doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
+ doc.write("table tr td, table tr th { font-size: 68%; }");
+ doc.write("table.properties { border-collapse:collapse; border-left:solid 1 #cccccc; border-top:solid 1 #cccccc; padding:5px; }");
+ doc.write("table.properties th { text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#eeeeee; }");
+ doc.write("table.properties td { font:normal; text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#fffffff; }");
+ doc.write("h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica }");
+ doc.write("</style>");
+ doc.write("</head><body>");
+ doc.write("<h3>Properties of " + name + "</h3>");
+ doc.write("<div align=\"right\"><a href=\"javascript:window.close();\">Close</a></div>");
+ doc.write("<table class='properties'>");
+ doc.write("<tr><th>Name</th><th>Value</th></tr>");
+ for (prop in TestCases[name]) {
+ doc.write("<tr><th>" + prop + "</th><td>" + TestCases[name][prop] + "</td></tr>");
+ }
+ doc.write("</table>");
+ doc.write("</body></html>");
+ doc.close();
+ win.focus();
+ }
+ ]]>
+ </script>
+ </head>
+ <body>
+ <a name="top"></a>
+ <xsl:call-template name="pageHeader"/>
+
+ <!-- Summary part -->
+ <xsl:call-template name="summary"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- Package List part -->
+ <xsl:call-template name="packagelist"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- For each package create its part -->
+ <xsl:call-template name="packages"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- For each class create the part -->
+ <xsl:call-template name="classes"/>
+
+ </body>
+ </html>
+</xsl:template>
+
+
+
+ <!-- ================================================================== -->
+ <!-- Write a list of all packages with an hyperlink to the anchor of -->
+ <!-- of the package name. -->
+ <!-- ================================================================== -->
+ <xsl:template name="packagelist">
+ <h2>Packages</h2>
+ Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testsuite.test.header"/>
+ <!-- list all packages recursively -->
+ <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
+ <xsl:sort select="@package"/>
+ <xsl:variable name="testsuites-in-package" select="/testsuites/testsuite[./@package = current()/@package]"/>
+ <xsl:variable name="testCount" select="sum($testsuites-in-package/@tests)"/>
+ <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/>
+ <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/>
+ <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/>
+
+ <!-- write a summary for the package -->
+ <tr valign="top">
+ <!-- set a nice color depending if there is an error/failure -->
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="$failureCount > 0">Failure</xsl:when>
+ <xsl:when test="$errorCount > 0">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><a href="#{@package}"><xsl:value-of select="@package"/></a></td>
+ <td><xsl:value-of select="$testCount"/></td>
+ <td><xsl:value-of select="$errorCount"/></td>
+ <td><xsl:value-of select="$failureCount"/></td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="$timeCount"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+
+ <!-- ================================================================== -->
+ <!-- Write a package level report -->
+ <!-- It creates a table with values from the document: -->
+ <!-- Name | Tests | Errors | Failures | Time -->
+ <!-- ================================================================== -->
+ <xsl:template name="packages">
+ <!-- create an anchor to this package name -->
+ <xsl:for-each select="/testsuites/testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
+ <xsl:sort select="@package"/>
+ <a name="{@package}"></a>
+ <h3>Package <xsl:value-of select="@package"/></h3>
+
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testsuite.test.header"/>
+
+ <!-- match the testsuites of this package -->
+ <xsl:apply-templates select="/testsuites/testsuite[./@package = current()/@package]" mode="print.test"/>
+ </table>
+ <a href="#top">Back to top</a>
+ <p/>
+ <p/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="classes">
+ <xsl:for-each select="testsuite">
+ <xsl:sort select="@name"/>
+ <!-- create an anchor to this class name -->
+ <a name="{@name}"></a>
+ <h3>TestCase <xsl:value-of select="@name"/></h3>
+
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testcase.test.header"/>
+ <!--
+ test can even not be started at all (failure to load the class)
+ so report the error directly
+ -->
+ <xsl:if test="./error">
+ <tr class="Error">
+ <td colspan="4"><xsl:apply-templates select="./error"/></td>
+ </tr>
+ </xsl:if>
+ <xsl:apply-templates select="./testcase" mode="print.test"/>
+ </table>
+ <div class="Properties">
+ <a>
+ <xsl:attribute name="href">javascript:displayProperties('<xsl:value-of select="@package"/>.<xsl:value-of select="@name"/>');</xsl:attribute>
+ Properties »
+ </a>
+ </div>
+ <p/>
+
+ <a href="#top">Back to top</a>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="summary">
+ <h2>Summary</h2>
+ <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
+ <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
+ <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
+ <xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
+ <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <tr valign="top">
+ <th>Tests</th>
+ <th>Failures</th>
+ <th>Errors</th>
+ <th>Success rate</th>
+ <th>Time</th>
+ </tr>
+ <tr valign="top">
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="$failureCount > 0">Failure</xsl:when>
+ <xsl:when test="$errorCount > 0">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><xsl:value-of select="$testCount"/></td>
+ <td><xsl:value-of select="$failureCount"/></td>
+ <td><xsl:value-of select="$errorCount"/></td>
+ <td>
+ <xsl:call-template name="display-percent">
+ <xsl:with-param name="value" select="$successRate"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="$timeCount"/>
+ </xsl:call-template>
+ </td>
+
+ </tr>
+ </table>
+ <table border="0" width="95%">
+ <tr>
+ <td style="text-align: justify;">
+ Note: <i>failures</i> are anticipated and checked for with assertions while <i>errors</i> are unanticipated.
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--
+ Write properties into a JavaScript data structure.
+ This is based on the original idea by Erik Hatcher (ehatcher@apache.org)
+ -->
+ <xsl:template match="properties">
+ cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array();
+ <xsl:for-each select="property">
+ <xsl:sort select="@name"/>
+ cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
+ </xsl:for-each>
+ </xsl:template>
+
+<!-- Page HEADER -->
+<xsl:template name="pageHeader">
+ <h1>Unit Test Results</h1>
+ <table width="100%">
+ <tr>
+ <td align="left"></td>
+ <td align="right">Designed for use with <a href='http://www.junit.org'>JUnit</a> and <a href='http://jakarta.apache.org/ant'>Ant</a>.</td>
+ </tr>
+ </table>
+ <hr size="1"/>
+</xsl:template>
+
+<xsl:template match="testsuite" mode="header">
+ <tr valign="top">
+ <th width="80%">Name</th>
+ <th>Tests</th>
+ <th>Errors</th>
+ <th>Failures</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+<!-- class header -->
+<xsl:template name="testsuite.test.header">
+ <tr valign="top">
+ <th width="80%">Name</th>
+ <th>Tests</th>
+ <th>Errors</th>
+ <th>Failures</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+<!-- method header -->
+<xsl:template name="testcase.test.header">
+ <tr valign="top">
+ <th>Name</th>
+ <th>Status</th>
+ <th width="80%">Type</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+
+<!-- class information -->
+<xsl:template match="testsuite" mode="print.test">
+ <tr valign="top">
+ <!-- set a nice color depending if there is an error/failure -->
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@failures[.> 0]">Failure</xsl:when>
+ <xsl:when test="@errors[.> 0]">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <!-- print testsuite information -->
+ <td><a href="#{@name}"><xsl:value-of select="@name"/></a></td>
+ <td><xsl:value-of select="@tests"/></td>
+ <td><xsl:value-of select="@errors"/></td>
+ <td><xsl:value-of select="@failures"/></td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="@time"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+</xsl:template>
+
+<xsl:template match="testcase" mode="print.test">
+ <tr valign="top">
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="failure | error">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><xsl:value-of select="@name"/></td>
+ <xsl:choose>
+ <xsl:when test="failure">
+ <td>Failure</td>
+ <td><xsl:apply-templates select="failure"/></td>
+ </xsl:when>
+ <xsl:when test="error">
+ <td>Error</td>
+ <td><xsl:apply-templates select="error"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>Success</td>
+ <td></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="@time"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+</xsl:template>
+
+
+<xsl:template match="failure">
+ <xsl:call-template name="display-failures"/>
+</xsl:template>
+
+<xsl:template match="error">
+ <xsl:call-template name="display-failures"/>
+</xsl:template>
+
+<!-- Style for the error and failure in the tescase template -->
+<xsl:template name="display-failures">
+ <xsl:choose>
+ <xsl:when test="not(@message)">N/A</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@message"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- display the stacktrace -->
+ <code>
+ <br/><br/>
+ <xsl:call-template name="br-replace">
+ <xsl:with-param name="word" select="."/>
+ </xsl:call-template>
+ </code>
+ <!-- the later is better but might be problematic for non-21" monitors... -->
+ <!--pre><xsl:value-of select="."/></pre-->
+</xsl:template>
+
+<xsl:template name="JS-escape">
+ <xsl:param name="string"/>
+ <xsl:param name="tmp1" select="stringutils:replace(string($string),'\','\\')"/>
+ <xsl:param name="tmp2" select="stringutils:replace(string($tmp1),"'","\'")"/>
+ <xsl:value-of select="$tmp2"/>
+</xsl:template>
+
+<!--
+ template that will convert a carriage return into a br tag
+ @param word the text from which to convert CR to BR tag
+-->
+<xsl:template name="br-replace">
+ <xsl:param name="word"/>
+ <xsl:choose>
+ <xsl:when test="contains($word,'
')">
+ <xsl:value-of select="substring-before($word,'
')"/>
+ <br/>
+ <xsl:call-template name="br-replace">
+ <xsl:with-param name="word" select="substring-after($word,'
')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$word"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template name="display-time">
+ <xsl:param name="value"/>
+ <xsl:value-of select="format-number($value,'0.000')"/>
+</xsl:template>
+
+<xsl:template name="display-percent">
+ <xsl:param name="value"/>
+ <xsl:value-of select="format-number($value,'0.00%')"/>
+</xsl:template>
+
+</xsl:stylesheet>
+
Added: incubator/synapse/trunk/scratch/synase-multimodules/etc/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/etc/maven.xml?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/etc/maven.xml (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/etc/maven.xml Tue Feb 14 23:11:24 2006
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright 2003-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 default="default"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util"
+ xmlns:ant="jelly:ant"
+ xmlns:maven="jelly:maven"
+ xmlns:define="jelly:define"
+ xmlns:velocity="jelly:velocity"
+ >
+
+ <!-- ================= -->
+ <!-- Global Properties -->
+ <!-- ================= -->
+
+ <!-- Determine what the top-level project root is -->
+ <j:set var="project.root" value="${pom.parentBasedir().getParentFile().getCanonicalFile()}"/>
+
+ <!-- ==================== -->
+ <!-- Default Global Goals -->
+ <!-- ==================== -->
+
+ <goal name="default">
+ <attainGoal name="jar:install"/>
+ </goal>
+
+ <goal name="build">
+ <attainGoal name="default"/>
+ </goal>
+
+ <goal name="rebuild">
+ <attainGoal name="clean"/>
+ <attainGoal name="build"/>
+ </goal>
+
+ <postGoal name="java:prepare-filesystem">
+ <u:file var="file" name="${maven.home}/lib/jalopy.jar"/>
+ <j:if test="${file.exists()}">
+ <ant:path id="jalopy.library">
+ <ant:fileset dir="${maven.home}/lib">
+ <ant:include name="jalopy.jar"/>
+ </ant:fileset>
+ </ant:path>
+ <maven:addPath id="maven.dependency.classpath" refid="jalopy.library"/>
+ </j:if>
+ </postGoal>
+
+
+
+ <!-- Construct dependency lists for inclusion in generated jar. -->
+ <!-- putting this goal here produces a circular dependency -->
+
+ <!-- Remove the log files -->
+ <goal name="clobber"
+ description="Removes all (non-repository installed) build generated files">
+
+ <!-- Let clean:clean do some work first -->
+ <attainGoal name="clean:clean"/>
+
+ <j:jelly xmlns="jelly:ant">
+ <delete quiet="false" failonerror="false">
+ <fileset dir="${basedir}">
+ <include name="maven.log"/>
+ <include name="velocity.log*"/>
+ <include name="junit*.properties"/>
+ </fileset>
+ </delete>
+ </j:jelly>
+
+ </goal>
+
+ <!-- Cleanse source files -->
+ <goal name="cleanse-sources"
+ description="Cleanse source files, removing tabs and translating CRLF -> LF">
+
+ <j:scope xmlns="jelly:ant">
+
+ <!-- Cleanse sources -->
+ <j:set var="srcdir" value="${basedir}/src/java"/>
+ <u:available file="">
+ <fixcrlf srcdir="${srcdir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*.java"/>
+ </fixcrlf>
+ <fixcrlf srcdir="${basedir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*.xml"/>
+ <include name="**/*.html"/>
+ </fixcrlf>
+ </u:available>
+
+ <!-- Cleanse test sources -->
+ <j:set var="srcdir" value="${basedir}/src/test"/>
+ <u:available file="${srcdir}">
+ <fixcrlf srcdir="${srcdir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*.java"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.html"/>
+ </fixcrlf>
+ <fixcrlf srcdir="${srcdir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*.xml"/>
+ <include name="**/*.html"/>
+ </fixcrlf>
+ </u:available>
+
+ <!-- Cleanse xdocs -->
+ <j:set var="srcdir" value="${basedir}/src/xdocs"/>
+ <u:available file="${srcdir}">
+ <fixcrlf srcdir="${srcdir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*.xml"/>
+ <include name="**/*.html"/>
+ </fixcrlf>
+ </u:available>
+
+ <!-- Cleanse build files -->
+ <fixcrlf srcdir="." eol="lf" tab="remove" eof="remove" tablength="4">
+ <include name="project.xml"/>
+ <include name="maven.xml"/>
+ </fixcrlf>
+
+ <!-- Cleanse scripts -->
+ <j:set var="srcdir" value="${basedir}/src/bin"/>
+ <u:available file="${srcdir}">
+ <fixcrlf srcdir="${srcdir}" eol="lf" eof="remove" tab="remove" tablength="4">
+ <include name="**/*"/>
+ </fixcrlf>
+ </u:available>
+
+ </j:scope>
+
+ </goal>
+</project>
Added: incubator/synapse/trunk/scratch/synase-multimodules/etc/project.properties
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/etc/project.properties?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/etc/project.properties (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/etc/project.properties Tue Feb 14 23:11:24 2006
@@ -0,0 +1,76 @@
+# -------------------------------------------------------------------
+# Dependency Repositories
+# -------------------------------------------------------------------
+maven.repo.remote=\
+http://www.apache.org/dist/java-repository/,\
+http://www.ibiblio.org/maven,\
+http://cvs.apache.org/repository/
+
+# -------------------------------------------------------------------
+# xdoc
+# -------------------------------------------------------------------
+maven.xdoc.date=left
+maven.xdoc.includeProjectDocumentation=no
+maven.html2xdoc.enabled=false
+maven.html2xdoc.dir=./xdocs
+maven.allreports.disable=true
+
+# -------------------------------------------------------------------
+# JUnit
+# -------------------------------------------------------------------
+maven.junit.jvmargs=-Djava.awt.headless=true
+maven.junit.fork=true
+
+# -------------------------------------------------------------------
+# Compile
+# -------------------------------------------------------------------
+maven.compile.optimize=false
+maven.compile.fork=true
+
+# -------------------------------------------------------------------
+# Versions of dependencies
+# -------------------------------------------------------------------
+ant.version=1.6.5
+axis.wsdl4j.version=1.2
+axis2.version=0.94
+axiom.version=1.0-SNAPSHOT
+commons.codec.version=1.3
+commons.discovery.version=0.2
+commons.httpclient.version=3.0
+commons.logging.version=1.0.4
+geronimo.spec.activation.version=1.0.2-rc4
+geronimo.spec.javamail.version=1.3.1-rc5
+geronimo.spec.servlet.version=2.4-rc4
+servletapi.version=2.3
+groovy.all.version=1.0-jsr-01
+jaxen.version=1.1-beta-7
+junit.version=3.8.1
+log4j.version=1.2.12
+opensaml.version=1.0.1
+stax.api.version=1.0
+stax.impl.groupid=woodstox
+stax.impl.artifactid=wstx
+stax.impl.version=asl-2.8.1
+wss4j.version=SNAPSHOT
+xalan.version=2.6.0
+xerces.version=2.6.2
+XmlSchema.version=1.0-SNAPSHOT
+xmlunit.version=1.0
+annogen.version=0.1.0
+policy.version=1.0-SNAPSHOT
+geronimo.spec.jms.version=1.1-rc4
+backport_util_concurrent.version=2.0_01_pd
+spring.version=1.2.6
+
+
+# -------------------------------------------------------------------
+# Multiproject includes and excludes
+# -------------------------------------------------------------------
+
+optional.includes=
+maven.multiproject.includes=\
+modules/core/project.xml,\
+modules/mediators/project.xml,\
+modules/samples/project.xml,\
+modules/extensions/project.xml,\
+${optional.includes}
Added: incubator/synapse/trunk/scratch/synase-multimodules/etc/project.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/etc/project.xml?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/etc/project.xml (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/etc/project.xml Tue Feb 14 23:11:24 2006
@@ -0,0 +1,269 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+ <pomVersion>3</pomVersion>
+
+ <id>Synapse-Incubating</id>
+
+ <name>Apache Synpase</name>
+
+ <currentVersion>M2-SNAPSHOT</currentVersion>
+
+ <organization>
+ <name>Apache Web Services</name>
+ <url>http://ws.apache.org/</url>
+ <logo>http://www.apache.org/images/asf-logo.gif</logo>
+ </organization>
+
+ <inceptionYear>2005</inceptionYear>
+ <package>org.apache.synapse</package>
+ <logo>http://incubator.apache.org/synapse/images/synapse.png</logo>
+ <description>The Synapse project will create a robust, lightweight
+ implementation of a highly scalable and distributed service mediation
+ framework based on Web services specifications.</description>
+
+ <url>http://ws.apache.org/synapse/</url>
+ <issueTrackingUrl>
+ http://issues.apache.org/jira/browse/Synapse</issueTrackingUrl>
+ <siteAddress>ws.apache.org</siteAddress>
+ <siteDirectory>/synapse/</siteDirectory>
+ <distributionDirectory>/www/ws.apache.org/builds/</distributionDirectory>
+
+
+ <!--any mailing lists for the project -->
+
+ <mailingLists>
+ <mailingList>
+ <name>Synpase Developer List</name>
+ <subscribe>synapse-dev-subscribe@ws.apache.org</subscribe>
+ <unsubscribe>synapse-dev-unsubscribe@ws.apache.org</unsubscribe>
+ <archive></archive>
+ </mailingList>
+ </mailingLists>
+
+ <!-- who the developers are for the project -->
+ <developers/>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <!-- ============ -->
+ <!-- Dependencies -->
+ <!-- ============ -->
+
+ <dependencies>
+ <dependency>
+ <groupId>axis2</groupId>
+ <artifactId>axis2-core</artifactId>
+ <version>${axis2.version}</version>
+ </dependency>
+
+
+
+ <!-- external JARs -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-httpclient</groupId>
+ <artifactId>commons-httpclient</artifactId>
+ <version>${commons.httpclient.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>commons-discovery</groupId>
+ <artifactId>commons-discovery</artifactId>
+ <version>${commons.discovery.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>${commons.codec.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4j.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>${stax.impl.groupid}</groupId>
+ <artifactId>${stax.impl.artifactid}</artifactId>
+ <version>${stax.impl.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>${stax.api.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>axis</groupId>
+ <artifactId>axis-wsdl4j</artifactId>
+ <version>${axis.wsdl4j.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-javamail</artifactId>
+ <version>${geronimo.spec.javamail.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-activation</artifactId>
+ <version>${geronimo.spec.activation.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>geronimo-spec</groupId>
+ <artifactId>geronimo-spec-jms</artifactId>
+ <version>${geronimo.spec.jms.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <properties>
+ <classloader>root</classloader>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>jaxen</groupId>
+ <artifactId>jaxen</artifactId>
+ <version>${jaxen.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>2.6.0</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>annogen</groupId>
+ <artifactId>annogen</artifactId>
+ <version>${annogen.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>XmlSchema</artifactId>
+ <version>${XmlSchema.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>policy</artifactId>
+ <version>${policy.version}</version>
+ <properties>
+ <module>false</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>axiom</artifactId>
+ <version>${axiom.version}</version>
+ <properties>
+ <module>false</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>${backport_util_concurrent.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ </dependencies>
+
+ <!-- ================================= -->
+ <!-- build information for the project -->
+ <!-- ================================= -->
+
+ <build>
+ <nagEmailAddress>synapse-dev@ws.apache.org</nagEmailAddress>
+ <sourceDirectory>src</sourceDirectory>
+ <unitTestSourceDirectory>test</unitTestSourceDirectory>
+ <unitTest>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <!--<excludes>-->
+ <!--<exclude>**/AddressingInProcessorTest.java</exclude>-->
+ <!--</excludes>-->
+ <resources>
+ <resource>
+ <directory>conf</directory>
+ <includes>
+ <include>**/*.properties</include>
+ </includes>
+ </resource>
+ </resources>
+ </unitTest>
+
+ <resources>
+ <resource>
+ <directory>conf</directory>
+ <includes>
+ <include>**/*.properties</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+
+ <!-- ======= -->
+ <!-- Reports -->
+ <!-- ======= -->
+
+ <reports>
+ <!--<report>maven-changes-plugin</report>-->
+ <!--<report>maven-jdepend-plugin</report>-->
+ <!--<report>maven-checkstyle-plugin</report>-->
+ <!--<report>maven-pmd-plugin</report>-->
+ <!--<report>maven-junit-report-plugin</report>-->
+ <!--<report>maven-license-plugin</report>-->
+ <!--<report>maven-jxr-plugin</report>-->
+ </reports>
+</project>
+
Added: incubator/synapse/trunk/scratch/synase-multimodules/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/maven.xml?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/maven.xml (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/maven.xml Tue Feb 14 23:11:24 2006
@@ -0,0 +1,674 @@
+<?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.
+ */
+ -->
+
+<!--
+ | The main goals for multi project build are:
+ |
+ | default
+ | Build all the modules
+ |
+ | clean
+ | Deletes the 'target' directory in all projects
+
+ | clean-repo
+ | Deletes the 'target' directory in all projects
+ |
+ -->
+
+<project default="jar"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util"
+ xmlns:deploy="deploy"
+ xmlns:modules="local:modules"
+ xmlns:ant="jelly:ant"
+ xmlns:plugin="plugin"
+ xmlns:macros="macros"
+ xmlns:maven="jelly:maven"
+ xmlns:define="jelly:define">
+
+ <j:set var="dist.name" value="${pom.artifactId}-${pom.currentVersion}"/>
+ <j:set var="dist.dir" value="target/dist"/>
+ <j:set var="bin.dist.dir" value="target/dist-bin/synapse"/>
+ <j:set var="mediators.dist.dir" value="target/dist-mediators/synapse"/>
+ <j:set var="extensions.dist.dir" value="target/dist-extensions/synapse"/>
+
+ <tstamp>
+ <format property="release_date" pattern="MMMM d, yyyy" locale="en"/>
+ </tstamp>
+
+ <j:set var="modules" value="*"/>
+
+ <preGoal name="build:start">
+ <property name="modules" value="core"/>
+ </preGoal>
+
+ <!-- ======= -->
+ <!-- Modules -->
+ <!-- ======= -->
+ <goal name="modules:reactor:init">
+ <!--
+ | Determine the includes which the reactor will use.
+ |
+ | Uses 4 properties to control which modules will be include:
+ |
+ | module.types Comma seperated list of module types (ie. specs or modules)
+ | module.includes Comma seperated list of module names (ie. common, core, ...)
+ | modules Same as module.includes, module.includes initializes to this value
+ | module.excludes Comma seperated list of module names to exclude
+ |
+ | The end result is that modules.reactor.includes is set to the project.xml files
+ | to include. This is the value the reactor will use.
+ |
+ | Example, to only build the common and core modules:
+ |
+ | maven -Dmodules=common,core
+ -->
+
+ <j:if test="${context.getVariable('module.types') == null}">
+ <j:set var="module.types" value="modules,applications,plugins"/>
+ </j:if>
+
+ <j:if test="${context.getVariable('modules') == null}">
+ <!-- The default is to build everything -->
+ <j:set var="modules" value="*"/>
+ </j:if>
+
+ <j:if test="${context.getVariable('module.includes') == null}">
+ <j:set var="module.includes" value="${modules}"/>
+ </j:if>
+
+ <j:if test="${context.getVariable('module.excludes') == null}">
+ <j:set var="module.excludes" value=""/>
+ </j:if>
+
+ <u:tokenize var="types" delim=",">${module.types}</u:tokenize>
+
+ <ant:fileScanner var="scanner">
+ <ant:fileset dir="${basedir}">
+ <j:forEach var="type" items="${types}">
+ <j:choose>
+ <j:when test="${context.getVariable('module.includes') == '*'}">
+ <ant:include name="${type}/*/project.xml"/>
+ </j:when>
+ <j:otherwise>
+ <u:tokenize var="includes" delim=",">
+ ${module.includes}</u:tokenize>
+ <j:forEach var="include" items="${includes}">
+ <u:available
+ file="${basedir}/${type}/${include}/project.xml">
+ <ant:include
+ name="${type}/${include}/project.xml"/>
+ </u:available>
+ </j:forEach>
+ </j:otherwise>
+ </j:choose>
+
+ <j:choose>
+ <j:when test="${context.getVariable('module.excludes') == '*'}">
+ <ant:exclude name="${type}/*/project.xml"/>
+ </j:when>
+ <j:otherwise>
+ <u:tokenize var="excludes" delim=",">
+ ${module.excludes}</u:tokenize>
+ <j:forEach var="exclude" items="${excludes}">
+ <u:available
+ file="${basedir}/${type}/${exclude}/project.xml">
+ <ant:exclude
+ name="${type}/${exclude}/project.xml"/>
+ </u:available>
+ </j:forEach>
+ </j:otherwise>
+ </j:choose>
+ </j:forEach>
+ </ant:fileset>
+ </ant:fileScanner>
+
+ <!-- Setup the includes which will be used by the reactor -->
+ <j:forEach var="file" items="${scanner.iterator()}">
+ <!--
+ | Would be nice if reactor would take a file set, but for now just remove
+ | the baseddir portion of the file's name. So this will essentially strip off
+ | ${basedir}
+ -->
+ <j:set var="directory"
+ value="${file.parentFile.parentFile.name}/${file.parentFile.name}"/>
+ <j:set var="filename" value="${directory}/${file.name}"/>
+ <j:choose>
+ <j:when test="${context.getVariable('modules.reactor.includes') == null}">
+ <j:set var="modules.directories" value="${directory}"/>
+ <j:set var="modules.reactor.includes" value="${filename}"/>
+ </j:when>
+ <j:otherwise>
+ <j:set var="modules.directories"
+ value="${modules.directories},${directory}"/>
+ <j:set var="modules.reactor.includes"
+ value="${modules.reactor.includes},${filename}"/>
+ </j:otherwise>
+ </j:choose>
+ </j:forEach>
+ </goal>
+
+ <!-- Helper tags for modules -->
+ <define:taglib uri="local:modules">
+ <define:tag name="reactor">
+ <attainGoal name="modules:reactor:init"/>
+
+ <j:choose>
+ <j:when test="${goals != null}">
+ <maven:reactor
+ basedir="${basedir}"
+ includes="${modules.reactor.includes}"
+ banner="Executing (${goals}):"
+ ignoreFailures="false"
+ goals="${goals}"
+ postProcessing="true"
+ />
+ </j:when>
+ <j:when test="${goals == null}">
+ <maven:reactor
+ basedir="${basedir}"
+ includes="${modules.reactor.includes}"
+ banner="Executing (${goals}):"
+ ignoreFailures="false"
+ postProcessing="true"
+ />
+ </j:when>
+ </j:choose>
+
+ <!-- Set reactor projects in parent scope so goals have access to it -->
+ <j:set var="reactorProjects" value="${reactorProjects}"
+ scope="parent"/>
+ </define:tag>
+ </define:taglib>
+
+ <goal name="m:init">
+ <ant:fileScanner var="scanner">
+ <ant:fileset dir="${basedir}">
+ <u:tokenize var="includes" delim=",">
+ ${maven.multiproject.includes}</u:tokenize>
+ <j:forEach var="include" items="${includes}">
+ <ant:include name="${include}"/>
+ </j:forEach>
+ <u:tokenize var="excludes" delim=",">
+ ${maven.multiproject.excludes}</u:tokenize>
+ <j:forEach var="exclude" items="${excludes}">
+ <ant:exclude name="${exclude}"/>
+ </j:forEach>
+ </ant:fileset>
+ </ant:fileScanner>
+
+ <j:set var="maven.multiproject.includes" value=""/>
+ <j:set var="maven.multiproject.excludes" value=""/>
+ <j:set var="modules.directories" value=""/>
+
+ <u:tokenize var="moduleList" delim=",">${modules}</u:tokenize>
+ <j:set var="currentDir" value="${basedir}/"/>
+ <j:forEach var="file" items="${scanner.iterator()}">
+ <j:set var="directory" value="${file.parentFile.absolutePath}"/>
+ <j:set var="include"
+ value="${file.absolutePath.substring(currentDir.length())}"/>
+ <j:if test="${moduleList.isEmpty() || moduleList.contains(file.parentFile.name)}">
+ <j:choose>
+ <j:when test="${context.getVariable('maven.multiproject.includes') == ''}">
+ <j:set var="modules.directories" value="${directory}"/>
+ <j:set var="maven.multiproject.includes"
+ value="${include}"/>
+ </j:when>
+ <j:otherwise>
+ <j:set var="modules.directories"
+ value="${modules.directories},${directory}"/>
+ <j:set var="maven.multiproject.includes"
+ value="${maven.multiproject.includes},${include}"/>
+ </j:otherwise>
+ </j:choose>
+ </j:if>
+ </j:forEach>
+ </goal>
+
+ <goal name="jar:jar">
+ <attainGoal name="create-jar"/>
+ <ant:copy file="target/lib/${pom.artifactId}-${pom.currentVersion}.jar"
+ toDir="target/"/>
+ </goal>
+
+ <goal name="jar">
+ <attainGoal name="multiproject:install"/>
+ <attainGoal name="jar:install"/>
+ </goal>
+
+ <goal name="init">
+ <ant:mkdir dir="target"/>
+ <ant:mkdir dir="${dist.dir}"/>
+ <ant:mkdir dir="target/lib"/>
+
+ <uptodate property="jars.uptodate"
+ targetfile="target/${pom.artifactId}-${pom.currentVersion}.war">
+ <srcfiles dir="modules">
+ <include name="**/*.java"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.wsdl"/>
+ <exclude name="**/target/**"/>
+ </srcfiles>
+ </uptodate>
+ <echo message="the files are up to date = ${jars.uptodate}"></echo>
+ </goal>
+
+ <goal name="modules:clean">
+ <attainGoal name="modules:reactor:init"/>
+ <u:tokenize var="directories" delim=",">
+ ${modules.directories}</u:tokenize>
+ <j:forEach var="directory" items="${directories}">
+ <ant:echo>+----------------------------------------</ant:echo>
+ <ant:echo>| Cleaning: ${directory}</ant:echo>
+ <ant:echo>+----------------------------------------</ant:echo>
+ <ant:delete dir="${directory}/target"/>
+ <ant:delete quiet="false" failonerror="false">
+ <ant:fileset dir="${directory}">
+ <ant:include name="maven.log"/>
+ <ant:include name="velocity.log*"/>
+ <ant:include name="junit*.properties"/>
+ <!--<ant:include name="axis.log"/>-->
+ <ant:include name="junit*.properties"/>
+ <ant:include name="temp.properties"/>
+ </ant:fileset>
+ </ant:delete>
+ <ant:echo></ant:echo>
+ </j:forEach>
+ <ant:echo>+----------------------------------------</ant:echo>
+ <ant:echo>| Cleaning: target and etc/target</ant:echo>
+ <ant:echo>+----------------------------------------</ant:echo>
+ <ant:delete dir="target"/>
+ <ant:delete dir="etc/target"/>
+ </goal>
+
+ <goal name="clean">
+ <attainGoal name="modules:clean"/>
+ </goal>
+
+ <goal name="cleanse-sources">
+ <modules:reactor goals="cleanse-sources"/>
+ </goal>
+
+ <!-- <goal name="clover">
+ <modules:reactor goals="clover:on,jar:install,test"/>
+ <attainGoal name="clover:merge"/>
+ <attainGoal name="clover:report"/>
+ </goal> -->
+
+ <goal name="create-jar" prereqs="init">
+ <jar destfile="target/lib/${pom.artifactId}-${pom.currentVersion}.jar">
+ <fileset dir="modules/core/target/classes"/>
+ </jar>
+ </goal>
+
+ <goal name="create-lib">
+ <macros:copy-deps copyToDir="${target/lib}"/>
+ </goal>
+
+ <!-- ================================================================ -->
+ <!--- Create the Distro -->
+ <!-- ================================================================ -->
+ <goal name="dist-bin" prereqs="war,create-jar,javadocs">
+ <ant:echo>+----------------------------------------------</ant:echo>
+ <ant:echo>| Creating: Synapse Binary Distribution</ant:echo>
+ <ant:echo>+----------------------------------------------</ant:echo>
+
+ <ant:mkdir dir="${bin.dist.dir}"/>
+ <ant:mkdir dir="${bin.dist.dir}/bin"/>
+ <ant:mkdir dir="${bin.dist.dir}/lib"/>
+ <ant:mkdir dir="${bin.dist.dir}/xdocs"/>
+ <ant:mkdir dir="${bin.dist.dir}/synapse_repository"/>
+ <ant:mkdir dir="${bin.dist.dir}/samples"/>
+ <ant:mkdir dir="${bin.dist.dir}/mediators"/>
+
+ <ant:mkdir dir="target/temp/"/>
+
+ <ant:copy todir="${bin.dist.dir}/xdocs">
+ <ant:fileset dir="xdocs">
+ <ant:include name="**"/>
+ </ant:fileset>
+ </ant:copy>
+ <ant:copy todir="${bin.dist.dir}/lib" flatten="true">
+ <ant:fileset dir="target/lib">
+ <ant:include name="*.jar"/>
+ </ant:fileset>
+ </ant:copy>
+ <ant:copy file="bin/synapse.sh"
+ tofile="${bin.dist.dir}/bin/synapse.sh"/>
+ <ant:copy file="bin/synapse.bat"
+ tofile="${bin.dist.dir}/bin/synapse.bat"/>
+ <ant:copy file="README.txt"
+ tofile="${bin.dist.dir}/README.txt"/>
+
+ <ant:copy todir="${bin.dist.dir}/synapse_repository" flatten="false">
+ <ant:fileset dir="modules/core/target/synapse-repository"/>
+ </ant:copy>
+
+ <ant:copy todir="${bin.dist.dir}/samples" flatten="false">
+ <ant:fileset dir="modules/samples/target/dist-bin/samples"/>
+ </ant:copy>
+
+ <ant:copy todir="${bin.dist.dir}/mediators" flatten="false">
+ <ant:fileset dir="modules/mediators/target/dist-bin/mediators"/>
+ </ant:copy>
+
+ <ant:copy todir="target/temp/">
+ <ant:fileset dir="target/dist-bin/">
+ <include name="**"/>
+ </ant:fileset>
+ </ant:copy>
+
+
+ <ant:zip file="${dist.dir}/${dist.name}-bin.zip"
+ basedir="target/temp"/>
+
+ <ant:delete dir="target/temp"/>
+ <ant:delete dir="target/dist-bin"/>
+ </goal>
+
+ <goal name="init-dist">
+ <ant:mkdir dir="target/dist"/>
+ </goal>
+
+ <goal name="cache-min-deps" prereqs="init-dist">
+ <ant:mkdir dir="${min_dep_cache}"/>
+ <j:if test="${minDeps.uptodate != 'yes'}">
+ <macros:copy-deps copyToDir="${min_dep_cache}"
+ mods="core"/>
+ <property name="minDeps.uptodate" value="yes"/>
+ </j:if>
+ </goal>
+
+ <!-- ================================================================ -->
+ <!--- Create the Java Docs -->
+ <!-- ================================================================ -->
+
+ <goal name="javadocs" prereqs="init">
+ <deploy:copy-deps todir="target/lib"/>
+ <ant:javadoc packagenames="org.apache.synapse.*"
+ defaultexcludes="yes"
+ destdir="target/apidocs"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="Synapse API">
+ <ant:sourcepath>
+ <ant:pathelement location="modules/core/src"/>
+ <ant:pathelement location="modules/mediators/src"/>
+ </ant:sourcepath>
+ <ant:classpath>
+ <ant:fileset dir="target/lib">
+ <ant:include name="**/*.jar"/>
+ </ant:fileset>
+ </ant:classpath>
+ </ant:javadoc>
+ </goal>
+
+ <!-- ================================================================ -->
+ <!--- Reports -->
+ <!-- ================================================================ -->
+ <!-- Conditionally disable linkcheck based on a property. -->
+
+ <postGoal name="xdoc:register-reports">
+ <j:if test="${maven.allreports.disable}">
+ <echo>Reports are disabled. Deregistering all the reports
+ ....</echo>
+ <attainGoal name="maven-linkcheck-plugin:deregister"/>
+ <echo>linkcheck is disabled.</echo>
+ <attainGoal name="maven-checkstyle-plugin:deregister"/>
+ <echo>checkstyle is disabled.</echo>
+ <attainGoal name="maven-changes-plugin:deregister"/>
+ <echo>changes is disabled.</echo>
+ <attainGoal name="maven-changelog-plugin:deregister"/>
+ <echo>changelog is disabled.</echo>
+ <attainGoal name="maven-license-plugin:deregister"/>
+ <echo>license is disabled.</echo>
+ <attainGoal name="maven-javadoc-plugin:deregister"/>
+ <echo>javadoc is disabled.</echo>
+ <attainGoal name="maven-junit-report-plugin:deregister"/>
+ <echo>junit-report is disabled.</echo>
+ <attainGoal name="maven-tasklist-plugin:deregister"/>
+ <echo>tasklist is disabled.</echo>
+ </j:if>
+
+ </postGoal>
+
+
+ <!-- ================================================================ -->
+ <!--- Create JUnit test reports -->
+ <!-- ================================================================ -->
+ <goal name="test-reports">
+ <mkdir dir="${basedir}/target/test-reports"/>
+ <ant:junitreport todir="${basedir}/target/test-reports">
+ <ant:fileset dir="${basedir}/">
+ <ant:include name="**/test-reports/TEST-*.xml"/>
+ <ant:include name="**/itest-reports/TEST-*.xml"/>
+ </ant:fileset>
+ <ant:report format="frames" todir="${basedir}/target/test-reports"
+ styledir="${basedir}/etc"/>
+ </ant:junitreport>
+ </goal>
+
+ <define:taglib uri="macros">
+ <define:tag name="copy-deps">
+ <j:set var="modules" value="${mods}"/>
+
+ <!-- ######################### REACTOR INIT ##########################################-->
+
+ <j:if test="${context.getVariable('module.types') == null}">
+ <j:set var="module.types" value="modules,applications,plugins"/>
+ </j:if>
+
+ <j:set var="module.includes" value="${modules}"/>
+
+ <j:if test="${context.getVariable('module.excludes') == null}">
+ <j:set var="module.excludes" value=""/>
+ </j:if>
+
+ <u:tokenize var="types" delim=",">${module.types}</u:tokenize>
+
+ <ant:fileScanner var="scanner">
+ <ant:fileset dir="${basedir}">
+ <j:forEach var="type" items="${types}">
+ <j:choose>
+ <j:when test="${context.getVariable('module.includes') == '*'}">
+ <ant:include name="${type}/*/project.xml"/>
+ </j:when>
+ <j:otherwise>
+ <u:tokenize var="includes" delim=",">
+ ${module.includes}</u:tokenize>
+ <j:forEach var="include" items="${includes}">
+ <u:available
+ file="${basedir}/${type}/${include}/project.xml">
+ <ant:include
+ name="${type}/${include}/project.xml"/>
+ </u:available>
+ </j:forEach>
+ </j:otherwise>
+ </j:choose>
+
+ <j:choose>
+ <j:when test="${context.getVariable('module.excludes') == '*'}">
+ <ant:exclude name="${type}/*/project.xml"/>
+ </j:when>
+ <j:otherwise>
+ <u:tokenize var="excludes" delim=",">
+ ${module.excludes}</u:tokenize>
+ <j:forEach var="exclude" items="${excludes}">
+ <u:available
+ file="${basedir}/${type}/${exclude}/project.xml">
+ <ant:exclude
+ name="${type}/${exclude}/project.xml"/>
+ </u:available>
+ </j:forEach>
+ </j:otherwise>
+ </j:choose>
+ </j:forEach>
+ </ant:fileset>
+ </ant:fileScanner>
+
+ <j:set var="modules.reactor.includes" value=""/>
+
+ <!-- Setup the includes which will be used by the reactor -->
+ <j:forEach var="file" items="${scanner.iterator()}">
+ <j:set var="directory"
+ value="${file.parentFile.parentFile.name}/${file.parentFile.name}"/>
+ <j:set var="filename" value="${directory}/${file.name}"/>
+ <j:choose>
+ <j:when test="${context.getVariable('modules.reactor.includes') == null}">
+ <j:set var="modules.directories" value="${directory}"/>
+ <j:set var="modules.reactor.includes"
+ value="${filename}"/>
+ </j:when>
+ <j:otherwise>
+ <j:set var="modules.directories"
+ value="${modules.directories},${directory}"/>
+ <j:set var="modules.reactor.includes"
+ value="${modules.reactor.includes},${filename}"/>
+ </j:otherwise>
+ </j:choose>
+ </j:forEach>
+ <!-- #################### END OF REACTOR INIT #######################################-->
+
+ <ant:echo
+ message="Fetching Dependencies for modules: ${modules.reactor.includes}"/>
+ <maven:reactor
+ basedir="${basedir}"
+ postProcessing="true"
+ includes="${modules.reactor.includes}"
+ banner="Executing (${goals}):"
+ ignoreFailures="false"/>
+ <j:forEach var="x" items="${reactorProjects}">
+ <ant:echo message="Copying ${x} to ${copyToDir}"/>
+ <deploy:copy-deps todir="${copyToDir}"
+ projectDescriptor="${x.getFile()}"/>
+ </j:forEach>
+ <property name="modules" value="*"/>
+ </define:tag>
+ </define:taglib>
+
+ <goal name="war" prereqs="init">
+ <j:if test="${jars.uptodate != 'yes'}">
+ <attainGoal name="jar"/>
+ </j:if>
+ <!-- jar the test classes -->
+ <deploy:copy-deps todir="target/lib"/>
+ <ant:war destfile="target/synapse.war" webxml="bin/web.xml">
+ <ant:lib dir="target/lib">
+ <ant:include name="**"/>
+ <ant:exclude name="**servlet**"/>
+ <ant:exclude name="ant*.jar"/>
+ </ant:lib>
+ <ant:webinf dir="modules/core/target/synapse-repository/"/>
+ </ant:war>
+ </goal>
+
+ <goal name="dist-src">
+ <ant:mkdir dir="${dist.dir}"/>
+ <ant:zip file="${dist.dir}/${dist.name}-src.zip">
+ <ant:fileset dir=".">
+ <ant:include name="**"/>
+ <ant:exclude name="**/target/**"/>
+ <ant:exclude name="**/.svn/**"/>
+ <ant:exclude name="**/bin/**"/>
+ <ant:exclude name="**/*.log"/>
+ <ant:exclude name=".*"/>
+ <ant:exclude name="**/*.license"/>
+ </ant:fileset>
+ </ant:zip>
+ <ant:tar tarfile="target/${dist.name}-src.tar" longfile="gnu">
+ <ant:tarfileset dir=".">
+ <ant:include name="**"/>
+ <ant:exclude name="**/target/**"/>
+ <ant:exclude name="**/.svn/**"/>
+ <ant:exclude name="**/bin/**"/>
+ <ant:exclude name="**/*.log"/>
+ <ant:exclude name=".*"/>
+ <ant:exclude name="**/*.license"/>
+ </ant:tarfileset>
+ </ant:tar>
+ <gzip src="target/${dist.name}-src.tar"
+ zipfile="${dist.dir}/${dist.name}-src.tar.gz"/>
+ <ant:delete file="target/${dist.name}-src.tar"/>
+ </goal>
+
+ <goal name="dep-test">
+ <macros:copy-deps copyToDir="target/lib" mods="core"/>
+ </goal>
+
+ <!-- ================================================================ -->
+ <!--- Create the Mediator Distribution -->
+ <!-- ================================================================ -->
+
+ <goal name="dist-mediators" prereqs="jar,create-jar,javadocs">
+ <ant:echo>+----------------------------------------------</ant:echo>
+ <ant:echo>| Creating: Synapse Mediator Distribution</ant:echo>
+ <ant:echo>+----------------------------------------------</ant:echo>
+
+ <ant:mkdir dir="target/temp/"/>
+
+ <ant:copy todir="${mediators.dist.dir}/mediators" flatten="false">
+ <ant:fileset dir="modules/mediators/target/dist-bin/mediators"/>
+ </ant:copy>
+
+ <ant:copy todir="target/temp/">
+ <ant:fileset dir="target/dist-mediators/">
+ <include name="**"/>
+ </ant:fileset>
+ </ant:copy>
+
+
+ <ant:zip file="${dist.dir}/Mediators-Synapse-${pom.currentVersion}-bin.zip"
+ basedir="target/temp"/>
+
+ <ant:delete dir="target/temp"/>
+ <ant:delete dir="target/dist-mediators"/>
+
+ </goal>
+ <!-- ================================================================ -->
+ <!--- Create the Mediator Distribution -->
+ <!-- ================================================================ -->
+
+ <goal name="dist-extensions" prereqs="jar,create-jar,javadocs">
+ <ant:echo>+----------------------------------------------</ant:echo>
+ <ant:echo>| Creating: Synapse Extensions Distribution</ant:echo>
+ <ant:echo>+----------------------------------------------</ant:echo>
+ <!-- todo fill up the distribution-->
+ <ant:mkdir dir="target/temp/"/>
+
+ <ant:copy todir="${extensions.dist.dir}/extensions" flatten="false">
+ <ant:fileset dir="modules/extensions/target/extensions"/>
+ </ant:copy>
+
+ <ant:copy todir="target/temp/">
+ <ant:fileset dir="target/dist-extensions/">
+ <include name="**"/>
+ </ant:fileset>
+ </ant:copy>
+
+
+ <ant:zip file="${dist.dir}/Extensions-Synapse-${pom.currentVersion}-bin.zip"
+ basedir="target/temp"/>
+
+ <ant:delete dir="target/temp"/>
+ <ant:delete dir="target/dist-extensions"/>
+
+ </goal>
+</project>
+
Added: incubator/synapse/trunk/scratch/synase-multimodules/modules/core/conf/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/modules/core/conf/log4j.properties?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/modules/core/conf/log4j.properties (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/modules/core/conf/log4j.properties Tue Feb 14 23:11:24 2006
@@ -0,0 +1,24 @@
+log4j.rootCategory=ERROR,logfile,stdout
+
+# Set the level to DEBUG if you want to log all SlideExceptions (some of them aren't errors)
+#log4j.category.org.apache.axis2=INFO
+#log4j.category.org.apache.synapse=DEBUG
+
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+log4j.appender.stdout.layout.ConversionPattern=[%t] %-5p %-20c{2} - %m %n
+
+#### appender writes to a file
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=synapse.log
+
+
+# Control the maximum log file size
+log4j.appender.logfile.MaxFileSize=1000KB
+# Archive log files (one backup file here)
+log4j.appender.logfile.MaxBackupIndex=10
+
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%6r %5p [%t] (%F:%L) - %m%n
\ No newline at end of file
Added: incubator/synapse/trunk/scratch/synase-multimodules/modules/core/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/modules/core/maven.xml?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/modules/core/maven.xml (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/modules/core/maven.xml Tue Feb 14 23:11:24 2006
@@ -0,0 +1,224 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
+
+<project default="jar"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util"
+ xmlns:maven="jelly:maven"
+ xmlns:deploy="deploy"
+ xmlns:ant="jelly:ant">
+ <postGoal name="test:compile">
+ <mkdir dir="target/repository"/>
+ <ant:copy todir="target/repository">
+ <ant:fileset dir="../../repository">
+ <ant:include name="**"/>
+ </ant:fileset>
+ </ant:copy>
+ <attainGoal name="synapse_core"/>
+ </postGoal>
+ <goal name="synapse_core">
+ <j:set var="class_test.dir" value="target/test-classes"/>
+ <!--<mkdir dir="target/lib"/>-->
+ <!--<deploy:copy-deps todir="target/lib"/>-->
+
+ <echo message="----------------Creating First Dispatching aar----------------"/>
+ <mkdir dir="target/services/synapse/META-INF"/>
+ <copy file="test-resources/axis2/services/synapse/META-INF/services.xml"
+ tofile="target/services/synapse/META-INF/services.xml"/>
+ <jar jarfile="target/synapse.aar"
+ basedir="target/services/synapse">
+ <include name="**"/>
+ </jar>
+ <echo message="----------------Creating Empty Mediator aar----------------"/>
+ <mkdir dir="target/services/emptymediator/META-INF"/>
+ <copy file="test-resources/axis2/services/emptymediator/META-INF/services.xml"
+ tofile="target/services/emptymediator/META-INF/services.xml"/>
+ <jar jarfile="target/emptymediator.aar"
+ basedir="target/services/emptymediator">
+ <include name="**"/>
+ </jar>
+
+
+ <echo message="----------------Creating NPE aar----------------"/>
+ <mkdir dir="target/services/npe/META-INF"/>
+ <mkdir dir="target/services/npe/org/apache/axis2/test"/>
+ <copy file="test-resources/org/apache/axis2/META-INF/services.xml"
+ tofile="target/services/npe/META-INF/services.xml"/>
+ <copy file="target/test-classes/org/apache/axis2/test/Echo.class"
+ tofile="target/services/npe/org/apache/axis2/test/Echo.class"/>
+ <jar jarfile="target/npe.aar"
+ basedir="target/services/npe">
+ <include name="**"/>
+ </jar>
+ <echo message="----------------Creating test-mediator aar----------------"/>
+ <mkdir dir="target/services/test-mediator/META-INF"/>
+ <mkdir dir="target/services/test-mediator/org/apache/axis2/test"/>
+ <copy file="test-resources/org/apache/axis2/META-INF/service-mediator.xml"
+ tofile="target/services/test-mediator/META-INF/services.xml"/>
+ <copy file="target/test-classes/org/apache/axis2/test/TestMediator.class"
+ tofile="target/services/test-mediator/org/apache/axis2/test/TestMediator.class"/>
+ <jar jarfile="target/test-mediator.aar"
+ basedir="target/services/test-mediator">
+ <include name="**"/>
+ </jar>
+
+ <echo message="----------------Creating EnvironmentAware-Mediator aar----------------"/>
+ <mkdir dir="target/services/environmentaware-mediator/META-INF"/>
+ <mkdir dir="target/services/environmentaware-mediator/org/apache/axis2/test"/>
+ <copy file="test-resources/org/apache/axis2/META-INF/environmentaware-service.xml"
+ tofile="target/services/environmentaware-mediator/META-INF/services.xml"/>
+ <copy file="target/test-classes/org/apache/axis2/test/EnvironmentAwareMediator.class"
+ tofile="target/services/environmentaware-mediator/org/apache/axis2/test/EnvironmentAwareMediator.class"/>
+ <jar jarfile="target/environmentaware-mediator.aar"
+ basedir="target/services/environmentaware-mediator">
+ <include name="**"/>
+ </jar>
+
+ <echo message="-----------Creating Testing Repository - SendOn ----------"/>
+ <mkdir dir="target/synapse-repository-sendon"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-sendon/services/synapse.aar"/>
+ <copy file="target/npe.aar"
+ tofile="target/synapse-repository-sendon/services/npe.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-sendon/services/emptymediator.aar"/>
+ <mkdir dir="target/synapse-repository-sendon/modules"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-sendon/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-sendon/axis2.xml"/>
+ <copy file="test/rules/synapse-sendon.xml"
+ tofile="target/synapse-repository-sendon/synapse.xml"/>
+
+
+ <echo message="-----------Creating Testing Repository - SendNow ----------"/>
+ <mkdir dir="target/synapse-repository-sendnow"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-sendnow/services/synapse.aar"/>
+ <copy file="target/npe.aar"
+ tofile="target/synapse-repository-sendnow/services/npe.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-sendnow/services/emptymediator.aar"/>
+ <mkdir dir="target/synapse-repository-sendnow/modules"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-sendnow/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-sendnow/axis2.xml"/>
+ <copy file="test/rules/synapse-sendnow.xml"
+ tofile="target/synapse-repository-sendnow/synapse.xml"/>
+
+ <echo message="-----------Creating Testing Repository - SendOnAxis2 ----------"/>
+ <mkdir dir="target/synapse-repository-sendonAxis2"/>
+
+ <copy file="target/npe.aar"
+ tofile="target/synapse-repository-sendonAxis2/services/npe.aar"/>
+ <copy file="target/test-mediator.aar"
+ tofile="target/synapse-repository-sendonAxis2/services/test-mediator.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-sendonAxis2/services/emptymediator.aar"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-sendonAxis2/modules/addressing-0.94.mar"/>
+ <copy file="test-resources/axis2/axis2.xml"
+ tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
+
+ <echo message="-----------Creating Testing Repository - SendonAxis2Tcp ----------"/>
+ <mkdir dir="target/synapse-repository-sendonAxis2"/>
+
+ <copy file="target/npe.aar"
+ tofile="target/synapse-repository-sendonAxis2Tcp/services/npe.aar"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-sendonAxis2Tcp/modules/addressing-0.94.mar"/>
+ <copy file="test-resources/axis2/axis2.xml"
+ tofile="target/synapse-repository-sendonAxis2Tcp/axis2.xml"/>
+
+ <echo message="-----------Creating Testing Repository - HttpTcp ----------"/>
+ <mkdir dir="target/synapse-repository-httptcp"/>
+
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-httptcp/services/emptymediator.aar"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-httptcp/services/synapse.aar"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-httptcp/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-httptcp/axis2.xml"/>
+ <copy file="test/rules/synapse-httptcp.xml"
+ tofile="target/synapse-repository-httptcp/synapse.xml"/>
+
+ <echo message="-----------Creating Testing Repository - EnvironmentAware ----------"/>
+ <mkdir dir="target/synapse-repository-environmentaware"/>
+
+ <copy file="target/environmentaware-mediator.aar"
+ tofile="target/synapse-repository-environmentaware/services/environmentaware-mediator.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-sendon/services/emptymediator.aar"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-environmentaware/services/synapse.aar"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-environmentaware/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-environmentaware/axis2.xml"/>
+ <copy file="test/rules/synapse-environmentaware.xml"
+ tofile="target/synapse-repository-environmentaware/synapse.xml"/>
+
+ <ant:delete file="target/npe.aar"/>
+ <ant:delete file="target/test-mediator.aar"/>
+ <ant:delete dir="target/test-mediator"/>
+ <ant:delete dir="target/environmentaware-mediator.aar"/>
+ <ant:delete dir="target/environmentaware-mediator"/>
+
+
+ <echo message="-----------Creating Testing Repository - Genral----------"/>
+ <mkdir dir="target/synapse-repository"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository/services/synapse.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository/services/emptymediator.aar"/>
+ <mkdir dir="target/synapse-repository/modules"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository/axis2.xml"/>
+ <copy file="../../repository/synapse.xml"
+ tofile="target/synapse-repository/synapse.xml"/>
+
+ <echo message="-----------Creating Testing Repository - Fault Handling ----------"/>
+ <mkdir dir="target/synapse-repository-fault"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-fault/services/synapse.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-fault/services/emptymediator.aar"/>
+ <mkdir dir="target/synapse-repository-fault/modules"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-fault/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-fault/axis2.xml"/>
+ <copy file="test/rules/synapse-fault-return.xml"
+ tofile="target/synapse-repository-fault/synapse.xml"/>
+
+ <echo message="-----------Creating Testing Repository - Send ----------"/>
+ <mkdir dir="target/synapse-repository-send"/>
+ <copy file="target/synapse.aar"
+ tofile="target/synapse-repository-send/services/synapse.aar"/>
+ <copy file="target/emptymediator.aar"
+ tofile="target/synapse-repository-send/services/emptymediator.aar"/>
+ <mkdir dir="target/synapse-repository-send/modules"/>
+ <copy file="../../repository/modules/addressing-0.94.mar"
+ tofile="target/synapse-repository-send/modules/addressing-0.94.mar"/>
+ <copy file="../../repository/axis2.xml"
+ tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
+ <copy file="test/rules/synapse-send.xml"
+ tofile="target/synapse-repository-send/synapse.xml"/>
+
+ <ant:delete dir="target/modules"/>
+ <ant:delete dir="target/services"/>
+ <ant:delete file="target/emptymediator.aar"/>
+ <ant:delete file="target/synapse.aar"/>
+ <ant:delete file="target/environmentaware-mediator.aar"/>
+
+ <ant:path id="classes_test.dir" location="${class_test.dir}"/>
+ <maven:addPath id="maven.dependency.classpath" refid="classes_test.dir"/>
+ </goal>
+
+</project>
Added: incubator/synapse/trunk/scratch/synase-multimodules/modules/core/project.properties
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/synase-multimodules/modules/core/project.properties?rev=377953&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/synase-multimodules/modules/core/project.properties (added)
+++ incubator/synapse/trunk/scratch/synase-multimodules/modules/core/project.properties Tue Feb 14 23:11:24 2006
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------------
+# 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.multiproject.type=jar
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org