Index: java/CreateExample.java
===================================================================
--- java/CreateExample.java	(revision 9f3f3e442dc3b9bf1cbab84db93555157feb4f85)
+++ 	(revision )
@@ -1,107 +1,0 @@
-import java.io.*;
-import java.util.*;
-
-import edu.uci.ics.jung.graph.*;
-
-import net.deterlab.abac.Role;
-import net.deterlab.abac.Identity;
-import net.deterlab.abac.Context;
-import net.deterlab.abac.Credential;
-import net.deterlab.abac.CredentialFactory;
-import net.deterlab.abac.GENICredential;
-
-import java.security.KeyPair;
-
-
-/**
- * Simple test of the native Java implementation of ABAC. Loads credentials
- * from an rt0 file and runs a query against them.
- */
-public class CreateExample {
-
-    public static void writeCombinedIdentity(Identity i, File dir) 
-	    throws IOException, FileNotFoundException {
-	FileOutputStream f = new FileOutputStream(
-		new File(dir,  i.getName() + ".pem"));
-
-	i.write(f);
-	i.writePrivateKey(f);
-    }
-    public static void main(String[] args) throws IOException {
-	try {
-	    /* The type of credentials to create is a binary name for a class
-	     * on the command line.  set type to that.
-	     */
-	    String type = (args.length > 0) ? args[0] : "default";
-
-	    /* A little much on the ?: but if the type came in on the command
-	     * line, make lastDir the last component of the name (.-separated).
-	     * Otherwise use "default" */
-	    String lastDir = (args.length > 0) ? 
-		type.substring(type.lastIndexOf('.')+1) : "default";
-
-	    Context ctxt = new Context();
-	    Identity acme = new Identity("Acme");
-	    Identity globotron = new Identity("Globotron");
-	    Identity alice = new Identity("Alice");
-	    Identity bob = new Identity("Bob");
-	    Vector<Identity> ids = new Vector<Identity>();
-	    Vector<Credential> creds = new Vector<Credential>();
-	    Collections.addAll(ids, acme, globotron, alice, bob);
-
-	    File dir = new File(new File("example"), lastDir);
-
-	    if ( !dir.isDirectory()) {
-		if (!dir.mkdirs()) {
-		    System.err.println("Could not create " + dir);
-		    System.exit(20);
-		}
-	    }
-
-	    for ( Identity i: ids) 
-		writeCombinedIdentity(i, dir);
-
-	    if (!type.equals("default"))
-		ctxt.setCredentialFactory(new CredentialFactory(
-			    new String[] {type}));
-
-
-	    Credential c = ctxt.newCredential(
-		    new Role(acme.getKeyID() + ".experiment_create"),
-		    new Role(acme.getKeyID() + ".partner.experiment_create"));
-	    c.make_cert(acme);
-	    creds.add(c);
-	    c = ctxt.newCredential(
-		    new Role(acme.getKeyID() + ".partner"),
-		    new Role(globotron.getKeyID()));
-	    c.make_cert(acme);
-	    creds.add(c);
-	    c = ctxt.newCredential(
-		    new Role(globotron.getKeyID() + ".experiment_create"),
-		    new Role(globotron.getKeyID() + ".admin.power_user"));
-	    c.make_cert(globotron);
-	    creds.add(c);
-	    c = ctxt.newCredential(
-		    new Role(globotron.getKeyID() + ".admin"),
-		    new Role(alice.getKeyID()));
-	    c.make_cert(globotron);
-	    creds.add(c);
-	    c = ctxt.newCredential(
-		    new Role(alice.getKeyID() + ".power_user"),
-		    new Role(bob.getKeyID()));
-	    c.make_cert(alice);
-	    creds.add(c);
-
-	    int i =0;
-	    for (Credential cc: creds) {
-		cc.write(new File(dir, "e" + i + ".cred").toString());
-		i ++;
-	    }
-
-	}
-	catch (Exception e) {
-	    e.printStackTrace();
-	}
-
-    }
-}
Index: java/build.xml
===================================================================
--- java/build.xml	(revision 9f3f3e442dc3b9bf1cbab84db93555157feb4f85)
+++ java/build.xml	(revision fd92625fac8fc467dd8410935ac4736d7a2a22c2)
@@ -82,54 +82,4 @@
   </target>
 
-  <target name="run-test-default" depends="compile,run-create-default" description="run test query on default example">
-    <java classname="${main.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg file="./example/default"/>
-      <arg value="Acme.experiment_create"/>
-      <arg value="Bob"/>
-    </java>
-  </target>
-
-  <target name="run-test-x509" depends="compile,run-create-x509" description="run test query on X.509 example">
-    <java classname="${main.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg file="./example/X509Credential"/>
-      <arg value="Acme.experiment_create"/>
-      <arg value="Bob"/>
-    </java>
-  </target>
-
-  <target name="run-test-geni" depends="compile,run-create-geni" description="run test query on GENI example">
-    <java classname="${main.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg file="./example/GENICredential"/>
-      <arg value="Acme.experiment_create"/>
-      <arg value="Bob"/>
-    </java>
-  </target>
-
-  <target name="run-test-priv" depends="compile,run-create-priv" description="run test query on GENI priv example">
-    <java classname="${main.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg file="./example/priv"/>
-      <arg value="Acme.experiment_create"/>
-      <arg value="Bob"/>
-    </java>
-  </target>
-
-  <target name="run-test" depends="run-test-default,run-test-x509,run-test-geni,run-test-priv" description="Run all the test queries"/>
-
   <target name="run-dump" depends="compile" description="run dumper">
     <java classname="${dump.class}" fork="true" >
@@ -142,49 +92,4 @@
   </target>
 
-  <target name="run-create-default" depends="compile" description="Create example certs in default format">
-    <java classname="${example.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg value="default"/>
-    </java>
-  </target>
-
-  <target name="run-create-geni" depends="compile" description="Create example certs in GENI format">
-    <java classname="${example.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg value="net.deterlab.abac.GENICredential"/>
-    </java>
-  </target>
-
-  <target name="run-create-priv" depends="compile" description="Create example certs in GENI priv format">
-    <delete dir="${example.dir}/priv"/>
-    <mkdir dir="${example.dir}/priv"/>
-    <copy file="${regression.dir}/priv.xml" 
-	tofile="${example.dir}/priv/priv.xml"/>
-    <copy file="${regression.dir}/owner_ID.pem" 
-	tofile="${example.dir}/priv/owner_ID.pem"/>
-    <copy file="${regression.dir}/issuer_ID.pem" 
-	tofile="${example.dir}/priv/issuer_ID.pem"/>
-    <copy file="${regression.dir}/target_ID.pem" 
-	tofile="${example.dir}/priv/target_ID.pem"/>
-  </target>
-
-  <target name="run-create-x509" depends="compile" description="Create example certs in X.509 format">
-    <java classname="${example.class}" fork="true" >
-      <classpath>
-	<path refid="compile.classpath"/>
-	<pathelement path="${classes.dir}"/>
-      </classpath>
-      <arg value="net.deterlab.abac.X509Credential"/>
-    </java>
-  </target>
-
-  <target name="run-create" depends="run-create-default,run-create-x509,run-create-geni" description="Create all the examples"/>
-
   <target name="create-scratch" depends="compile" description="Create scratch directory">
     <delete dir="${src.dir}/scratch"/>
@@ -192,5 +97,5 @@
   </target>
 
-  <target name="run-regression" depends="compile,create-scratch" description="Run the regression test program">
+  <target name="run-regression" depends="compile" description="Run the regression test program">
     <java classname="${regression.class}" fork="true" >
       <classpath>
