Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic gradle integration #2

Merged
merged 2 commits into from
Mar 12, 2014
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
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