Skip to content
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
11 changes: 6 additions & 5 deletions .jbang/JabSrvLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/command/Command.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/command/CommandResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/command/SelectEntriesCommand.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/resources/LibrariesResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/resources/LibraryResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/resources/MapResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/resources/RootResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/services/FilesToServe.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/services/ServerUtils.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/CORSFilter.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/LibrariesResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/LibraryResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/PreferencesFactory.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/RootResource.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/Server.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/services/FilesToServe.java
//SOURCES ../jabsrv/src/main/java/org/jabref/http/server/services/ServerUtils.java

// REPOS mavencentral,snapshots=https://central.sonatype.com/repository/maven-snapshots/
// REPOS mavencentral,mavencentralsnapshots=https://central.sonatype.com/repository/maven-snapshots/,s01oss=https://s01.oss.sonatype.org/content/repositories/snapshots/,oss=https://oss.sonatype.org/content/repositories,jitpack=https://jitpack.io,oss2=https://oss.sonatype.org/content/groups/public,ossrh=https://oss.sonatype.org/content/repositories/snapshots
Expand Down
2 changes: 1 addition & 1 deletion docs/code-howtos/http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parent: Code Howtos
JabRef has a built-in http server.
The source is located in the project `jabsrv`.

The resource for a library is implemented at [`org.jabref.http.server.LibraryResource`](https://github.com/JabRef/jabref/blob/main/jabsrv/src/main/java/org/jabref/http/server/LibraryResource.java).
The resource for a library is implemented at [`org.jabref.http.server.resources.LibraryResource`](https://github.com/JabRef/jabref/blob/main/jabsrv/src/main/java/org/jabref/http/server/resources/LibraryResource.java).

## Start http server

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void main(final String[] args) throws InterruptedException {

@Override
public Void call() throws InterruptedException {
// The server serves the last opened files (see org.jabref.http.server.LibraryResource.getLibraryPath)
// The server serves the last opened files (see org.jabref.http.server.resources.LibraryResource.getLibraryPath)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment does not add new information or reasoning to the code. It merely restates what the code is doing, which is discouraged.

final List<Path> filesToServe = new ArrayList<>(JabRefCliPreferences.getInstance().getLastFilesOpenedPreferences().getLastFilesOpened());

// Additionally, files can be provided as args
Expand Down
3 changes: 2 additions & 1 deletion jabsrv/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
opens org.jabref.http.server.command to com.google.gson, org.glassfish.hk2.locator, org.glassfish.hk2.utilities, com.fasterxml.jackson.databind;
exports org.jabref.http.server.services;
exports org.jabref.http;
opens org.jabref.http.server.resources to org.glassfish.hk2.locator, org.glassfish.hk2.utilities;
exports org.jabref.http.server.resources;

requires javafx.base;

Expand Down Expand Up @@ -58,5 +60,4 @@
requires jersey.server;
requires com.fasterxml.jackson.annotation;
requires com.fasterxml.jackson.databind;

}
342 changes: 0 additions & 342 deletions jabsrv/src/main/java/org/jabref/http/server/LibraryResource.java

This file was deleted.

Loading
Loading