Revision 1814
Added by Jing Tao about 21 years ago
build.xml | ||
---|---|---|
77 | 77 |
<property name="tomcat" value="/usr/local/devtools/jakarta-tomcat" /> |
78 | 78 |
<property name="webapps" value="/usr/local/devtools/jakarta-tomcat/webapps" /> |
79 | 79 |
<property name="context" value="tao" /> |
80 |
<property name="user" value="knb"/> |
|
81 |
|
|
80 |
<property name="user" value="tao"/> |
|
82 | 81 |
<property name="password" value="tdataint"/> |
82 |
|
|
83 |
<!-- usr for client testing, generally you don't need change--> |
|
83 | 84 |
<property name="mcuser" value="uid=tao,o=NCEAS,dc=ecoinformatics,dc=org"/> |
84 | 85 |
<property name="mcpassword" value=""/> |
85 | 86 |
<property name="mcanotheruser" value="uid=jtao,o=LTER,dc=ecoinformatics,dc=org"/> |
... | ... | |
661 | 662 |
|
662 | 663 |
|
663 | 664 |
<target name="compileinterface" depends="clean,prepare"> |
664 |
<javac srcdir="${build.src}" destdir="${build.dest}" includes="**/${interface.name}.java" />
|
|
665 |
<javac srcdir="${build.src}" destdir="${build.src}" includes="**/${interface.name}.java" />
|
|
665 | 666 |
</target> |
666 | 667 |
|
667 | 668 |
<target name="generateWSDL" depends="compileinterface"> |
668 | 669 |
<echo message="Generating wsdl from ${interface.name} interface"/> |
669 | 670 |
<java classname="${java2wsdl.tool}" |
670 |
dir="${build.dir}" fork="yes"
|
|
671 |
dir="${build.src}" fork="yes"
|
|
671 | 672 |
classpathref="webservicepath" failonerror="true" > |
672 | 673 |
<arg value="-P"/> |
673 | 674 |
<arg value="${interface.name}PortType"/> |
... | ... | |
687 | 688 |
|
688 | 689 |
<target name="decorateWSDL" depends="generateWSDL"> |
689 | 690 |
<property name="wsdl.file" value="${interface.name}Service.wsdl"/> |
690 |
<java classname="${wsdldecorator.tool}" dir="${build.dir}"
|
|
691 |
<java classname="${wsdldecorator.tool}" dir="${build.src}"
|
|
691 | 692 |
fork="yes" |
692 | 693 |
classpathref="webservicepath" failonerror="true" > |
693 | 694 |
<arg value="${binding.file}"/> |
... | ... | |
697 | 698 |
|
698 | 699 |
<target name="generatestubs" depends="decorateWSDL"> |
699 | 700 |
<echo message=" Generating stubs " /> |
701 |
<echo message="wsdl file is ${wsdl.file}"/> |
|
702 |
<echo message="build.src is ${build.src}"/> |
|
700 | 703 |
<java classname="${wsdl.tool}" dir="${build.src}" fork="yes" |
701 | 704 |
classpathref="webservicepath" failonerror="true" > |
702 |
<arg value="../${wsdl.file}"/>
|
|
705 |
<arg value="${wsdl.file}"/> |
|
703 | 706 |
</java> |
704 | 707 |
</target> |
705 | 708 |
|
... | ... | |
723 | 726 |
<mkdir dir="${build.dir}/gar/schema/edu"/> |
724 | 727 |
<copy file="${build.dir}/${interface.name}.jar" todir="${build.dir}/gar" /> |
725 | 728 |
<copy file="${build.dir}/${interface.name}-stubs.jar" todir="${build.dir}/gar" /> |
726 |
<copy file="server-deploy.wsdd" todir="${build.dir}/gar" /> |
|
727 |
<copy file="${build.dir}/${interface.name}Service.wsdl" todir="${build.dir}/gar/schema/edu" /> |
|
728 |
<jar destfile="${interface.name}.gar" basedir="${build.dir}/gar"/> |
|
729 |
<copy file="lib/utilities.jar" todir="${build.dir}/gar" /> |
|
730 |
<copy file="lib/server-deploy.wsdd" todir="${build.dir}/gar" /> |
|
731 |
<copy file="${build.src}/${interface.name}Service.wsdl" todir="${build.dir}/gar/schema/edu" /> |
|
732 |
<jar destfile="lib/${interface.name}.gar" basedir="${build.dir}/gar"/> |
|
729 | 733 |
</target> |
734 |
|
|
735 |
<target name="compilewebclient" depends="prepare"> |
|
736 |
<javac srcdir="${build.src}" destdir="${build.dest}" includes="**/application/*.java" classpathref="webservicepath" /> |
|
737 |
</target> |
|
738 |
|
|
739 |
<target name="runwebclient" depends="compilewebclient"> |
|
740 |
<java classname="edu.ucsb.nceas.metacat.stringclient.application.MetacatStringServiceApplication" |
|
741 |
dir="${build.dest}" fork="yes" |
|
742 |
classpathref="webservicepath" classpath="./lib/utilities.jar" failonerror="true"> |
|
743 |
<arg value="${serviceUrl}"/> |
|
744 |
<arg value="${docid}"/> |
|
745 |
</java> |
|
746 |
</target> |
|
730 | 747 |
</project> |
Also available in: Unified diff
Add a new target to test application for metacat web service.