Skip to content

Commit 022ab11

Browse files
richard-joneslap82
authored andcommitted
Added license and author
1 parent aa530c8 commit 022ab11

29 files changed

+285
-20
lines changed

.gitignore

+34-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
1-
.idea/
2-
resourcesync.iml
1+
*.bak
2+
## Ignore the MVN compiled output directories from version tracking
33
target/
44

5+
## Ignore project files created by Eclipse
6+
.settings/
7+
/bin/
8+
.project
9+
.classpath
10+
11+
## Ignore project files created by IntelliJ IDEA
12+
*.iml
13+
*.ipr
14+
*.iws
15+
.idea/
16+
overlays/
17+
18+
## Ignore project files created by NetBeans
19+
nbproject/private/
20+
build/
21+
nbbuild/
22+
dist/
23+
nbdist/
24+
nbactions.xml
25+
nb-configuration.xml
26+
META-INF/
27+
28+
## Ignore all *.properties file in root folder, EXCEPT build.properties (the default)
29+
/*.properties
30+
!/build.properties
31+
32+
##Mac noise
33+
.DS_Store
34+
rebel.xml
35+
.externalToolBuilders/
36+
local.cfg

LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2002-2018, DuraSpace.
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
13+
See https://opensource.org/licenses/BSD-3-Clause

LICENSE_HEADER

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The contents of this file are subject to the license and copyright
2+
detailed in the LICENSE and NOTICE files at the root of the source
3+
tree

NOTICE

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
Licensing Notice
3+
4+
The project is based on code initially developed by Richard Jones at CottageLabs.
5+
In May 2018 the copyright was waived in favour of the DuraSpace Foundation to
6+
allow wide contribution and simplify the adoption by the DSpace community.

pom.xml

+58
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<artifactId>resourcesync</artifactId>
99
<version>1.1-SNAPSHOT</version>
1010

11+
<properties>
12+
<root.basedir>${basedir}</root.basedir>
13+
</properties>
14+
1115
<build>
1216
<plugins>
1317
<plugin>
@@ -19,6 +23,60 @@
1923
<target>1.6</target>
2024
</configuration>
2125
</plugin>
26+
<plugin>
27+
<groupId>com.mycila</groupId>
28+
<artifactId>license-maven-plugin</artifactId>
29+
<configuration>
30+
<!-- License header file (can be a URL, but that's less stable if external site is down on occasion) -->
31+
<header>${root.basedir}/LICENSE_HEADER</header>
32+
<!--Just check headers of everything in the /src directory -->
33+
<includes>
34+
<include>src/**</include>
35+
</includes>
36+
<!--Use all default exclusions for IDE files & Maven files, see:
37+
http://code.google.com/p/maven-license-plugin/wiki/Configuration#Default_excludes -->
38+
<useDefaultExcludes>true</useDefaultExcludes>
39+
<!-- Add some default DSpace exclusions not covered by <useDefaultExcludes>
40+
Individual Maven projects may choose to override these defaults. -->
41+
<excludes>
42+
<exclude>**/src/test/resources/**</exclude>
43+
<exclude>**/src/test/data/**</exclude>
44+
<exclude>**/src/main/license/**</exclude>
45+
<exclude>**/testEnvironment.properties</exclude>
46+
<exclude>**/META-INF/**</exclude>
47+
<exclude>**/robots.txt</exclude>
48+
<exclude>**/*.LICENSE</exclude>
49+
<exclude>**/LICENSE*</exclude>
50+
<exclude>**/README*</exclude>
51+
<exclude>**/readme*</exclude>
52+
<exclude>**/.gitignore</exclude>
53+
<exclude>**/build.properties*</exclude>
54+
<exclude>**/rebel.xml</exclude>
55+
</excludes>
56+
<mapping>
57+
<!-- Custom DSpace file extensions which are not recognized by maven-release-plugin:
58+
*.xmap, *.xslt, *.wsdd, *.wsdl, *.ttl, *.LICENSE -->
59+
<xmap>XML_STYLE</xmap>
60+
<xslt>XML_STYLE</xslt>
61+
<wsdd>XML_STYLE</wsdd>
62+
<wsdl>XML_STYLE</wsdl>
63+
<ttl>SCRIPT_STYLE</ttl>
64+
<LICENSE>TEXT</LICENSE>
65+
</mapping>
66+
<encoding>UTF-8</encoding>
67+
<!-- maven-license-plugin recommends a strict check (e.g. check spaces/tabs too) -->
68+
<strictCheck>true</strictCheck>
69+
</configuration>
70+
<executions>
71+
<execution>
72+
<id>check-headers</id>
73+
<phase>verify</phase>
74+
<goals>
75+
<goal>check</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
2280
</plugins>
2381
</build>
2482

src/main/java/org/openarchives/resourcesync/CapabilityList.java

