Changeset e8979e21716d2af992125154fced1eacc51fb6d5

Show
Ignore:
Timestamp:
01/24/12 16:55:15 (4 months ago)
Author:
Ted Faber <faber@…>
Children:
6a50b78172df7385895b43b3da46f5b4447e4d50
Parents:
94a6661c11a455b028b72f90dbdd891354e59775
git-committer:
Ted Faber <faber@isi.edu> / 2012-01-24T16:55:15Z-0800
Message:

Add example of requesting project on testbed to Create (and build)

Location:
axis
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • axis/Create.java

    rcfc4d68 re8979e2  
    9494        String certFile = "./emulab.pem"; 
    9595        String urlString = "https://users.isi.deterlab.net:23235"; 
     96        String project = null; 
     97        String masterTB = "deter"; 
    9698 
    9799        if (args.length > 0) exptName = args[0]; 
     
    99101        if (args.length > 2) certFile = args[2]; 
    100102        if (args.length > 3) urlString = args[3]; 
     103        if (args.length > 4) project = args[4]; 
     104        if (args.length > 5) masterTB = args[5]; 
    101105         
    102106        /*  
     
    156160            new ExperimentLabels(newResp.getExperimentID()); 
    157161 
     162        CreateServiceInfoType[] createService = null; 
     163        if (project != null) { 
     164            // If a project is requested, make a create service request to get 
     165            // that project. 
     166            createService = new CreateServiceInfoType[] { 
     167                new CreateServiceInfoType(null, "project_export",  
     168                        new String[] { masterTB }, null, true,  
     169                        new FedAttrType[] { 
     170                            new FedAttrType("project", project) }) 
     171            }; 
     172        } 
     173 
    158174        CreateRequestType createReq = new CreateRequestType(null,  
    159175                new ExperimentDescriptionType(nsContents, topo), 
    160                 null, 
     176                createService, 
    161177                new IDType(null, null, null, newLabels.getLocalname(), null), 
    162178                null); 
  • axis/build.xml

    rcfc4d68 re8979e2  
    3333  <property name="experiment.name" value="${user.name}-test"/> 
    3434  <property name="fedd.url" value="https://users.isi.deterlab.net:23235"/> 
     35  <property name="fedd.project" value="DeterTest"/> 
    3536 
    3637  <path id="compile.classpath"> 
     
    243244      <arg file="${fedid.pem}"/> 
    244245      <arg value="${fedd.url}"/> 
     246      <arg value="${fedd.project}"/> 
    245247    </java> 
    246248  </target>