@Test void getClassifier( ) { assertClassifier( "sources", "","java-source" ); assertClassifier( "tests", "", "test-jar" ); assertClassifier( "client", "","ejb-client" ); assertClassifier( "javadoc", "","javadoc" ); assertClassifier( "", "","test" ); assertClassifier( "test1", "test1","java-source" ); assertClassifier( "test2", "test2", "test-jar" ); assertClassifier( "test3", "test3","ejb-client" ); assertClassifier( "test4", "test4","javadoc" ); assertClassifier( "test5", "test5","test" ); }
static String getClassifier( ItemSelector selector ) { if ( selector.hasClassifier( ) ) { return selector.getClassifier( ); } else if ( selector.hasType( ) ) { return getClassifierFromType( selector.getType( ) ); } else { return ""; } }
MavenContentHelper { static String getClassifier( ItemSelector selector ) { if ( selector.hasClassifier( ) ) { return selector.getClassifier( ); } else if ( selector.hasType( ) ) { return getClassifierFromType( selector.getType( ) ); } else { return ""; } } }
MavenContentHelper { static String getClassifier( ItemSelector selector ) { if ( selector.hasClassifier( ) ) { return selector.getClassifier( ); } else if ( selector.hasType( ) ) { return getClassifierFromType( selector.getType( ) ); } else { return ""; } } MavenContentHelper(); }
MavenContentHelper { static String getClassifier( ItemSelector selector ) { if ( selector.hasClassifier( ) ) { return selector.getClassifier( ); } else if ( selector.hasType( ) ) { return getClassifierFromType( selector.getType( ) ); } else { return ""; } } MavenContentHelper(); void setMetadataReader( MavenMetadataReader metadataReader ); static String getNamespaceFromNamespacePath( final StorageAsset namespacePath); String getArtifactVersion( StorageAsset artifactDir, ItemSelector selector); String getLatestArtifactSnapshotVersion( StorageAsset artifactDir, String snapshotVersion); }
MavenContentHelper { static String getClassifier( ItemSelector selector ) { if ( selector.hasClassifier( ) ) { return selector.getClassifier( ); } else if ( selector.hasType( ) ) { return getClassifierFromType( selector.getType( ) ); } else { return ""; } } MavenContentHelper(); void setMetadataReader( MavenMetadataReader metadataReader ); static String getNamespaceFromNamespacePath( final StorageAsset namespacePath); String getArtifactVersion( StorageAsset artifactDir, ItemSelector selector); String getLatestArtifactSnapshotVersion( StorageAsset artifactDir, String snapshotVersion); static final Pattern UNIQUE_SNAPSHOT_NUMBER_PATTERN; static final String METADATA_FILENAME; static final String METADATA_REPOSITORY_FILENAME; }