Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r3293 - trunk/geant2_java-rrd-ma/ant

Subject: perfsonar development work

List archive

perfsonar: r3293 - trunk/geant2_java-rrd-ma/ant


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r3293 - trunk/geant2_java-rrd-ma/ant
  • Date: Fri, 1 Feb 2008 09:22:59 -0500

Author: roman
Date: 2008-02-01 09:22:57 -0500 (Fri, 01 Feb 2008)
New Revision: 3293

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

New Ant target to create war file of rrd ma service.

Default settings are prepared for Tomcat in /home/prefsonar/tomcat directory.




Modified: trunk/geant2_java-rrd-ma/ant/axis-deploy-targets.xml
===================================================================
--- trunk/geant2_java-rrd-ma/ant/axis-deploy-targets.xml 2008-02-01
12:07:36 UTC (rev 3292)
+++ trunk/geant2_java-rrd-ma/ant/axis-deploy-targets.xml 2008-02-01
14:22:57 UTC (rev 3293)
@@ -289,4 +289,88 @@
</target>


+ <target name="war-create"
+ xmlns:psbase="psbase:/base.perfsonar.org">
+
+ <property name="tmpdir" value="tmp" />
+
+ <delete dir="${tmpdir}"/>
+ <mkdir dir="${tmpdir}"/>
+
+
+ <copy file="${basedir}/${build}/${jarfilename}-${version}.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+
+ <!-- this will be taken to the base ant stuff-->
+ <copy
file="${basedir}/lib/repository/commons-io/commons-io/1.2/commons-io-1.2.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+ <copy
file="${basedir}/lib/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+ <copy
file="${basedir}/lib/repository/commons-fileupload/commons-fileupload/1.2/commons-fileupload-1.2.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+ <copy
file="${basedir}/lib/repository/perfsonar/perfsonar-web-admin/0.5b/perfsonar-web-admin-0.5b.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+
+ <copy file="${basedir}/conf/axis-1.4/main.css"
todir="${tmpdir}"/>
+ <copy file="${basedir}/conf/axis-1.4/default.css"
todir="${tmpdir}"/>
+ <copy file="${basedir}/conf/axis-1.4/perfsonar_logo.gif"
todir="${tmpdir}"/>
+ <copy file="${basedir}/conf/axis-1.4/partners.gif"
todir="${tmpdir}"/>
+
+ <copy file="${basedir}/conf/servlet.properties"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>
+ <copy file="${basedir}/conf/wizard.properties"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>
+ <copy file="${basedir}/conf/wizardproperties.dtd"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>
+ <!-- end of this base section -->
+
+
+ <copy
file="${basedir}/lib/repository/nmwg/nmwg/1.0.20071008/nmwg-1.0.20071008.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+ <copy
file="${basedir}/lib/repository/perfsonar/perfsonar-base/1.0.20080131/perfsonar-base-1.0.20080131.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+
+ <copy
file="${basedir}/lib/repository/rrdjtool/rrdjtool/1.0/rrdjtool-1.0.jar"
todir="${tmpdir}/WEB-INF/lib"/>
+
+ <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"/>
+
+ <replace file="${service.ma.conf_file}"
+ token="__BASEPATH__"
+ value="/home/perfsonar"/>
+
+ <copy file="${service.ma.conf_file}"
todir="${tmpdir}/WEB-INF/classes/perfsonar/conf"/>
+
+ <copy file="${basedir}/conf/wsdd/${wsdd.file.deploy}"
todir="${tmpdir}/wsdd"/>
+ <copy file="${basedir}/conf/wsdd/${wsdd.file.undeploy}"
todir="${tmpdir}/wsdd"/>
+
+ <psbase:copy-dep-base-service-jars dest-jars-path="${tmpdir}"/>
+ <psbase:copy-axis-config dest-conf-path="${tmpdir}"/>
+
+ <copy file="${basedir}/conf/axis-1.4/WEB-INF/server-config.wsdd"
todir="${tmpdir}/WEB-INF"/>
+
+ <copy file="${basedir}/conf/service.properties.template"
tofile="${tmpdir}/WEB-INF/classes/perfsonar/conf/service.properties"
overwrite="true"/>
+ <copy file="${basedir}/conf/log4j.properties.template"
tofile="${tmpdir}/WEB-INF/classes/perfsonar/conf/log4j.properties"
overwrite="true"/>
+
+ <replace file="${tmpdir}/WEB-INF/classes/perfsonar/conf/log4j.properties"
+ token="_LOGPATH_"
+
value="/home/perfsonar/tomcat/webapps/${service.name}-${version}/WEB-INF/logs"/>
+
+ <echo file="${tmpdir}/WEB-INF/classes/perfsonar/conf/service.properties"
+
message="service.sax_parser.config=/home/perfsonar/tomcat/webapps/${service.name}-${version}/WEB-INF/classes/perfsonar/conf/objects.config${line.separator}"
+ append="true" />
+
+ <echo file="${tmpdir}/WEB-INF/classes/perfsonar/conf/service.properties"
+
message="service.ma.conf_file=/home/perfsonar/tomcat/webapps/${service.name}-${version}/WEB-INF/classes/perfsonar/conf/rrd-database_TEST.xml${line.separator}"
+ append="true" />
+
+ <echo file="${tmpdir}/WEB-INF/classes/perfsonar/conf/service.properties"
+
message="service.log.log4j.config=/home/perfsonar/tomcat/webapps/${service.name}-${version}/WEB-INF/classes/perfsonar/conf/log4j.properties"
+ append="true" />
+
+
+ <mkdir dir="${tmpdir}/WEB-INF/logs"/>
+
+ <!-- make the war file -->
+
+ <zip destfile="${service.name}-${version}.war"
+ basedir="${tmpdir}/"
+ excludes=".svn/**" />
+
+ <delete dir="${tmpdir}"/>
+
+ </target>
+
+
+
</project>
\ No newline at end of file



  • perfsonar: r3293 - trunk/geant2_java-rrd-ma/ant, svnlog, 02/01/2008

Archive powered by MHonArc 2.6.16.

Top of Page