+8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.util.ArrayList;
49
import java.util.Date;
510
import java.util.List;
611

12+
/**
13+
* @author Richard Jones
14+
*/
715
public class CapabilityList extends UrlSet
816
{
917
private List<String> allowedCapabilities = new ArrayList<String>();

src/main/java/org/openarchives/resourcesync/ChangeDump.java

+8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.util.Date;
49

10+
/**
11+
* @author Richard Jones
12+
*/
513
public class ChangeDump extends UrlSet
614
{
715

src/main/java/org/openarchives/resourcesync/ChangeList.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.util.Date;
4-
9+
/**
10+
* @author Richard Jones
11+
*/
512
public class ChangeList extends UrlSet
613
{
714

src/main/java/org/openarchives/resourcesync/ChangeListArchive.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.io.InputStream;
49
import java.util.Date;
5-
10+
/**
11+
* @author Richard Jones
12+
*/
613
public class ChangeListArchive extends SitemapIndex
714
{
815
public ChangeListArchive()

src/main/java/org/openarchives/resourcesync/ResourceDump.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

3-
import com.sun.org.apache.xpath.internal.functions.FuncStringLength;
48

59
import java.util.Date;
6-
10+
/**
11+
* @author Richard Jones
12+
*/
713
public class ResourceDump extends UrlSet
814
{
915

src/main/java/org/openarchives/resourcesync/ResourceList.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.util.Date;
4-
9+
/**
10+
* @author Richard Jones
11+
*/
512
public class ResourceList extends UrlSet
613
{
714
public ResourceList()

src/main/java/org/openarchives/resourcesync/ResourceSync.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import org.jdom2.Namespace;
49

510
import java.text.SimpleDateFormat;
6-
11+
/**
12+
* @author Richard Jones
13+
*/
714
public class ResourceSync
815
{
916
// namespaces

src/main/java/org/openarchives/resourcesync/ResourceSyncDescription.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.util.List;
4-
9+
/**
10+
* @author Richard Jones
11+
*/
512
public class ResourceSyncDescription extends UrlSet
613
{
714
public ResourceSyncDescription()

src/main/java/org/openarchives/resourcesync/ResourceSyncDescriptionIndex.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
2-
7+
/**
8+
* @author Richard Jones
9+
*/
310
public class ResourceSyncDescriptionIndex extends SitemapIndex{
411

512
public ResourceSyncDescriptionIndex(String capability) {

src/main/java/org/openarchives/resourcesync/ResourceSyncDocument.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import org.jdom2.Document;
@@ -13,11 +18,11 @@
1318
import java.text.ParseException;
1419
import java.util.ArrayList;
1520
import java.util.Date;
16-
import java.util.HashMap;
1721
import java.util.List;
18-
import java.util.Map;
1922
import java.util.TreeMap;
20-
23+
/**
24+
* @author Richard Jones
25+
*/
2126
public abstract class ResourceSyncDocument
2227
{
2328
// these options should be provided by the extending class through the constructor overrides

src/main/java/org/openarchives/resourcesync/ResourceSyncEntry.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import org.jdom2.Element;
@@ -9,7 +14,9 @@
914
import java.util.HashMap;
1015
import java.util.List;
1116
import java.util.Map;
12-
17+
/**
18+
* @author Richard Jones
19+
*/
1320
public abstract class ResourceSyncEntry
1421
{
1522

src/main/java/org/openarchives/resourcesync/ResourceSyncLn.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import java.io.InputStream;
49
import java.util.Date;
510
import java.util.HashMap;
611
import java.util.Map;
7-
12+
/**
13+
* @author Richard Jones
14+
*/
815
public class ResourceSyncLn
916
{
1017

src/main/java/org/openarchives/resourcesync/Sitemap.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
2-
7+
/**
8+
* @author Richard Jones
9+
*/
310
public class Sitemap extends ResourceSyncEntry
411
{
512
public Sitemap()

src/main/java/org/openarchives/resourcesync/SitemapIndex.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
27

38
import org.jdom2.Element;
49

510
import java.io.InputStream;
611
import java.text.ParseException;
712
import java.util.List;
8-
13+
/**
14+
* @author Richard Jones
15+
*/
916
public class SitemapIndex extends ResourceSyncDocument
1017
{
1118
public SitemapIndex(String capability)

src/main/java/org/openarchives/resourcesync/SpecComplianceException.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
/**
2+
* The contents of this file are subject to the license and copyright
3+
* detailed in the LICENSE and NOTICE files at the root of the source
4+
* tree
5+
*/
16
package org.openarchives.resourcesync;
2-
7+
/**
8+
* @author Richard Jones
9+
*/
310
public class SpecComplianceException extends RuntimeException
411
{
512
public SpecComplianceException()

0 commit comments

Comments
 (0)