test_class.declarator: configurationReader
test_class.modifier: private
test_class.original_string: private DefaultTargetPlatformConfigurationReader configurationReader;
test_class.type: DefaultTargetPlatformConfigurationReader
test_class.var_name: configurationReader
test_class.file: tycho-core/src/test/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReaderTest.java
test_class.identifier: DefaultTargetPlatformConfigurationReaderTest
test_class.superclass: extends AbstractTychoMojoTestCase
test_case.body: @Test
      public void testExtraRequirementMissingType() throws Exception {
          Xpp3Dom dom = createConfigurationDom("id", "versionRange");
          try {
              configurationReader.readExtraRequirements(new TargetPlatformConfiguration(), dom);
              fail();
          } catch (BuildFailureException e) {
              assertTrue(
                      e.getMessage().contains("Element <type> is missing in <extraRequirements><requirement> section."));
          }
      }
test_case.class_method_signature: DefaultTargetPlatformConfigurationReaderTest.testExtraRequirementMissingType()
test_case.full_signature: @Test public void testExtraRequirementMissingType()
test_case.identifier: testExtraRequirementMissingType
test_case.invocations: createConfigurationDom readExtraRequirements fail assertTrue contains getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExtraRequirementMissingType()
focal_class.declarator: TARGET_DEFINITION_INCLUDE_SOURCE = "targetDefinitionIncludeSource"
focal_class.modifier: public static final
focal_class.original_string: public static final String TARGET_DEFINITION_INCLUDE_SOURCE = "targetDefinitionIncludeSource";
focal_class.type: String
focal_class.var_name: TARGET_DEFINITION_INCLUDE_SOURCE
focal_class.declarator: INCLUDE_PACKED_ARTIFACTS = "includePackedArtifacts"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_PACKED_ARTIFACTS = "includePackedArtifacts";
focal_class.type: String
focal_class.var_name: INCLUDE_PACKED_ARTIFACTS
focal_class.declarator: DEPENDENCY_RESOLUTION = "dependency-resolution"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEPENDENCY_RESOLUTION = "dependency-resolution";
focal_class.type: String
focal_class.var_name: DEPENDENCY_RESOLUTION
focal_class.declarator: FILTERS = "filters"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILTERS = "filters";
focal_class.type: String
focal_class.var_name: FILTERS
focal_class.declarator: RESOLVE_WITH_EXECUTION_ENVIRONMENT_CONSTRAINTS = "resolveWithExecutionEnvironmentConstraints"
focal_class.modifier: public static final
focal_class.original_string: public static final String RESOLVE_WITH_EXECUTION_ENVIRONMENT_CONSTRAINTS = "resolveWithExecutionEnvironmentConstraints";
focal_class.type: String
focal_class.var_name: RESOLVE_WITH_EXECUTION_ENVIRONMENT_CONSTRAINTS
focal_class.declarator: BREE_HEADER_SELECTION_POLICY = "breeHeaderSelectionPolicy"
focal_class.modifier: public static final
focal_class.original_string: public static final String BREE_HEADER_SELECTION_POLICY = "breeHeaderSelectionPolicy";
focal_class.type: String
focal_class.var_name: BREE_HEADER_SELECTION_POLICY
focal_class.declarator: EXECUTION_ENVIRONMENT_DEFAULT = "executionEnvironmentDefault"
focal_class.modifier: public static final
focal_class.original_string: public static final String EXECUTION_ENVIRONMENT_DEFAULT = "executionEnvironmentDefault";
focal_class.type: String
focal_class.var_name: EXECUTION_ENVIRONMENT_DEFAULT
focal_class.declarator: EXECUTION_ENVIRONMENT = "executionEnvironment"
focal_class.modifier: public static final
focal_class.original_string: public static final String EXECUTION_ENVIRONMENT = "executionEnvironment";
focal_class.type: String
focal_class.var_name: EXECUTION_ENVIRONMENT
focal_class.declarator: ALLOW_CONFLICTING_DEPENDENCIES = "allowConflictingDependencies"
focal_class.modifier: public static final
focal_class.original_string: public static final String ALLOW_CONFLICTING_DEPENDENCIES = "allowConflictingDependencies";
focal_class.type: String
focal_class.var_name: ALLOW_CONFLICTING_DEPENDENCIES
focal_class.declarator: POM_DEPENDENCIES = "pomDependencies"
focal_class.modifier: public static final
focal_class.original_string: public static final String POM_DEPENDENCIES = "pomDependencies";
focal_class.type: String
focal_class.var_name: POM_DEPENDENCIES
focal_class.declarator: TARGET = "target"
focal_class.modifier: public static final
focal_class.original_string: public static final String TARGET = "target";
focal_class.type: String
focal_class.var_name: TARGET
focal_class.declarator: RESOLVER = "resolver"
focal_class.modifier: public static final
focal_class.original_string: public static final String RESOLVER = "resolver";
focal_class.type: String
focal_class.var_name: RESOLVER
focal_class.declarator: ENVIRONMENTS = "environments"
focal_class.modifier: public static final
focal_class.original_string: public static final String ENVIRONMENTS = "environments";
focal_class.type: String
focal_class.var_name: ENVIRONMENTS
focal_class.declarator: OPTIONAL_RESOLUTION_REQUIRE = "require"
focal_class.modifier: private static final
focal_class.original_string: private static final String OPTIONAL_RESOLUTION_REQUIRE = "require";
focal_class.type: String
focal_class.var_name: OPTIONAL_RESOLUTION_REQUIRE
focal_class.declarator: OPTIONAL_RESOLUTION_IGNORE = "ignore"
focal_class.modifier: private static final
focal_class.original_string: private static final String OPTIONAL_RESOLUTION_IGNORE = "ignore";
focal_class.type: String
focal_class.var_name: OPTIONAL_RESOLUTION_IGNORE
focal_class.declarator: FILE_EXTENSION = ".target"
focal_class.modifier: private static final
focal_class.original_string: private static final String FILE_EXTENSION = ".target";
focal_class.type: String
focal_class.var_name: FILE_EXTENSION
focal_class.declarator: logger
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private Logger logger;
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: repositorySystem
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private RepositorySystem repositorySystem;
focal_class.type: RepositorySystem
focal_class.var_name: repositorySystem
focal_class.declarator: projectTypes
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private Map<String, TychoProject> projectTypes;
focal_class.type: Map<String, TychoProject>
focal_class.var_name: projectTypes
focal_class.declarator: filterReader
focal_class.modifier: @Requirement
      private
