Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3402 - trunk/geant2_java-sql-ma/ant

Subject: perfsonar development work

List archive

perfsonar: r3402 - trunk/geant2_java-sql-ma/ant


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3402 - trunk/geant2_java-sql-ma/ant
  • Date: Mon, 25 Feb 2008 11:17:41 -0500

Author: roman
Date: 2008-02-25 11:17:40 -0500 (Mon, 25 Feb 2008)
New Revision: 3402

Modified:
trunk/geant2_java-sql-ma/ant/axis-deploy-targets.xml
Log:

creatng webapp directory updated



Modified: trunk/geant2_java-sql-ma/ant/axis-deploy-targets.xml
===================================================================
--- trunk/geant2_java-sql-ma/ant/axis-deploy-targets.xml 2008-02-25
15:12:57 UTC (rev 3401)
+++ trunk/geant2_java-sql-ma/ant/axis-deploy-targets.xml 2008-02-25
16:17:40 UTC (rev 3402)
@@ -227,6 +227,87 @@

<property name="tmpdir" value="tmp" />

+ <property name="db.driver" value="com.mysql.jdbc.Driver" />
+ <property name="db.url"
value="jdbc:mysql://127.0.0.1/perfsonar_ma" />
+ <property name="db.username" value="perfsonar_ma" />
+ <property name="db.userpassword" value="testpass" />
+
+
+ <target name="ibatis-files-prepare">
+
+ <!-- utilization -->
+ <copy file="${basedir}/conf/ibatis-utilization.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy
file="${basedir}/conf/ibatis-SqlMapConfig-utilization.template.xml"
tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-utilization.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-utilization.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-utilization.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-utilization.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-utilization.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+
+ <!-- errors -->
+ <copy file="${basedir}/conf/ibatis-errors.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy file="${basedir}/conf/ibatis-SqlMapConfig-errors.template.xml"

tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-errors.xml"/>
+ <replace file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-errors.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-errors.xml"
token="_URL_" value="${db.url}"/>
+ <replace file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-errors.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-errors.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+
+ <!-- discards -->
+ <copy file="${basedir}/conf/ibatis-discards.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy file="${basedir}/conf/ibatis-SqlMapConfig-discards.template.xml"

tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-discards.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-discards.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-discards.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-discards.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-discards.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+
+ <!-- L2-status-domain -->
+ <copy file="${basedir}/conf/ibatis-L2-status-domain.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy
file="${basedir}/conf/ibatis-SqlMapConfig-L2-status-domain.template.xml"

tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-domain.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-domain.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+
+ <!-- L2-status-interdomain -->
+ <copy file="${basedir}/conf/ibatis-L2-status-interdomain.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy
file="${basedir}/conf/ibatis-SqlMapConfig-L2-status-interdomain.template.xml"

tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-interdomain.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-interdomain.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-interdomain.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-interdomain.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-L2-status-interdomain.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+
+ <!-- clmp-bwctl -->
+ <!--
+ <copy file="${basedir}/conf/ibatis-clmp-bwctl.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy file="${basedir}/conf/ibatis-SqlMapConfig-clmp-bwctl.template.xml"
tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-bwctl.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-bwctl.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-bwctl.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-bwctl.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-bwctl.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+ -->
+
+ <!-- clmp-owamp -->
+ <!--
+ <copy file="${basedir}/conf/ibatis-clmp-owamp.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy file="${basedir}/conf/ibatis-SqlMapConfig-clmp-owamp.template.xml"
tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-owamp.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-owamp.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-owamp.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-owamp.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-owamp.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+ -->
+
+ <!-- clmp-ping -->
+ <!--
+ <copy file="${basedir}/conf/ibatis-clmp-ping.xml"
todir="${tmpdir}/WEB-INF/classes"/>
+ <copy file="${basedir}/conf/ibatis-SqlMapConfig-clmp-ping.template.xml"
tofile="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-ping.xml"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-ping.xml"
token="_DRIVER_" value="${db.driver}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-ping.xml"
token="_URL_" value="${db.url}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-ping.xml"
token="_USERNAME_" value="${db.username}"/>
+ <replace
file="${tmpdir}/WEB-INF/classes/ibatis-SqlMapConfig-clmp-ping.xml"
token="_PASSWORD_" value="${db.userpassword}"/>
+ -->
+
+ </target>
+
+
<target name="webapp-directory-prepare"
xmlns:psbase="psbase:/base.perfsonar.org">

@@ -251,12 +332,6 @@
<copy
file="${basedir}/lib/repository/mysql/mysql-connector-java/5.0.3/mysql-connector-java-5.0.3.jar"
todir="${tmpdir}/WEB-INF/lib"/>
<copy
file="${basedir}/lib/repository/postgresql/postgresql/8.1-407.jdbc3/postgresql-8.1-407.jdbc3.jar"
todir="${tmpdir}/WEB-INF/lib"/>

- <copy todir="${tmpdir}/WEB-INF/classes">
- <fileset dir="${basedir}/conf">
- <include name="ibatis-*.xml"/>
- </fileset>
- </copy>
-
<copy file="${basedir}/conf/eventType-map.xml"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>
<copy file="${basedir}/conf/eventType-rules.xml"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>

@@ -305,6 +380,8 @@

<mkdir dir="${tmpdir}/WEB-INF/logs"/>

+ <antcall target="ibatis-files-prepare"/>
+
</target>





  • perfsonar: r3402 - trunk/geant2_java-sql-ma/ant, svnlog, 02/25/2008

Archive powered by MHonArc 2.6.16.

Top of Page