@@ -70,6 +70,7 @@ static string DownloadPayload (BindingConfig config, BindingProjectModel artifac
70
70
var a = artifact . ToArtifact ( ) ;
71
71
72
72
if ( artifact_model . MavenArtifactPackaging == "jar" || artifact_model . MavenArtifactPackaging == "aar" ) {
73
+ Console . WriteLine ( $ "Downloading { a } from { repository . Name } ...") ;
73
74
if ( repository . TryGetFilePath ( a , FormatPayloadFileName ( a , artifact_model . MavenArtifactPackaging ) , out var payload_path ) )
74
75
return payload_path ;
75
76
@@ -78,11 +79,13 @@ static string DownloadPayload (BindingConfig config, BindingProjectModel artifac
78
79
79
80
// Sometimes the "MavenArtifactPackaging" isn't useful, like "bundle" for Guava or "pom" for KotlinX Coroutines.
80
81
// In this case we're going to try "jar" and "aar" to try to find the real payload
82
+ Console . WriteLine ( $ "Downloading { a } as a jar from { repository . Name } ...") ;
81
83
if ( repository . TryGetFilePath ( a , FormatPayloadFileName ( a , "jar" ) , out var jar_path ) ) {
82
84
artifact_model . MavenArtifactPackaging = "jar" ;
83
85
return jar_path ;
84
86
}
85
87
88
+ Console . WriteLine ( $ "Downloading { a } as an aar from { repository . Name } ...") ;
86
89
if ( repository . TryGetFilePath ( a , FormatPayloadFileName ( a , "aar" ) , out var aar_path ) ) {
87
90
artifact_model . MavenArtifactPackaging = "aar" ;
88
91
return aar_path ;
@@ -102,18 +105,21 @@ static void DownloadAdditionalFiles (BindingConfig config, BindingProjectModel a
102
105
if ( config . DownloadJavaSourceJars ) {
103
106
var source_file = FormatMavenFileName ( art ) + "-sources.jar" ;
104
107
var dest_file = base_output_file_name + "-sources.jar" ;
108
+ Console . WriteLine ( $ "Downloading { art } sources jar from { repository . Name } ...") ;
105
109
TryDownloadFile ( repository , art , source_file , Path . Combine ( artifact_dir , dest_file ) ) ;
106
110
}
107
111
108
112
if ( config . DownloadPoms ) {
109
113
var pom_file = FormatMavenFileName ( art ) + ".pom" ;
110
114
var dest_file = base_output_file_name + ".pom" ;
115
+ Console . WriteLine ( $ "Downloading { art } pom file from { repository . Name } ...") ;
111
116
TryDownloadFile ( repository , art , pom_file , Path . Combine ( artifact_dir , dest_file ) ) ;
112
117
}
113
118
114
119
if ( config . DownloadJavaDocJars ) {
115
120
var javadoc_file = FormatMavenFileName ( art ) + "-javadoc.jar" ;
116
121
var dest_file = base_output_file_name + "-javadoc.jar" ;
122
+ Console . WriteLine ( $ "Downloading { art } javadoc jar from { repository . Name } ...") ;
117
123
TryDownloadFile ( repository , art , javadoc_file , Path . Combine ( artifact_dir , dest_file ) ) ;
118
124
}
119
125
}
0 commit comments