Search in sources :

Example 1 with EftarFile

use of org.opengrok.indexer.web.EftarFile in project OpenGrok by OpenGrok.

the class SystemController method loadPathDescriptions.

@POST
@Path("/pathdesc")
@Consumes(MediaType.APPLICATION_JSON)
public void loadPathDescriptions(@Valid final PathDescription[] descriptions) throws IOException {
    EftarFile ef = new EftarFile();
    ef.create(Set.of(descriptions), env.getDtagsEftarPath().toString());
    LOGGER.log(Level.INFO, "reloaded path descriptions with {0} entries", descriptions.length);
}
Also used : EftarFile(org.opengrok.indexer.web.EftarFile) Path(jakarta.ws.rs.Path) POST(jakarta.ws.rs.POST) Consumes(jakarta.ws.rs.Consumes)

Aggregations

Consumes (jakarta.ws.rs.Consumes)1 POST (jakarta.ws.rs.POST)1 Path (jakarta.ws.rs.Path)1 EftarFile (org.opengrok.indexer.web.EftarFile)1