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/16 16:42:47 UTC

svn commit: r378283 - in /incubator/synapse/trunk/java: ./ modules/core/conf/ modules/core/src/org/ modules/mediators/ modules/mediators/scripts/ modules/mediators/src/ modules/mediators/test-resources/ modules/mediators/test/ src/org/

Author: saminda
Date: Thu Feb 16 07:42:45 2006
New Revision: 378283

URL: http://svn.apache.org/viewcvs?rev=378283&view=rev
Log:
mediators module filling. 

Added:
    incubator/synapse/trunk/java/modules/core/conf/
    incubator/synapse/trunk/java/modules/core/conf/log4j.properties
      - copied unchanged from r378279, incubator/synapse/trunk/java/log4j.properties
    incubator/synapse/trunk/java/modules/core/src/org/
      - copied from r378279, incubator/synapse/trunk/java/src/org/
    incubator/synapse/trunk/java/modules/mediators/maven.xml
    incubator/synapse/trunk/java/modules/mediators/project.xml
    incubator/synapse/trunk/java/modules/mediators/scripts/
    incubator/synapse/trunk/java/modules/mediators/src/
    incubator/synapse/trunk/java/modules/mediators/test/
    incubator/synapse/trunk/java/modules/mediators/test-resources/
Removed:
    incubator/synapse/trunk/java/log4j.properties
    incubator/synapse/trunk/java/src/org/

Added: incubator/synapse/trunk/java/modules/mediators/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/modules/mediators/maven.xml?rev=378283&view=auto
==============================================================================
--- incubator/synapse/trunk/java/modules/mediators/maven.xml (added)
+++ incubator/synapse/trunk/java/modules/mediators/maven.xml Thu Feb 16 07:42:45 2006
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="jar"
+         xmlns:j="jelly:core"
+         xmlns:u="jelly:util"
+         xmlns:deploy="deploy"
+         xmlns:ant="jelly:ant"
+         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="mediators.dir" value="target/mediators"/>
+
+    <postGoal name="test:test">
+        <j:if test="${context.getVariable('maven.test.skip') != 'true'}">
+            <attainGoal name="toDistBin"/>
+        </j:if>
+    </postGoal>
+
+
+    <goal name="mediators">
+        <mkdir dir="target/mediators"/>
+        <echo message="----------------Creating DeprecationMediator aar----------------"/>
+        <mkdir dir="target/deprecation/META-INF"/>
+        <copy file="src/org/apache/synapse/mediators/deprecation/META-INF/services.xml"
+              tofile="target/deprecation/META-INF/services.xml"/>
+        <copy file="src/org/apache/synapse/mediators/deprecation/META-INF/deprecation.xml"
+              tofile="target/deprecation/META-INF/deprecation.xml"/>
+
+        <ant:copy todir="target/deprecation">
+            <ant:fileset dir="target/classes">
+                <ant:include name="**/deprecation/**"/>
+                <ant:exclude name="**/deprecation/**/*.xml"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <echo message="----------------Creating SLAMediator aar----------------"/>
+        <mkdir dir="target/sla/META-INF"/>
+        <copy file="src/org/apache/synapse/mediators/sla/META-INF/services.xml"
+              tofile="target/sla/META-INF/services.xml"/>
+        <copy file="src/org/apache/synapse/mediators/sla/META-INF/sla.xml"
+              tofile="target/sla/META-INF/sla.xml"/>
+
+        <ant:copy todir="target/sla">
+            <ant:fileset dir="target/classes">
+                <ant:include name="**/sla/**"/>
+                <ant:exclude name="**/sla/**/*.xml"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <mkdir dir="${mediators.dir}/deprecation"/>
+        <jar jarfile="target/mediators/deprecation/DeprecationMediator.aar"
+             basedir="target/deprecation">
+            <include name="**"/>
+        </jar>
+
+        <mkdir dir="${mediators.dir}/sla"/>
+        <jar jarfile="target/mediators/sla/SLAMediator.aar"
+             basedir="target/sla">
+            <include name="**"/>
+        </jar>
+
+        <mkdir dir="${mediators.dir}/deprecation/src"/>
+        <ant:copy todir="${mediators.dir}/deprecation/src">
+            <ant:fileset dir="src">
+                <ant:include name="org/apache/synapse/**/deprecation/**"/>
+            </ant:fileset>
+            <!-- To run the sample we include StockQuoteClient in the source path-->
+            <ant:fileset dir="../samples/src">
+                <ant:include name="samples/userguide/StockQuoteClient.java"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <mkdir dir="${mediators.dir}/sla/src"/>
+        <ant:copy todir="${mediators.dir}/sla/src">
+            <ant:fileset dir="src">
+                <ant:include name="org/apache/synapse/**/sla/**"/>
+            </ant:fileset>
+            <!-- To run the sample we include StockQuoteClient in the source path-->
+            <ant:fileset dir="../samples/src">
+                <ant:include name="samples/userguide/StockQuoteClient.java"/>
+            </ant:fileset>
+        </ant:copy>
+
+    </goal>
+
+    <goal name="toDistBin" prereqs="mediators">
+        <property name="bin.dist.dir"
+                  value="target/dist-bin"/>
+        <ant:mkdir dir="${bin.dist.dir}"/>
+        <ant:mkdir dir="${bin.dist.dir}/mediators"/>
+
+        <ant:copy file="scripts/deprecation_mediator/synapse.xml"
+                  tofile="${bin.dist.dir}/mediators/deprecation/synapse.xml"/>
+        <ant:copy file="scripts/deprecation_mediator/README.txt"
+                  tofile="${bin.dist.dir}/mediators/deprecation/README.txt"/>
+        <ant:copy file="scripts/deprecation_mediator/build.xml"
+                  tofile="${bin.dist.dir}/mediators/deprecation/build.xml"/>
+
+        <ant:copy file="scripts/sla_mediator/synapse.xml"
+                  tofile="${bin.dist.dir}/mediators/sla/synapse.xml"/>
+        <ant:copy file="scripts/sla_mediator/README.txt"
+                  tofile="${bin.dist.dir}/mediators/sla/README.txt"/>
+        <ant:copy file="scripts/sla_mediator/build.xml"
+                  tofile="${bin.dist.dir}/mediators/sla/build.xml"/>
+
+        <ant:copy todir="${bin.dist.dir}/mediators">
+            <ant:fileset dir="target/mediators/">
+                <include name="**"/>
+            </ant:fileset>
+        </ant:copy>
+
+        <ant:delete dir="target/mediators"/>
+        <ant:delete dir="target/deprecation"/>
+        <ant:delete dir="target/sla"/>
+    </goal>
+</project>

