stevel 2003/08/15 12:06:36
Modified: java/xmls properties.xml Added: java/xmls deploy_jboss_local.xml Log: Jboss deployment Revision Changes Path 1.46 +2 -0 xml-axis/java/xmls/properties.xml Index: properties.xml =================================================================== RCS file: /home/cvs/xml-axis/java/xmls/properties.xml,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- properties.xml 18 Jul 2003 12:40:41 -0000 1.45 +++ properties.xml 15 Aug 2003 19:06:36 -0000 1.46 @@ -74,6 +74,8 @@ <property name="build.samples" location="${build.dir}/classes/samples"/> <property name="build.javadocs" location="${build.dir}/javadocs"/> <property name="build.webapp" location="${build.dir}/webapps/axis"/> +<property name="axis.war.filename" value="axis.war"/> +<property name="axis.war" location="${build.dir}/${axis.war.filename}"/> <property name="webapp" location="${axis.home}/webapps/axis" /> <property name="dist.dir" location="${axis.home}/axis-${axis.dirname}" /> 1.1 xml-axis/java/xmls/deploy_jboss_local.xml Index: deploy_jboss_local.xml =================================================================== <?xml version="1.0"?> <!DOCTYPE project [ <!ENTITY properties SYSTEM "file:properties.xml"> <!ENTITY paths SYSTEM "file:path_refs.xml"> <!ENTITY taskdefs SYSTEM "file:taskdefs.xml"> <!ENTITY taskdefs_post_compile SYSTEM "xmls/taskdefs_post_compile.xml"> ]> <project name="deploy" default="default" basedir="."> <description> This build file deploys axis to a local version of JBoss. It does not attempt to integrate with JBoss.NET, whose versions of Axis will clash witha new build. Read http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/JBoss before continuing. </description> <property name="axis.home" location=".." /> &properties; &paths; <!-- init the deploy by probing for catalina --> <target name="init"> <fail unless="env.JBOSS_HOME"> JBoss not found; please set JBOSS_HOME to point to it </fail> <property name="deploy.dir" location="${env.JBOSS_HOME}/server/default/deploy"/> </target> <!-- deployment target --> <target name="deploy" depends="init" description="deploy to jboss"> <available file="${axis.war}" property="webapp.found"/> <fail unless="webapp.found">Could not find ${build.webapp.war}; please run "ant war" to build it</fail> <!-- webapp goes over as the WAR; jboss will pick it up and expand it Overwriting is used to force install this over anything newer. Why so? So that even if this script and WAR were on a CD that ops wanted to use to restore a system, the copy has to go through --> <copy todir="${deploy.dir}" file="${axis.war}" overwrite="true"/> <!-- be helpful --> <echo message="Axis deployed"/> </target> <target name="default" depends="deploy" /> <!-- Question: what does JBoss do when a war is deleted? --> <target name="clean" depends="init" description="clean deployment"> <delete file="${deploy.dir}/${axis.war.filename}"/> </target> </project>