Changeset e8979e21716d2af992125154fced1eacc51fb6d5
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rcfc4d68
|
re8979e2
|
|
| 94 | 94 | String certFile = "./emulab.pem"; |
| 95 | 95 | String urlString = "https://users.isi.deterlab.net:23235"; |
| | 96 | String project = null; |
| | 97 | String masterTB = "deter"; |
| 96 | 98 | |
| 97 | 99 | if (args.length > 0) exptName = args[0]; |
| … |
… |
|
| 99 | 101 | if (args.length > 2) certFile = args[2]; |
| 100 | 102 | if (args.length > 3) urlString = args[3]; |
| | 103 | if (args.length > 4) project = args[4]; |
| | 104 | if (args.length > 5) masterTB = args[5]; |
| 101 | 105 | |
| 102 | 106 | /* |
| … |
… |
|
| 156 | 160 | new ExperimentLabels(newResp.getExperimentID()); |
| 157 | 161 | |
| | 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 | |
| 158 | 174 | CreateRequestType createReq = new CreateRequestType(null, |
| 159 | 175 | new ExperimentDescriptionType(nsContents, topo), |
| 160 | | null, |
| | 176 | createService, |
| 161 | 177 | new IDType(null, null, null, newLabels.getLocalname(), null), |
| 162 | 178 | null); |
-
|
rcfc4d68
|
re8979e2
|
|
| 33 | 33 | <property name="experiment.name" value="${user.name}-test"/> |
| 34 | 34 | <property name="fedd.url" value="https://users.isi.deterlab.net:23235"/> |
| | 35 | <property name="fedd.project" value="DeterTest"/> |
| 35 | 36 | |
| 36 | 37 | <path id="compile.classpath"> |
| … |
… |
|
| 243 | 244 | <arg file="${fedid.pem}"/> |
| 244 | 245 | <arg value="${fedd.url}"/> |
| | 246 | <arg value="${fedd.project}"/> |
| 245 | 247 | </java> |
| 246 | 248 | </target> |