focal_class.original_string: @Requirement
      private TargetPlatformFilterConfigurationReader filterReader;
focal_class.type: TargetPlatformFilterConfigurationReader
focal_class.var_name: filterReader
focal_class.file: tycho-core/src/main/java/org/eclipse/tycho/core/resolver/DefaultTargetPlatformConfigurationReader.java
focal_class.identifier: DefaultTargetPlatformConfigurationReader
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(MavenSession session, MavenProject project)
focal_class.full_signature: public TargetPlatformConfiguration getTargetPlatformConfiguration(MavenSession session, MavenProject project)
focal_class.identifier: getTargetPlatformConfiguration
focal_class.modifiers: public
focal_class.parameters: (MavenSession session, MavenProject project)
focal_class.return: TargetPlatformConfiguration
focal_class.signature: TargetPlatformConfiguration getTargetPlatformConfiguration(MavenSession session, MavenProject project)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setIncludePackedArtifacts(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setIncludePackedArtifacts(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setIncludePackedArtifacts
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setIncludePackedArtifacts(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setTargetDefinitionIncludeSources
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.readDependencyResolutionConfiguration(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void readDependencyResolutionConfiguration(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: readDependencyResolutionConfiguration
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void readDependencyResolutionConfiguration(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setOptionalDependencies(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.full_signature: private void setOptionalDependencies(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.identifier: setOptionalDependencies
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.return: void
focal_class.signature: void setOptionalDependencies(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.full_signature: protected void readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.identifier: readExtraRequirements
focal_class.modifiers: protected
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.return: void
focal_class.signature: void readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.readProfileProperties(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.full_signature: private void readProfileProperties(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.identifier: readProfileProperties
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.return: void
focal_class.signature: void readProfileProperties(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setExecutionEnvironment(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setExecutionEnvironment(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setExecutionEnvironment
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setExecutionEnvironment(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setExecutionEnvironmentDefault(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setExecutionEnvironmentDefault(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setExecutionEnvironmentDefault
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setExecutionEnvironmentDefault(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setBREEHeaderSelectionPolicy
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setResolveWithEEContraints(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.full_signature: private void setResolveWithEEContraints(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.identifier: setResolveWithEEContraints
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.return: void
focal_class.signature: void setResolveWithEEContraints(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setDisableP2Mirrors(Xpp3Dom configuration)
focal_class.full_signature: private void setDisableP2Mirrors(Xpp3Dom configuration)
focal_class.identifier: setDisableP2Mirrors
focal_class.modifiers: private
focal_class.parameters: (Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setDisableP2Mirrors(Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setAllowConflictingDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setAllowConflictingDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setAllowConflictingDependencies
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setAllowConflictingDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.addTargetEnvironments(TargetPlatformConfiguration result, MavenProject project,
              Xpp3Dom configuration)
focal_class.full_signature: private void addTargetEnvironments(TargetPlatformConfiguration result, MavenProject project,
              Xpp3Dom configuration)
focal_class.identifier: addTargetEnvironments
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, MavenProject project,
              Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void addTargetEnvironments(TargetPlatformConfiguration result, MavenProject project,
              Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.getDeprecatedTargetEnvironment(Xpp3Dom configuration)
focal_class.full_signature: protected TargetEnvironment getDeprecatedTargetEnvironment(Xpp3Dom configuration)
focal_class.identifier: getDeprecatedTargetEnvironment
focal_class.modifiers: protected
focal_class.parameters: (Xpp3Dom configuration)
focal_class.return: TargetEnvironment
focal_class.signature: TargetEnvironment getDeprecatedTargetEnvironment(Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setPomDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setPomDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setPomDependencies
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setPomDependencies(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setTarget(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom configuration)
focal_class.full_signature: private void setTarget(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom configuration)
focal_class.identifier: setTarget
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setTarget(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.addTargetArtifact(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom artifactDom)
focal_class.full_signature: protected void addTargetArtifact(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom artifactDom)
focal_class.identifier: addTargetArtifact
focal_class.modifiers: protected
focal_class.parameters: (TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom artifactDom)
focal_class.return: void
focal_class.signature: void addTargetArtifact(TargetPlatformConfiguration result, MavenSession session, MavenProject project,
              Xpp3Dom artifactDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.setTargetPlatformResolver(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void setTargetPlatformResolver(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: setTargetPlatformResolver
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void setTargetPlatformResolver(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.readFilters(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.full_signature: private void readFilters(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.identifier: readFilters
focal_class.modifiers: private
focal_class.parameters: (TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.return: void
focal_class.signature: void readFilters(TargetPlatformConfiguration result, Xpp3Dom configuration)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.newTargetEnvironment(Xpp3Dom environmentDom)
focal_class.full_signature: private static TargetEnvironment newTargetEnvironment(Xpp3Dom environmentDom)
focal_class.identifier: newTargetEnvironment
focal_class.modifiers: private static
focal_class.parameters: (Xpp3Dom environmentDom)
focal_class.return: TargetEnvironment
focal_class.signature: TargetEnvironment newTargetEnvironment(Xpp3Dom environmentDom)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.getStringValue(Xpp3Dom element)
focal_class.full_signature: private static String getStringValue(Xpp3Dom element)
focal_class.identifier: getStringValue
focal_class.modifiers: private static
focal_class.parameters: (Xpp3Dom element)
focal_class.return: String
focal_class.signature: String getStringValue(Xpp3Dom element)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.listTargetFiles(File folder)
focal_class.full_signature: public static File[] listTargetFiles(File folder)
focal_class.identifier: listTargetFiles
focal_class.modifiers: public static
focal_class.parameters: (File folder)
focal_class.return: File[]
focal_class.signature: File[] listTargetFiles(File folder)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.isTargetFile(File file)
focal_class.full_signature: public static boolean isTargetFile(File file)
focal_class.identifier: isTargetFile
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.return: boolean
focal_class.signature: boolean isTargetFile(File file)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.isPrimaryTarget(MavenProject project, File targetFile, File[] otherTargetFiles)
focal_class.full_signature: public static boolean isPrimaryTarget(MavenProject project, File targetFile, File[] otherTargetFiles)
focal_class.identifier: isPrimaryTarget
focal_class.modifiers: public static
focal_class.parameters: (MavenProject project, File targetFile, File[] otherTargetFiles)
focal_class.return: boolean
focal_class.signature: boolean isPrimaryTarget(MavenProject project, File targetFile, File[] otherTargetFiles)
focal_class.class_method_signature: DefaultTargetPlatformConfigurationReader.throwNoPrimaryTargetFound(MavenProject project, File[] targetFiles)
focal_class.full_signature: public static void throwNoPrimaryTargetFound(MavenProject project, File[] targetFiles)
focal_class.identifier: throwNoPrimaryTargetFound
focal_class.modifiers: public static
focal_class.parameters: (MavenProject project, File[] targetFiles)
focal_class.return: void
focal_class.signature: void throwNoPrimaryTargetFound(MavenProject project, File[] targetFiles)
focal_method.body: protected void readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
              throws BuildFailureException {
          Xpp3Dom requirementsDom = resolverDom.getChild("extraRequirements");
          if (requirementsDom == null) {
              return;
          }
  
          for (Xpp3Dom requirementDom : requirementsDom.getChildren("requirement")) {
              Dependency d = new Dependency();
              if (requirementDom.getChild("type") == null) {
                  throw new BuildFailureException(
                          "Element <type> is missing in <extraRequirements><requirement> section.");
              }
              if (requirementDom.getChild("id") == null) {
                  throw new BuildFailureException("Element <id> is missing in <extraRequirements><requirement> section.");
              }
              if (requirementDom.getChild("versionRange") == null) {
                  throw new BuildFailureException(
                          "Element <versionRange> is missing in <extraRequirements><requirement> section.");
              }
              d.setType(requirementDom.getChild("type").getValue());
              d.setArtifactId(requirementDom.getChild("id").getValue());
              d.setVersion(requirementDom.getChild("versionRange").getValue());
              result.addExtraRequirement(d);
          }
      }
focal_method.class_method_signature: DefaultTargetPlatformConfigurationReader.readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_method.full_signature: protected void readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_method.identifier: readExtraRequirements
focal_method.invocations: getChild getChildren getChild getChild getChild setType getValue getChild setArtifactId getValue getChild setVersion getValue getChild addExtraRequirement
focal_method.modifiers: protected
focal_method.parameters: (TargetPlatformConfiguration result, Xpp3Dom resolverDom)
focal_method.return: void
focal_method.signature: void readExtraRequirements(TargetPlatformConfiguration result, Xpp3Dom resolverDom)