perfsonar-dev - r1682 - in trunk/perfsonar/ant: . tcmp
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: r1682 - in trunk/perfsonar/ant: . tcmp
- Date: Mon, 16 Oct 2006 11:26:51 -0400
Author: uros
Date: 2006-10-16 11:26:50 -0400 (Mon, 16 Oct 2006)
New Revision: 1682
Added:
trunk/perfsonar/ant/add-context-listener.xsl
trunk/perfsonar/ant/rem-context-listener.xsl
Modified:
trunk/perfsonar/ant/axis-deploy-targets.xml
trunk/perfsonar/ant/tcmp/tcmp-axis-deploy-targets.xml
Log:
Two XSL rules added used for adding/removing <listener> rules to/from
AXIS web.xml file located in WEB-INF of axis deployment dir.
Added rules to axis-deploy-targets.xml for calling add/rem <listener>
transformation.
Added: trunk/perfsonar/ant/add-context-listener.xsl
Modified: trunk/perfsonar/ant/axis-deploy-targets.xml
===================================================================
--- trunk/perfsonar/ant/axis-deploy-targets.xml 2006-10-13 08:18:03 UTC (rev
1681)
+++ trunk/perfsonar/ant/axis-deploy-targets.xml 2006-10-16 15:26:50 UTC (rev
1682)
@@ -20,6 +20,7 @@
<property name="adminService"
value="http://${target.server}:${target.port}/axis/services/AdminService" />
<property name="deployFile"
value="../${build}/${wsdd.path}/${wsdd.file.deploy}" />
<property name="undeployFile"
value="../${build}/${wsdd.path}/${wsdd.file.undeploy}" />
+ <property name="axisWebXml" value="${axis.home}/WEB-INF/web.xml" />
@@ -79,7 +80,29 @@
<copy file="${build}/perfSONAR-generic.jar"
todir="${axis.home}/WEB-INF/lib"/>
</target>
+
+ <!-- Add service (un)initialization context listener class to AXIS
web.xml -->
+ <target name="add-context-listener">
+
+ <copy file="${axisWebXml}" tofile="${axisWebXml}.bak"
overwrite="yes" />
+
+ <style in="${axisWebXml}" out="${axisWebXml}.out"
style="ant/add-context-listener.xsl" />
+
+ <copy file="${axisWebXml}.out" tofile="${axisWebXml}"
overwrite="yes" />
+
+
+ </target>
+ <!-- Remove service (un)initialization context listener class from AXIS
web.xml -->
+ <target name="rem-context-listener">
+
+ <copy file="${axisWebXml}" tofile="${axisWebXml}.bak"
overwrite="yes" />
+
+ <style in="${axisWebXml}" out="${axisWebXml}.out"
style="ant/rem-context-listener.xsl" />
+
+ <copy file="${axisWebXml}.out" tofile="${axisWebXml}"
overwrite="yes" />
+
+ </target>
+
-
</project>
\ No newline at end of file
Added: trunk/perfsonar/ant/rem-context-listener.xsl
Modified: trunk/perfsonar/ant/tcmp/tcmp-axis-deploy-targets.xml
===================================================================
--- trunk/perfsonar/ant/tcmp/tcmp-axis-deploy-targets.xml 2006-10-13
08:18:03 UTC (rev 1681)
+++ trunk/perfsonar/ant/tcmp/tcmp-axis-deploy-targets.xml 2006-10-16
15:26:50 UTC (rev 1682)
@@ -75,7 +75,7 @@
</target>
- <target name="deploy-tcmp" depends="copy-tcmp-jar"
+ <target name="deploy-tcmp" depends="copy-tcmp-jar, add-context-listener"
description="Deploys TC MP service">
<java classname="org.apache.axis.client.AdminClient">
<arg line="-l ${adminService} "${deployFile}""/>
@@ -92,6 +92,7 @@
<classpath refid="classpath"/>
</java>
+ <antcall target="rem-context-listener" />
<antcall target="delete-jars-for-tcmp"/>
<delete file="${axis.home}/WEB-INF/lib/perfSONAR-generic.jar"/>
- r1682 - in trunk/perfsonar/ant: . tcmp, svnlog, 10/16/2006
- Re: [pS-dev] r1682 - in trunk/perfsonar/ant: . tcmp, Roman Lapacz, 10/17/2006
- Re: [pS-dev] r1682 - in trunk/perfsonar/ant: . tcmp, Uros Juvan, 10/17/2006
- Re: [pS-dev] r1682 - in trunk/perfsonar/ant: . tcmp, Roman Lapacz, 10/17/2006
Archive powered by MHonArc 2.6.16.