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 2005/11/25 14:11:20 UTC
svn commit: r348939 - in /incubator/synapse/trunk/scratch/prototype3:
maven.xml test/org/apache/synapse/util/Axis2EvnSetup.java
Author: saminda
Date: Fri Nov 25 05:11:12 2005
New Revision: 348939
URL: http://svn.apache.org/viewcvs?rev=348939&view=rev
Log:
1. Added maven.xml
2. Updated few classes
Added:
incubator/synapse/trunk/scratch/prototype3/maven.xml
Modified:
incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/util/Axis2EvnSetup.java
Added: incubator/synapse/trunk/scratch/prototype3/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/maven.xml?rev=348939&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/maven.xml (added)
+++ incubator/synapse/trunk/scratch/prototype3/maven.xml Fri Nov 25 05:11:12 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="jar"
+ xmlns:j="jelly:core"
+ xmlns:maven="jelly:maven"
+ xmlns:deploy="deploy"
+ xmlns:ant="jelly:ant">
+
+ <goal name="setclasspath">
+ <path id="test.classpath">
+ <path refid="maven.dependency.classpath"/>
+ </path>
+ </goal>
+
+ <postGoal name="test:compile">
+ <ant:mkdir dir="${basedir}/target/lib"/>
+ <deploy:copy-deps todir="${basedir}/target/lib"/>
+
+ <echo message="----------------Creating synapse.mar----------------"/>
+ <mkdir dir="target/modules/synapse/META-INF"/>
+ <copy file="src/org/apache/synapse/axis2/META-INF/module.xml"
+ tofile="target/modules/synapse/META-INF/module.xml"/>
+ <jar jarfile="target/synapse.mar"
+ basedir="target/modules/synapse">
+ <include name="**"/>
+ </jar>
+
+ <echo message="----------------Creating First Dispatching aar----------------"/>
+ <mkdir dir="target/services/synapse/META-INF"/>
+ <copy file="synapse-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="synapse-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 Testing Repositories----------"/>
+ <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="target/synapse.mar"
+ tofile="target/synapse-repository/modules/synapse.mar"/>
+ <copy file="synapse-test-resources/axis2/modules/addressing.mar"
+ tofile="target/synapse-repository/modules/addressing.mar"/>
+ <copy file="synapse-test-resources/axis2/axis2.xml"
+ tofile="target/synapse-repository/axis2.xml"/>
+
+ </postGoal>
+
+</project>
Modified: incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/util/Axis2EvnSetup.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/util/Axis2EvnSetup.java?rev=348939&r1=348938&r2=348939&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/util/Axis2EvnSetup.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/test/org/apache/synapse/util/Axis2EvnSetup.java Fri Nov 25 05:11:12 2005
@@ -40,9 +40,8 @@
public class Axis2EvnSetup {
public static MessageContext axis2Deployment() throws AxisFault {
ConfigurationContextFactory conFac = new ConfigurationContextFactory();
-// File path = new File("test-resources/axis2");
ConfigurationContext configCtx = conFac
- .buildClientConfigurationContext("synpase-test-resources/axis2");
+ .buildClientConfigurationContext("target/synapse-repository");
MessageContext msgCtx = new MessageContext(configCtx);
msgCtx.setEnvelope(testEnvSetup());
msgCtx.setServerSide(true);
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org