[MOBY-guts] biomoby commit

senger@ebi.ac.uk senger at pub.open-bio.org
Sun Dec 5 22:28:02 UTC 2004


senger
Sun Dec  5 17:28:02 EST 2004
Update of /home/repository/moby/moby-live/Java/src/Clients
In directory pub.open-bio.org:/tmp/cvs-serv14933/src/Clients

Modified Files:
	MobyCmdLineClient.java 
Log Message:
a lot of changes in docs; but also in code

moby-live/Java/src/Clients MobyCmdLineClient.java,1.7,1.8
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/Clients/MobyCmdLineClient.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- /home/repository/moby/moby-live/Java/src/Clients/MobyCmdLineClient.java	2004/11/12 23:02:30	1.7
+++ /home/repository/moby/moby-live/Java/src/Clients/MobyCmdLineClient.java	2004/12/05 22:28:02	1.8
@@ -367,9 +367,17 @@
                 if ((param = cmd.getParam ("-rs-out")) != null ) {
 		    String[] outs = StringUtils.split (param, ",");
 		    for (int i = 0; i < outs.length; i++) {
-			MobyPrimaryDataSimple data = new MobyPrimaryDataSimple ("dummy");
-			data.setDataType (new MobyDataType (outs[i]));
-			service.addOutput (data);
+			String[] parts = StringUtils.split (outs[i], "=");
+			if (parts.length >= 2) {
+			    MobyPrimaryDataSimple data = new MobyPrimaryDataSimple ("dummy");
+			    data.setDataType (new MobyDataType (parts[0]));
+			    data.addNamespace (new MobyNamespace (parts[1]));
+			    service.addOutput (data);
+			} else {
+			    MobyPrimaryDataSimple data = new MobyPrimaryDataSimple ("dummy");
+			    data.setDataType (new MobyDataType (parts[0]));
+			    service.addOutput (data);
+			}
 		    }
 		}
                 if ((param = cmd.getParam ("-rs-ofile")) != null ) {




More information about the MOBY-guts mailing list