{@inheritDoc}

@see org.jboss.shrinkwrap.api.container.WebContainer#addAsWebInfResource(java.io.File, java.lang.String)
496246
@Override
    public T addAsWebInfResource(final File resource, final String target) throws IllegalArgumentException {
        Validate.notNull(resource, "Resource should be specified");
        Validate.notNullOrEmpty(target, "Target should be specified");

        return addAsWebInfResource(new FileAsset(resource), target);
    }
969063
@Override
    public T setResourceAdapterXML(Package resourcePackage, String resourceName) throws IllegalArgumentException {
        Validate.notNull(resourcePackage, "ResourcePackage must be specified");
        Validate.notNull(resourceName, "ResourceName must be specified");

        return addAsManifestResource(resourcePackage, resourceName, "ra.xml");
    }
1359231
public static base_response add(nitro_service client, filterhtmlinjectionvariable resource) throws Exception {
		filterhtmlinjectionvariable addresource = new filterhtmlinjectionvariable();
		addresource.variable = resource.variable;
		addresource.value = resource.value;
		return addresource.add_resource(client);
	}
441702
public ApplicationResource addJsFile(final String fileName) {
		if (Util.empty(fileName)) {
			throw new IllegalArgumentException("A file name must be provided.");
		}
		InternalResource resource = new InternalResource(fileName, fileName);
		ApplicationResource res = new ApplicationResource(resource);
		addJsResource(res);
		return res;
	}
100187
public void addSharedFunction(String fileName) {
		fileName = fileName.replace("\\", "/");
		// FileSource fileSource = new FileSource(baseTemplatePath, fileName, encoding);
		ISource source = sourceFactory.getSource(baseTemplatePath, fileName, encoding);
		doAddSharedFunction(source, fileName);
	}
860770
public EarDescriptorBuilder addWeb(String filename) {
        String context;
        context = removeExtension(filename).replaceAll("[^a-z]", "");
        if (addRandom) {
            Random random = new Random();
            context += "-" + random.nextInt(Integer.MAX_VALUE);
        }
        return addWeb(filename, context);
    }
1154465
public void addSharedFunction(ISource source) {
		String fileName = source instanceof FileSource ? ((FileSource)source).getFileName() : null;
		doAddSharedFunction(source, fileName);
	}
350009
public JavaFileObject useSource(JavaFileObject file) {
        JavaFileObject prev = (source == null ? null : source.getFile());
        source = getSource(file);
        return prev;
    }
1060836
@Override
    public T addAsWebResource(String resourceName, String target) throws IllegalArgumentException {
        Validate.notNull(resourceName, "ResourceName should be specified");
        Validate.notNull(target, "Target should be specified");

        return addAsWebResource(new ClassLoaderAsset(resourceName), target);
    }
1250205
private void addResources(MpxjTreeNode parentNode, ProjectFile file)
   {
      for (Resource resource : file.getResources())
      {
         final Resource r = resource;
         MpxjTreeNode childNode = new MpxjTreeNode(resource)
         {
            @Override public String toString()
            {
               return r.getName();
            }
         };
         parentNode.add(childNode);
      }
   }
176057
public void addSrcLink(ProgramElementDoc doc, Content label, Content htmltree) {
        if (doc == null) {
            return;
        }
        ClassDoc cd = doc.containingClass();
        if (cd == null) {
            //d must be a class doc since in has no containing class.
            cd = (ClassDoc) doc;
        }
        DocPath href = pathToRoot
                .resolve(DocPaths.SOURCE_OUTPUT)
                .resolve(DocPath.forClass(cd));
        Content linkContent = getHyperLink(href.fragment(SourceToHTMLConverter.getAnchorName(doc)), label, "", "");
        htmltree.addContent(linkContent);
    }
1157662
public void addSourcePath(File sourcePath) {
		if (this.sourcePath == null) {
			this.sourcePath = new ArrayList<>();
		}
		this.sourcePath.add(sourcePath);
	}
997052
@Override
    public T addAsWebInfResources(final Package resourcePackage, final String... resourceNames)
        throws IllegalArgumentException {
        Validate.notNull(resourcePackage, "ResourcePackage must be specified");
        Validate.notNullAndNoNullValues(resourceNames,
            "ResourceNames must be specified and can not container null values");
        for (String resourceName : resourceNames) {
            addAsWebInfResource(resourcePackage, resourceName);
        }
        return covarientReturn();
    }
1268191
public ApplicationResource addCssFile(final String fileName) {
		if (Util.empty(fileName)) {
			throw new IllegalArgumentException("A file name must be provided.");
		}
		InternalResource resource = new InternalResource(fileName, fileName);
		ApplicationResource res = new ApplicationResource(resource);
		addCssResource(res);
		return res;
	}
1246418
public MetadataBuilder addDataSource(@NotNull InputStream dataSource, String path, boolean closeAfterBuild) {
    checkHashingResultIsNotSet();
    filesPaths.add(path);
    dataSources.add(new StreamBasedHolderImpl(dataSource, closeAfterBuild));
    return this;
  }
877611
@Override
    public T addAsWebInfResource(final URL resource, final String target) throws IllegalArgumentException {
        Validate.notNull(resource, "Resource should be specified");
        Validate.notNullOrEmpty(target, "Target should be specified");

        return addAsWebInfResource(new UrlAsset(resource), target);
    }
497014
private void addDatasourceIfNeeded(ServletRequest req)
            throws JspException
    {
        if (_match == null)
            return;

        for (int i = 0; i < _match.length; i++) {
            if (!_optionList.contains(_match[i])) {
                if (!_match[i].equals(NULL_VALUE))
                    addOption(req, _match[i], _match[i]);
            }
        }
    }