Changeset 6b25610
- Timestamp:
- Mar 31, 2011 3:02:12 PM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 6a03b9f
- Parents:
- aee2ac2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
axis/build.xml
raee2ac2 r6b25610 19 19 <property name="src.dir" value="${basedir}"/> 20 20 <property name="lib.dir" value="${basedir}${file.separator}jar"/> 21 <property name="syslib.dir" value="/usr/local/share/java/classes"/>22 21 <property name="doc.dir" value="${basedir}${file.separator}doc"/> 23 22 <property name="devdoc.dir" value="${basedir}${file.separator}dev-doc"/> … … 25 24 <property name="classes.dir" value="${build.dir}/classes"/> 26 25 <property name="jar.dir" value="${build.dir}${file.separator}jar"/> 27 <property name="axis.task.home"28 value="/usr/local/tomcat5.5/webapps/axis/WEB-INF/lib"/>29 26 <property name="keystore.file" value="${basedir}${file.separator}keystore"/> 30 <property name="wsdl.dir" value="/zod/fedd-repo/wsdl/"/> 27 <property name="wsdl.dir" value="../wsdl"/> 28 <property name="cert.pem" value="./emulab.pem"/> 31 29 32 30 <path id="compile.classpath"> … … 46 44 </target> 47 45 48 <target name="compile" depends="wsdl-parse" description="Compile the source"> 49 <mkdir dir="${classes.dir}" /> 50 <javac srcdir="${src.dir}" destdir="${classes.dir}" 51 classpathref="compile.classpath" includeAntRuntime="no"/> 52 </target> 53 46 <!-- Check to see if the keystore file exists, if so the keystore.available 47 property is created. --> 54 48 <target name="keystore.check"> 55 49 <available property="keystore.present" … … 58 52 59 53 54 <!-- Convert ${cert.pem} to a java keystore. Makes use of the ImportKey 55 program available from http://www.agentbob.info/agentbob/79-AB.html . 56 That web page describes this process in detail. --> 60 57 <target name="keys" depends="keystore.check" unless="keystore.present" > 58 <!-- splitkey.pl splits a combo certificate file (both key and cert) into a 59 key.pem and cert.pem file for ImportKey --> 61 60 <exec executable="/usr/bin/perl"> 62 61 <arg value="./splitkey.pl"/> 63 <arg file=" ./emulab.pem"/>62 <arg file="${cert.pem}"/> 64 63 </exec> 65 64 <exec executable="openssl"> … … 92 91 <arg value="fedd"/> 93 92 </java> 93 <move file="${user.home}${file.separator}keystore.ImportKey" 94 tofile="${keystore.file}"/> 94 95 <delete> 95 96 <fileset dir="${basedir}" includes="**/cert.*"/> 96 97 <fileset dir="${basedir}" includes="**/key.*"/> 97 98 </delete> 98 <move file="${user.home}${file.separator}keystore.ImportKey"99 tofile="${keystore.file}"/>100 99 </target> 101 100 101 <!-- Documentation targets --> 102 <target name="doc" description="Generate API documentation"> 103 <mkdir dir="${doc.dir}"/> 104 <javadoc sourcepath="${src.dir}" destdir="${doc.dir}" 105 classpathref="compile.classpath" access="public" 106 noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/> 107 </target> 108 109 <target name="dev-doc" 110 description="Generate detailed/developer API documentation"> 111 <mkdir dir="${devdoc.dir}"/> 112 <javadoc sourcepath="${src.dir}" destdir="${devdoc.dir}" 113 classpathref="compile.classpath" access="private" 114 noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/> 115 </target> 116 117 <!-- Check to see if the wsdl-generated directories exist: if so 118 the wsdl.available property is set --> 119 <target name="wsdl.check"> 120 <available file="${basedir}${file.separator}edu" type="dir" 121 property="wsdl.available"/> 122 </target> 123 124 <!-- Generate wsdl-generated source files if they do not exist. The 125 axis-wsdl2java tasks are from axis. --> 126 <target name="wsdl-parse" depends="wsdl.check" unless="wsdl.available" > 127 <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd.wsdl" 128 output="${basedir}" /> 129 <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd_internal.wsdl" 130 output="${basedir}" /> 131 </target> 132 133 <!-- compile the sources into the build directory. Depends on the 134 wsdl-generated files being created. --> 135 <target name="compile" depends="wsdl-parse" description="Compile the source"> 136 <mkdir dir="${classes.dir}" /> 137 <javac srcdir="${src.dir}" destdir="${classes.dir}" 138 classpathref="compile.classpath" includeAntRuntime="no"/> 139 </target> 140 141 <!-- Test programs --> 102 142 <target name="multistatus" depends="compile,keys" 103 143 description="run visualizer"> … … 108 148 </classpath> 109 149 </java> 110 <echo message="${user.name}"/>111 150 </target> 112 151 … … 122 161 </target> 123 162 124 <target name="doc" description="Generate API documentation"> 125 <mkdir dir="${doc.dir}"/> 126 <javadoc sourcepath="${src.dir}" destdir="${doc.dir}" 127 classpathref="compile.classpath" access="public" 128 noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/> 163 164 <target name="terminate" depends="compile,keys" 165 description="run visualizer"> 166 <java classname="Terminate" fork="true" > 167 <classpath> 168 <path refid="compile.classpath"/> 169 <pathelement path="${classes.dir}"/> 170 </classpath> 171 <arg value="${user.name}-test"/> 172 </java> 129 173 </target> 130 174 131 <target name="dev-doc" description="Generate API documentation">132 <mkdir dir="${devdoc.dir}"/>133 <javadoc sourcepath="${src.dir}" destdir="${devdoc.dir}"134 classpathref="compile.classpath" access="private"135 noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/>136 </target>137 138 <target name="wsdl.check">139 <available file="${basedir}${file.separator}edu" type="dir"140 property="wsdl.available"/>141 </target>142 143 <target name="wsdl-parse" depends="wsdl.check" unless="wsdl.available" >144 <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd.wsdl" output="${basedir}" />145 <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd_internal.wsdl"146 output="${basedir}" />147 </target>148 175 </project>
Note: See TracChangeset
for help on using the changeset viewer.