Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Jan 21, 2024
1 parent 1383d20 commit 9953805
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Contact:

## Install

Coming is deployed on Maven Central, see [past versions](https://repo1.maven.org/maven2/com/github/spoonlabs/coming/).

To build yourself, the procedure is as follows.

Add a github token in `.m2/settings.xml`.

```xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public void getInstancesOfRevision(RevisionResult revisionResult, JsonArray inst
opjson.add("concrete_change", getJSONFromOperator(op));

if (op.getNode().getPosition() != null) {
opjson.addProperty("file", op.getNode().getPosition().getFile().getAbsolutePath());
final String repoPath = new File(ComingProperties.getProperty("location")).getAbsolutePath();
final String relativePath = op.getNode().getPosition().getFile().getAbsolutePath().replace(new File(System.getProperty("user.dir")).getAbsolutePath(), "");
opjson.addProperty("file", repoPath+File.separator+ relativePath);
opjson.addProperty("line", op.getNode().getPosition().getLine());
}
ops.add(opjson);
Expand Down

0 comments on commit 9953805

Please sign in to comment.