Skip to content

Instantly share code, notes, and snippets.

@peterdietz
Created July 14, 2012 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterdietz/3109012 to your computer and use it in GitHub Desktop.
Save peterdietz/3109012 to your computer and use it in GitHub Desktop.
Instaling (Hedtek) dspace-rest as a module to dspace source
diff --git a/pom.xml b/pom.xml
index adee928..d024927 100755
--- a/pom.xml
+++ b/pom.xml
@@ -17,8 +17,8 @@
<parent>
<groupId>org.dspace</groupId>
<artifactId>dspace-parent</artifactId>
- <version>1.8.2-SNAPSHOT</version>
- <relativePath>..</relativePath>
+ <version>1.7.1</version>
+ <relativePath>../DSpaceOSUKB</relativePath>
</parent>
<repositories>
diff --git a/dspace-api/src/main/java/org/dspace/content/ItemIterator.java b/dspace-api/src/main/java/org/dspace/content/ItemIterator.java
index 980d375..d9aefaa 100644
--- a/dspace-api/src/main/java/org/dspace/content/ItemIterator.java
+++ b/dspace-api/src/main/java/org/dspace/content/ItemIterator.java
@@ -239,6 +239,13 @@ public class ItemIterator
}
}
+ public void skip() throws SQLException {
+ if (itemRows.hasNext())
+ {
+ itemRows.next();
+ }
+ }
+
/**
* Dispose of this Iterator, and it's underlying resources
*/
diff --git a/pom.xml b/pom.xml
index f3972cf..b06347e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -168,6 +168,18 @@
<maven.test.skip>true</maven.test.skip>
</properties>
</profile>
+
+ <profile>
+ <id>dspace-rest</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>../dspace-rest</module>
+ </modules>
+ </profile>
+
+
</profiles>
<!--
@peterdietz
Copy link
Author

While trying to install https://github.com/hedtek/dspace-rest to my DSpace repository, I had to add some missing code to my dspace-api, and wire up the link to the dspace-rest module.

The relationship between my dspace-source directory and the dspace-rest is that there are neighbors in some directory. I skipped to instructions that say to create a module in my dspace-source directory. I just wired that up via pom.

In the diff, I modified the dspace-rest module to have a proper relative path to my dspace-source. In my case my dspace-source is called DSpaceOSUKB. I altered the version number since we use dspace-1.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment