public Bundle registerInputs()

in taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/InputsHandler.java [117:149]


	public Bundle registerInputs(Map<String, InputWorkflowPort> portMap,
			CommandLineOptions options) throws InvalidOptionException,
			ReadInputException, IOException {
		
		Bundle inputDataBundle = openInputBundle(options);
		if (Boolean.getBoolean("debug.bundle")) {
			inputDataBundle.setDeleteOnClose(false);
			System.out.println("Bundle: " + inputDataBundle.getSource());
		}
		
		Path inputs = DataBundles.getInputs(inputDataBundle);

		URL url;
		try {
			url = new URL("file:");
		} catch (MalformedURLException e1) {
			// Should never happen, but just in case:
			throw new ReadInputException(
					"The was an internal error setting up the URL to open the inputs. You should contact Taverna support.",
					e1);
		}

		if (options.hasInputFiles()) {
			regesterInputsFromFiles(portMap, options, inputs, url);
		}

		if (options.hasInputValues()) {
			registerInputsFromValues(portMap, options, inputs);

		}

		return inputDataBundle;
	}