Index: axis/build.xml
===================================================================
--- axis/build.xml	(revision 55de6a90f822407060a06d0a7a9fab9c845796f1)
+++ axis/build.xml	(revision 55de6a90f822407060a06d0a7a9fab9c845796f1)
@@ -0,0 +1,148 @@
+<!--
+  Project file for ant to build the crudge viewer.  Requires Jung and
+  bouncycastle.
+
+  Targets:
+    all: clean then compile and make docs
+    compile: build the library and test programs
+    run: run crudge
+    jar: build jar file
+    signjar: sign jar files for export
+    install: copy filed to web host
+    doc: greate API javadocs in ./doc
+    dev-doc: create developer API javadocs in ./dev-doc (includes
+	    package/private/protected functions)
+    clean: remove created files (includes .der and .pem in this directory)
+-->
+
+<project name="Fedd Axis" default="all">
+  <property name="src.dir" value="${basedir}"/>
+  <property name="lib.dir" value="${basedir}${file.separator}jar"/>
+  <property name="syslib.dir" value="/usr/local/share/java/classes"/>
+  <property name="doc.dir" value="${basedir}${file.separator}doc"/>
+  <property name="devdoc.dir" value="${basedir}${file.separator}dev-doc"/>
+  <property name="build.dir" value="${basedir}${file.separator}build"/>
+  <property name="classes.dir" value="${build.dir}/classes"/>
+  <property name="jar.dir" value="${build.dir}${file.separator}jar"/>
+  <property name="axis.task.home"
+    value="/usr/local/tomcat5.5/webapps/axis/WEB-INF/lib"/>
+  <property name="keystore.file" value="${basedir}${file.separator}keystore"/>
+  <property name="wsdl.dir" value="/zod/fedd-repo/wsdl/"/>
+
+  <path id="compile.classpath">
+    <fileset dir="${lib.dir}" includes="**/*.jar"/>
+  </path>
+
+  <taskdef resource="axis-tasks.properties" classpathref="compile.classpath" />
+
+  <target name="all" depends="clean" description="Clean then build" />
+
+  <target name="clean">
+    <delete dir="${basedir}${file.separator}edu"/>
+    <delete dir="${build.dir}"/>
+    <delete dir="${doc.dir}"/>
+    <delete dir="${devdoc.dir}"/>
+    <delete file="${keystore.file}"/>
+  </target>
+
+  <target name="compile" depends="wsdl-parse" description="Compile the source">
+    <mkdir dir="${classes.dir}" />
+    <javac srcdir="${src.dir}" destdir="${classes.dir}" 
+      classpathref="compile.classpath" includeAntRuntime="no"/>
+  </target>
+
+  <target name="keystore.check">
+    <available property="keystore.present" 
+      file="${basedir}${file.separator}keystore"/>
+  </target>
+
+
+  <target name="keys" depends="keystore.check" unless="keystore.present" >
+    <exec executable="/usr/bin/perl">
+      <arg value="./splitkey.pl"/>
+      <arg file="./emulab.pem"/>
+    </exec>
+    <exec executable="openssl">
+      <arg value="pkcs8"/>
+      <arg value="-topk8"/>
+      <arg value="-nocrypt"/>
+      <arg value="-in"/>
+      <arg file="./key.pem"/>
+      <arg value="-inform"/>
+      <arg value="PEM"/>
+      <arg value="-out"/>
+      <arg file="./key.der"/>
+      <arg value="-outform"/>
+      <arg value="DER"/>
+    </exec>
+    <exec executable="openssl">
+      <arg value="x509"/>
+      <arg value="-in"/>
+      <arg file="./cert.pem"/>
+      <arg value="-inform"/>
+      <arg value="PEM"/>
+      <arg value="-out"/>
+      <arg file="./cert.der"/>
+      <arg value="-outform"/>
+      <arg value="DER"/>
+    </exec>
+    <java classname="ImportKey" fork="true">
+      <arg file="./key.der"/>
+      <arg file="./cert.der"/>
+      <arg value="fedd"/>
+    </java>
+    <delete>
+      <fileset dir="${basedir}" includes="**/cert.*"/>
+      <fileset dir="${basedir}" includes="**/key.*"/>
+    </delete>
+    <move file="${user.home}${file.separator}keystore.ImportKey"
+      tofile="${keystore.file}"/>
+  </target>
+
+  <target name="multistatus" depends="compile,keys"
+    description="run visualizer">
+    <java classname="MultiStatus" fork="true" >
+      <classpath>
+	<path refid="compile.classpath"/>
+	<pathelement path="${classes.dir}"/>
+      </classpath>
+    </java>
+    <echo message="${user.name}"/>
+  </target>
+
+  <target name="create" depends="compile,keys"
+    description="run visualizer">
+    <java classname="Create" fork="true" >
+      <classpath>
+	<path refid="compile.classpath"/>
+	<pathelement path="${classes.dir}"/>
+      </classpath>
+      <arg value="${user.name}-test"/>
+    </java>
+  </target>
+
+  <target name="doc" description="Generate API documentation">
+    <mkdir dir="${doc.dir}"/>
+    <javadoc sourcepath="${src.dir}" destdir="${doc.dir}"
+      classpathref="compile.classpath" access="public"
+      noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/>
+  </target>
+
+  <target name="dev-doc" description="Generate API documentation">
+    <mkdir dir="${devdoc.dir}"/>
+    <javadoc sourcepath="${src.dir}" destdir="${devdoc.dir}"
+      classpathref="compile.classpath" access="private"
+      noqualifier="java.lang:java.io:java.util:java.security:java.security.cert"/>
+  </target>
+
+  <target name="wsdl.check">
+    <available file="${basedir}${file.separator}edu" type="dir" 
+      property="wsdl.available"/>
+  </target>
+
+  <target name="wsdl-parse" depends="wsdl.check" unless="wsdl.available" >
+    <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd.wsdl" output="${basedir}" />
+    <axis-wsdl2java url="${wsdl.dir}${file.separator}fedd_internal.wsdl"
+      output="${basedir}" />
+  </target>
+</project>
