Skip to content

Commit

Permalink
added the url to custom
Browse files Browse the repository at this point in the history
  • Loading branch information
annaibm committed May 24, 2024
1 parent 914d97c commit 3ca3966
Showing 1 changed file with 34 additions and 12 deletions.
46 changes: 34 additions & 12 deletions scripts/getDependencies.pl
Original file line number Diff line number Diff line change
Expand Up @@ -183,59 +183,82 @@
sha1 => '42a25dc3219429f0e5d060061f71acb49bf010a0'
},
bcprov_jdk18on => {
url => 'https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk18on/1.77/bcprov-jdk18on-1.77.jar',
url => 'https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1.jar',
fname => 'bcprov-jdk18on.jar',
sha1 => '2cc971b6c20949c1ff98d1a4bc741ee848a09523'
sha1 => '39e9e45359e20998eb79c1828751f94a818d25f8'
},
junit_vintage_engine => {
url => 'https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/5.10.2/junit-vintage-engine-5.10.2.jar',
fname => 'junit-vintage-engine.jar',
sha1 => '2905387f99f86a6618d1f7c005e7a5946224f317'
},
junit_platform_suite => {
url => 'https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite/1.10.1/junit-platform-suite-1.10.1.jar',
fname => 'junit-platform-suite.jar',
sha1 => 'a219dbd79ec2b1fc61b806554fcf4eb5c17a6d1d'
},
junit_jupiter_api => {
url => 'https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar',
fname => 'junit-jupiter-api.jar',
sha1 => 'fb55d6e2bce173f35fd28422e7975539621055ef'
},
junit_jupiter_engine => {
url => 'https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-engine/5.10.2/junit-jupiter-engine-5.10.2.jar',
fname => 'junit-jupiter-engine.jar',
sha1 => 'f1f8fe97bd58e85569205f071274d459c2c4f8cd'
},
junit_jupiter_params => {
url => 'https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-params/5.10.2/junit-jupiter-params-5.10.2.jar',
fname => 'junit-jupiter-params.jar',
sha1 => '359132c82a9d3fa87a325db6edd33b5fdc67a3d8'
},
junit_platform_suite_api => {
url => 'https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-api/1.10.2/junit-platform-suite-api-1.10.2.jar',
fname => 'junit-platform-suite-api.jar',
sha1 => '174bba1574c37352b0eb2c06e02b6403738ad57c'
});

my %system_jars = (
ant_launcher => {
url => 'https://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar',
dir => 'apache-ant/lib',
fname => 'ant-launcher.jar',
sha1 => 'c99d018fcc43a1540e465b9a097508b19075198c',
is_system_test => 1
},
asm => {
url => 'https://repository.ow2.org/nexus/content/repositories/releases/org/ow2/asm/asm/9.0/asm-9.0.jar',
dir => 'asm',
fname => 'asm.jar',
sha1 => 'af582ff60bc567c42d931500c3fdc20e0141ddf9',
is_system_test => 1
},
cvsclient => {
url => 'https://repo1.maven.org/maven2/org/netbeans/lib/cvsclient/20060125/cvsclient-20060125.jar',
dir => 'cvsclient',
fname => 'org-netbeans-lib-cvsclient.jar',
sha1 => 'cc80bd0085c79be7ed332cbdc1db77498bff1fda',
is_system_test => 1
},
hamcrest_core => {
url => 'https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar',
dir => 'junit',
fname => 'hamcrest-core.jar',
sha1 => '42a25dc3219429f0e5d060061f71acb49bf010a0',
is_system_test => 1
},
junit => {
url => 'https://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar',
dir => 'junit',
fname => 'junit.jar',
sha1 => '2973d150c0dc1fefe998f834810d68f278ea58ec',
is_system_test => 1
},
log4j_api => {
url => 'https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.15.0/log4j-api-2.15.0.jar',
dir => 'log4j',
fname => 'log4j-api.jar',
sha1 => '4a5aa7e55a29391c6f66e0b259d5189aa11e45d0',
is_system_test => 1
},
log4j_core => {
url => 'https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.15.0/log4j-core-2.15.0.jar',
dir => 'log4j',
fname => 'log4j-core.jar',
sha1 => 'ba55c13d7ac2fd44df9cc8074455719a33f375b9',
is_system_test => 1
},
mauve => {
Expand Down Expand Up @@ -298,6 +321,8 @@
if ($url_custom ne "") {
if ($jars_info[$i]{is_system_test}) {
$url_custom =~ s/test.getDependency/systemtest.getDependency/;
$url_custom .= "systemtest_prereqs/";
$url_custom .= $jars_info[$i]{dir};
}
print "Custom url changed to: $url_custom\n";
$url = "$url_custom/$fn";
Expand Down Expand Up @@ -363,9 +388,6 @@
$digest = $sha->hexdigest;

if ($digest ne $expectedsha) {
$url = $jars_info[$i]{url};
print "Retrying: Downloading with url: $url \n";
downloadFile($url,$filename);
print "Expected sha is: $expectedsha,\n";
print "Actual sha is : $digest.\n";
print "Please delete $filename and rerun the program!";
Expand Down

0 comments on commit 3ca3966

Please sign in to comment.