Changeset e8979e2


Ignore:
Timestamp:
Jan 24, 2012 4:55:15 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
6a50b78
Parents:
94a6661
Message:

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

Location:
axis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • axis/Create.java

    r94a6661 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

    r94a6661 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>
Note: See TracChangeset for help on using the changeset viewer.