code: public void addConfiguredTarget(final TargetDef target) {
      if (target == null) {
        throw new NullPointerException("target");
      }
      target.setProject(getProject());
      this.targetPlatforms.addElement(target);
    }
docs: Adds a target definition or reference (Non-functional prototype).
  
  @param target
  target
  @throws NullPointerException
  if compiler is null