mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
29 lines
1.1 KiB
Groovy
29 lines
1.1 KiB
Groovy
/*
|
|
* This file is part of dependency-check-maven.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* Copyright (c) 2014 Jeremy Long. All Rights Reserved.
|
|
*/
|
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
|
// Load NVD-CVE if not exist and had been saved in a previous IT
|
|
File datasDwl = new File("target/local-repo/org/owasp/dependency-check-data/3.0", "dc.h2.db");
|
|
File datasSave = new File("target/nvd-cve-backup", "dc.h2.db");
|
|
|
|
if (!datasDwl.exists() && datasSave.exists()){
|
|
System.out.println("Load NVD-CVE from backup");
|
|
FileUtils.copyFile(datasSave, datasDwl);
|
|
}
|