test_class.file: tycho-p2/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/p2/director/ProductArchiverMojoTest.java
test_class.identifier: ProductArchiverMojoTest
test_case.body: @Test
      public void testGetArtifactClassifierWithAttachId() {
          TargetEnvironment env = new TargetEnvironment("os", "ws", "arch");
          Product product = new Product("product.id", "attachId");
          String classifier = ProductArchiverMojo.getArtifactClassifier(product, env);
          assertEquals("attachId-os.ws.arch", classifier);
      }
test_case.class_method_signature: ProductArchiverMojoTest.testGetArtifactClassifierWithAttachId()
test_case.full_signature: @Test public void testGetArtifactClassifierWithAttachId()
test_case.identifier: testGetArtifactClassifierWithAttachId
test_case.invocations: getArtifactClassifier assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetArtifactClassifierWithAttachId()
focal_class.declarator: LOCK = new Object()
focal_class.modifier: private static final
focal_class.original_string: private static final Object LOCK = new Object();
focal_class.type: Object
focal_class.var_name: LOCK
focal_class.declarator: DEFAULT_ARCHIVE_FORMAT = "zip"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_ARCHIVE_FORMAT = "zip";
focal_class.type: String
focal_class.var_name: DEFAULT_ARCHIVE_FORMAT
focal_class.declarator: TAR_GZ_ARCHIVE_FORMAT = "tar.gz"
focal_class.modifier: private static final
focal_class.original_string: private static final String TAR_GZ_ARCHIVE_FORMAT = "tar.gz";
focal_class.type: String
focal_class.var_name: TAR_GZ_ARCHIVE_FORMAT
focal_class.declarator: productArchivers
focal_class.modifier: private final
focal_class.original_string: private final Map<String, ProductArchiver> productArchivers;
focal_class.type: Map<String, ProductArchiver>
focal_class.var_name: productArchivers
focal_class.declarator: formats
focal_class.modifier: @Parameter
      private
focal_class.original_string: @Parameter
      private Map<String, String> formats;
focal_class.type: Map<String, String>
focal_class.var_name: formats
focal_class.declarator: zipArchiver
focal_class.modifier: @Component(role = Archiver.class, hint = "zip")
      private
focal_class.original_string: @Component(role = Archiver.class, hint = "zip")
      private Archiver zipArchiver;
focal_class.type: Archiver
focal_class.var_name: zipArchiver
focal_class.declarator: tarArchiver
focal_class.modifier: @Component(role = Archiver.class, hint = "tar")
      private
focal_class.original_string: @Component(role = Archiver.class, hint = "tar")
      private TarArchiver tarArchiver;
focal_class.type: TarArchiver
focal_class.var_name: tarArchiver
focal_class.declarator: helper
focal_class.modifier: @Component
      private
focal_class.original_string: @Component
      private MavenProjectHelper helper;
focal_class.type: MavenProjectHelper
focal_class.var_name: helper
focal_class.file: tycho-p2/tycho-p2-director-plugin/src/main/java/org/eclipse/tycho/plugins/p2/director/ProductArchiverMojo.java
focal_class.identifier: ProductArchiverMojo
focal_class.class_method_signature: ProductArchiverMojo.ProductArchiverMojo()
focal_class.full_signature: public  ProductArchiverMojo()
focal_class.identifier: ProductArchiverMojo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ProductArchiverMojo()
focal_class.class_method_signature: ProductArchiverMojo.execute()
focal_class.full_signature: @Override public void execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void execute()
focal_class.class_method_signature: ProductArchiverMojo.createCommonsCompressTarGz(File productArchive, File sourceDir)
focal_class.full_signature: private void createCommonsCompressTarGz(File productArchive, File sourceDir)
focal_class.identifier: createCommonsCompressTarGz
focal_class.modifiers: private
focal_class.parameters: (File productArchive, File sourceDir)
focal_class.return: void
focal_class.signature: void createCommonsCompressTarGz(File productArchive, File sourceDir)
focal_class.class_method_signature: ProductArchiverMojo.getArchiveFormat(TargetEnvironment env)
focal_class.full_signature: private String getArchiveFormat(TargetEnvironment env)
focal_class.identifier: getArchiveFormat
focal_class.modifiers: private
focal_class.parameters: (TargetEnvironment env)
focal_class.return: String
focal_class.signature: String getArchiveFormat(TargetEnvironment env)
focal_class.class_method_signature: ProductArchiverMojo.getArchiveFileName(Product product)
focal_class.full_signature: static String getArchiveFileName(Product product)
focal_class.identifier: getArchiveFileName
focal_class.modifiers: static
focal_class.parameters: (Product product)
focal_class.return: String
focal_class.signature: String getArchiveFileName(Product product)
focal_class.class_method_signature: ProductArchiverMojo.getArtifactClassifier(Product product, TargetEnvironment environment)
focal_class.full_signature: static String getArtifactClassifier(Product product, TargetEnvironment environment)
focal_class.identifier: getArtifactClassifier
focal_class.modifiers: static
focal_class.parameters: (Product product, TargetEnvironment environment)
focal_class.return: String
focal_class.signature: String getArtifactClassifier(Product product, TargetEnvironment environment)
focal_class.superclass: extends AbstractProductMojo
focal_method.body: static String getArtifactClassifier(Product product, TargetEnvironment environment) {
          // classifier (and hence artifact file name) ends with os.ws.arch (similar to Eclipse
          // download packages)
          final String artifactClassifier;
          if (product.getAttachId() == null) {
              artifactClassifier = getOsWsArch(environment, '.');
          } else {
              artifactClassifier = product.getAttachId() + "-" + getOsWsArch(environment, '.');
          }
          return artifactClassifier;
      }
focal_method.class_method_signature: ProductArchiverMojo.getArtifactClassifier(Product product, TargetEnvironment environment)
focal_method.full_signature: static String getArtifactClassifier(Product product, TargetEnvironment environment)
focal_method.identifier: getArtifactClassifier
focal_method.invocations: getAttachId getOsWsArch getAttachId getOsWsArch
focal_method.modifiers: static
focal_method.parameters: (Product product, TargetEnvironment environment)
focal_method.return: String
focal_method.signature: String getArtifactClassifier(Product product, TargetEnvironment environment)