Skip to content

Commit

Permalink
Merge pull request #2 from JabRef/gradlev2
Browse files Browse the repository at this point in the history
Basic gradle integration
  • Loading branch information
koppor committed Mar 12, 2014
2 parents e9ae9d1 + a664687 commit cc0ba8e
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ src/windows/nsis/dist/
.gradle
jabref-launch4j.tmp
user.properties
out/
*.iws
*.ipr
*.iml
3 changes: 3 additions & 0 deletions build-wrapper.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<project default="test">
<include file="build.xml" as="antTargets"/>
</project>
61 changes: 61 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "application"

repositories {
mavenCentral()
}

sourceSets {
main {
java {
srcDir "src/java"
}
resources {
srcDirs = ["src"]
}
}
}

dependencies {

// jgoodies
compile 'com.jgoodies:jgoodies-common:1.4.0'
compile 'com.jgoodies:jgoodies-forms:1.6.0'
compile 'com.jgoodies:jgoodies-looks:2.5.2'

compile 'org.apache.pdfbox:pdfbox:1.7.1'
compile 'org.apache.pdfbox:fontbox:1.7.1'
compile 'org.apache.pdfbox:jempbox:1.7.1'


compile 'org.openoffice:juh:3.2.1'
compile 'org.openoffice:jurt:3.2.1'
compile 'org.openoffice:ridl:3.2.1'
compile 'org.openoffice:unoil:3.2.1'

compile 'org.antlr:antlr:3.4'

compile 'mysql:mysql-connector-java:5.0.7'
compile 'org.postgresql:postgresql:9.2-1002-jdbc4'

compile fileTree(dir: 'lib', includes: ['glazedlists-1.8.0_java15.jar', 'jayatana-1.2.4.jar', 'microba.jar', 'spin.jar'])

// not available in maven repository
compile fileTree(dir: 'lib/plugin', includes: ['jpf.jar', 'jpf-boot.jar', 'commons-logging.jar', 'JPFCodeGenerator-rt.jar'])

compile fileTree(dir: 'lib/spl/jersey', includes: ['*.jar'])
compile fileTree(dir: 'lib/spl/sciplore', includes: ['*.jar'])

compile 'junit:junit:3.8.2'
}

// use ant targets with prefix antTargets.XXXXX
ant.importBuild "build-wrapper.xml"

compileJava.dependsOn "antTargets.generate"

task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
10 changes: 8 additions & 2 deletions src/extensions/SimpleCsvImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ public String getFormatName() {
public boolean isRecognizedFormat(InputStream stream) throws IOException {
return true; // this is discouraged except for demonstration purposes
}

public List importEntries(InputStream stream) throws IOException {

@Override
public List<BibtexEntry> importEntries(InputStream in, OutputPrinter status) throws IOException {
// MUST BE IMPLEMENTED
return null;
}

public List importEntries(InputStream stream) throws IOException {
ArrayList bibitems = new ArrayList();
BufferedReader in = new BufferedReader(ImportFormatReader.getReaderDefaultEncoding(stream));

Expand Down

0 comments on commit cc0ba8e

Please sign in to comment.