Added: incubator/synapse/trunk/java/modules/mediators/project.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/modules/mediators/project.xml?rev=378283&view=auto
==============================================================================
--- incubator/synapse/trunk/java/modules/mediators/project.xml (added)
+++ incubator/synapse/trunk/java/modules/mediators/project.xml Thu Feb 16 07:42:45 2006
@@ -0,0 +1,202 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+
+    <pomVersion>3</pomVersion>
+    <extend>../../etc/project.xml</extend>
+
+
+    <name>Apache Synapse - Mediators</name>
+    <id>synapse-mediators</id>
+    <groupId>synapse</groupId>
+
+    <!-- ============ -->
+    <!-- Dependencies -->
+    <!-- ============ -->
+
+    <dependencies>
+
+        <dependency>
+            <groupId>synapse</groupId>
+            <artifactId>synapse-core</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+
+
+
+        <!-- external JARs -->
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-core</artifactId>
+            <version>${axis2.version}</version>
+        </dependency>
+        
+        <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>
+        <nagEmailAddress>synapse-dev@ws.apache.org</nagEmailAddress>
+        <sourceDirectory>src</sourceDirectory>
+        <unitTestSourceDirectory>test</unitTestSourceDirectory>
+        <unitTest>
+            <includes>
+                <include>**/*Test.java</include>
+            </includes>
+            <!--<excludes>-->
+                <!--<exclude>**/*Test.java</exclude>-->
+            <!--</excludes>-->
+        </unitTest>
+        <!--b-->
+
+    </build>
+</project>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org