Skip to content

Commit

Permalink
remove ant from doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed May 3, 2020
1 parent c7dfbee commit 49f3cc0
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions doc/Grobid-java-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ and grobid-core-`<current version>`.jar
A complete working **maven** project example of usage of GROBID Java API can be found here: [https://github.com/kermitt2/grobid-example](https://github.com/kermitt2/grobid-example).
The example project is using GROBID Java API for extracting header metadata and citations from a PDF and output the results in BibTex format.

An example project for using GROBID in an **ant** project is available [here](https://github.com/kermitt2/grobid-test-ant).

## Using maven

GROBID releases are uploaded on the [grobid bintray](https://bintray.com/rookies/maven/grobid) repository.
Expand Down Expand Up @@ -139,32 +137,6 @@ Then you can test the toy project:
> mvn test
```

## ant Skeleton project example

If you are using __ant__ to build your project, the following repo gives a toy example ant project integrating Grobid in a third party Java project: [grobid-test-ant](https://github.com/kermitt2/grobid-test-ant).

Create the grobid-core jar library, under the main project directory `grobid/`:
```bash
> ./gradlew clean install
```

Copy the grobid-core jar library (not the onejar, the standard grobid-core jar) under grobid-test-ant/lib.
```bash
> cp grobid-core/build/libs/grobid-core-<current version>.jar <path_to_grobid_test>/grobid-test-ant/lib
```
The skeleton project contains the other required jar.

The paths to __grobid-home__ must be changed in the project property file: `grobid-test-ant/grobid-example.properties` according to your installation, for instance:

grobid_test_ant.pGrobidHome=/Users/lopez/grobid/grobid-home
grobid_test_ant.pGrobidProperties=/Users/lopez/grobid/grobid-home/config/grobid.properties

Then build and test the toy project:
```bash
> ant jar
> ant test
```

## Javadoc

The javadoc of the Grobid project is available [here](http://grobid.github.io/). All the main methods of the Grobid Java API are currently accessible via the single class [org.grobid.core.engines.Engine](http://grobid.github.io/grobid-core/org/grobid/core/engines/Engine.html). The various test files under `grobid/grobid-core/src/test/java/org/grobid/core/test` further illustrate how to use the Grobid java API.

0 comments on commit 49f3cc0

Please sign in to comment.