File tree Expand file tree Collapse file tree
main/java/gov/loc/repository/bagit
test/java/gov/loc/repository/bagit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ if(BagVerifier.canQuickVerify(bag)){
6565```
6666
6767## Developing Bagit-Java
68- Bagit-Java uses [ Grad;e] ( https://gradle.org/ ) for its build system. Check out the great [ documentation] ( https://docs.gradle.org/current/userguide/userguide_single.html ) to learn more.
69- ##### Building a Jar
70- Inside the bagit-java root directory, run ` gradle jar ` .
68+ Bagit-Java uses [ Gradle] ( https://gradle.org/ ) for its build system. Check out the great [ documentation] ( https://docs.gradle.org/current/userguide/userguide_single.html ) to learn more.
7169##### Running tests and code quality checks
7270Inside the bagit-java root directory, run ` gradle check ` .
7371##### Uploading to maven central
@@ -85,3 +83,8 @@ Simply run `gradle eclipse` and it will automatically create a eclipse project f
8583* Integrate new proposed specification we are calling "dot bagit"
8684* Fix bugs/issues reported with new library (on going)
8785* Add extensions for more than standard supported algorithms
86+
87+ ### Support
88+ 1 . If you have an issue using bagit-java you may contact us at
89+ 2 . If you have found a bug please create a new issue on [ the issues page] ( https://github.com/LibraryOfCongress/bagit-java/issues )
90+ 3 . If you would like to contribute, please submit a [ pull request] ( https://help.github.com/articles/creating-a-pull-request/ )
Original file line number Diff line number Diff line change 1313
1414import gov .loc .repository .bagit .domain .Bag ;
1515import gov .loc .repository .bagit .domain .Manifest ;
16- import gov .loc .repository .bagit .domain .SupportedAlgorithm ;
1716import gov .loc .repository .bagit .domain .Version ;
17+ import gov .loc .repository .bagit .hash .SupportedAlgorithm ;
1818import gov .loc .repository .bagit .verify .BagVerifier ;
1919import gov .loc .repository .bagit .writer .BagWriter ;
2020
Original file line number Diff line number Diff line change 44import java .io .File ;
55import java .util .HashMap ;
66
7+ import gov .loc .repository .bagit .hash .SupportedAlgorithm ;
8+
79/**
810 * A manifest is a list of files and their corresponding checksum with the algorithm used to generate that checksum
911 */
Original file line number Diff line number Diff line change 1- package gov .loc .repository .bagit .domain ;
1+ package gov .loc .repository .bagit .hash ;
22
33/**
44 * The standard algorithms that are supported "out of the box" in bagit
Original file line number Diff line number Diff line change 1- package gov .loc .repository .bagit .domain ;
1+ package gov .loc .repository .bagit .hash ;
22
33import java .security .MessageDigest ;
44
Original file line number Diff line number Diff line change 1616import gov .loc .repository .bagit .domain .Bag ;
1717import gov .loc .repository .bagit .domain .FetchItem ;
1818import gov .loc .repository .bagit .domain .Manifest ;
19- import gov .loc .repository .bagit .domain .StandardSupportedAlgorithms ;
2019import gov .loc .repository .bagit .domain .Version ;
2120import gov .loc .repository .bagit .exceptions .UnparsableVersionException ;
21+ import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
2222import gov .loc .repository .bagit .verify .PayloadFileExistsInManifestVistor ;
2323
2424/**
Original file line number Diff line number Diff line change 2222import gov .loc .repository .bagit .domain .Bag ;
2323import gov .loc .repository .bagit .domain .FetchItem ;
2424import gov .loc .repository .bagit .domain .Manifest ;
25- import gov .loc .repository .bagit .domain .SupportedAlgorithm ;
2625import gov .loc .repository .bagit .domain .Version ;
2726import gov .loc .repository .bagit .exceptions .CorruptChecksumException ;
2827import gov .loc .repository .bagit .exceptions .FileNotInPayloadDirectoryException ;
3130import gov .loc .repository .bagit .exceptions .MissingPayloadDirectoryException ;
3231import gov .loc .repository .bagit .exceptions .MissingPayloadManifestException ;
3332import gov .loc .repository .bagit .exceptions .PayloadOxumDoesNotExistException ;
33+ import gov .loc .repository .bagit .hash .SupportedAlgorithm ;
3434import gov .loc .repository .bagit .reader .BagReader ;
3535import gov .loc .repository .bagit .tasks .CheckIfFileExistsTask ;
3636import gov .loc .repository .bagit .tasks .CheckManifestHashsTask ;
Original file line number Diff line number Diff line change 1313
1414import gov .loc .repository .bagit .domain .Bag ;
1515import gov .loc .repository .bagit .domain .Manifest ;
16- import gov .loc .repository .bagit .domain .StandardSupportedAlgorithms ;
1716import gov .loc .repository .bagit .domain .Version ;
17+ import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
1818
1919public class BagCreatorTest extends Assert {
2020 @ Rule
Original file line number Diff line number Diff line change 1818
1919import gov .loc .repository .bagit .domain .Bag ;
2020import gov .loc .repository .bagit .domain .Manifest ;
21- import gov .loc .repository .bagit .domain .StandardSupportedAlgorithms ;
2221import gov .loc .repository .bagit .exceptions .CorruptChecksumException ;
2322import gov .loc .repository .bagit .exceptions .FileNotInManifestException ;
2423import gov .loc .repository .bagit .exceptions .FileNotInPayloadDirectoryException ;
2524import gov .loc .repository .bagit .exceptions .InvalidPayloadOxumException ;
2625import gov .loc .repository .bagit .exceptions .MissingBagitFileException ;
2726import gov .loc .repository .bagit .exceptions .MissingPayloadDirectoryException ;
2827import gov .loc .repository .bagit .exceptions .MissingPayloadManifestException ;
28+ import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
2929import gov .loc .repository .bagit .reader .BagReader ;
3030
3131public class BagVerifierTest extends Assert {
Original file line number Diff line number Diff line change 1818import gov .loc .repository .bagit .domain .Bag ;
1919import gov .loc .repository .bagit .domain .FetchItem ;
2020import gov .loc .repository .bagit .domain .Manifest ;
21- import gov .loc .repository .bagit .domain .StandardSupportedAlgorithms ;
2221import gov .loc .repository .bagit .domain .Version ;
22+ import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
2323import gov .loc .repository .bagit .reader .BagReader ;
2424
2525public class BagWriterTest extends Assert {
You can’t perform that action at this time.
0 commit comments