if (!input.shouldUse()) { log("Skipping input '" + input.getPort() + "' as it is configured to be unused.", Project.MSG_DEBUG); return; String port = input.getPort(); FileNameMapper inputMapper = input.getMapper(); Union resources = input.getResources(); inputMappers.put(port, new TypedFileNameMapper(inputMapper, input.getType(), input.getContentType())); } else { if (inputMappers.containsKey(port)) { inputResources.get(port).add(new TypedResource(resource, input.getType(), input.getContentType()));
for (Resource resource : input.getResources().listResources()) { userArgs.addInput(input.getPort(), resource.getInputStream(), resource.toString(), input.getType(), input.getContentType());
for (Resource resource : input.getResources().listResources()) { userArgs.addInput(input.getPort(), resource.getInputStream(), resource.toString(), input.getType(), input.getContentType());
if (!input.shouldUse()) { log("Skipping input '" + input.getPort() + "' as it is configured to be unused.", Project.MSG_DEBUG); return; String port = input.getPort(); FileNameMapper inputMapper = input.getMapper(); Union resources = input.getResources(); inputMappers.put(port, new TypedFileNameMapper(inputMapper, input.getType(), input.getContentType())); } else { if (inputMappers.containsKey(port)) { inputResources.get(port).add(new TypedResource(resource, input.getType(), input.getContentType()));
/** * Add a nested {@code <input>}. * * @param input the {@code Input} object */ public void addConfiguredInput(Input input) { if (!input.shouldUse()) { super.project.log("Skipping input '" + input.getPort() + "' as it is configured to be unused.", Project.MSG_DEBUG); return; } inputs.add(input); if (input.getMapper() != null) { throw new BuildException("Mappers are not supported for inputs that are nested in steps"); } }
/** * Add a nested {@code <input>}. * * @param input the {@code Input} object */ public void addConfiguredInput(Input input) { if (!input.shouldUse()) { super.project.log("Skipping input '" + input.getPort() + "' as it is configured to be unused.", Project.MSG_DEBUG); return; } inputs.add(input); if (input.getMapper() != null) { throw new BuildException("Mappers are not supported for inputs that are nested in steps"); } }