Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ public class JSonBagger implements Bagger {

private File profilesFolder;

private static final String BAGGER_PROFILES_HOME_PROPERTY = "BAGGER_PROFILES_HOME";
private static final String RESOURCE_DIR = "gov/loc/repository/bagger/profiles";
private static final String[] DEFAULT_PROFILES = new String[]{"eDeposit-profile.json", "ndiipp-profile.json", "ndnp-profile.json", "other-project-profile.json"};

public JSonBagger() {
String homeDir = System.getProperty("user.home");
if(System.getProperties().containsKey(BAGGER_PROFILES_HOME_PROPERTY)){
homeDir = System.getProperty(BAGGER_PROFILES_HOME_PROPERTY);
}
String profilesPath = homeDir + File.separator + "bagger";
profilesFolder = new File(profilesPath);
String baggerJarPath = this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
Expand Down
2 changes: 1 addition & 1 deletion bagger/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "de.undercouch.download" version "1.2"
id "de.undercouch.download" version "2.0.0"
}

apply plugin: "application"
Expand Down