java/com/google/copybara/buildozer/Target.java
/**
   * Parses a target specified in configuration.
   *
   * @param configString target specified in the form {@code PKG:TARGET_NAME}
   * @throws EvalException if {@code configString} is not formatted correctly
   */
Parses a target specified in configuration.
@param configString target specified in the form  PKG:TARGET_NAME
@throws EvalException if  configString is not formatted correctly
Parses a target specified in configuration . @param configString target specified in the form PKG : TARGET_NAME @throws EvalException if configString is not formatted correctly
static Target fromConfig(String configString) throws EvalException {
    if (configString.startsWith("/")) {
      throw new EvalException("target must be relative and not start with '/' or '//'");
    }
    if (!TARGET_NAME_PATTERN.matcher(configString).matches()) {
      throw new EvalException(
          "target must be in the form of {PKG}:{TARGET_NAME}, e.g. foo/bar:baz");
    }
    return new Target(configString.split(":", 2));
  }
static Target fromConfig ( String configString ) throws EvalException { if ( configString . startsWith ( "/" ) ) { throw new EvalException ( "target must be relative and not start with '/' or '//'" ) ; } if ( ! TARGET_NAME_PATTERN . matcher ( configString ) . matches ( ) ) { throw new EvalException ( "target must be in the form of {PKG}:{TARGET_NAME}, e.g. foo/bar:baz" ) ; } return new Target ( configString . split ( ":" , 2 ) ) ; }
Parses a target specified in configuration.
Parses a target specified in configuration .