mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
fix some small bugs
This commit is contained in:
@@ -38,14 +38,12 @@ package sonia.scm.maven;
|
|||||||
import org.apache.maven.plugin.MojoExecutionException;
|
import org.apache.maven.plugin.MojoExecutionException;
|
||||||
import org.apache.maven.plugin.MojoFailureException;
|
import org.apache.maven.plugin.MojoFailureException;
|
||||||
|
|
||||||
import org.jsoup.nodes.Element;
|
import org.jsoup.nodes.Document;
|
||||||
import org.jsoup.select.Elements;
|
|
||||||
|
|
||||||
//~--- JDK imports ------------------------------------------------------------
|
//~--- JDK imports ------------------------------------------------------------
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.jsoup.nodes.Document;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -58,10 +56,11 @@ public interface WebCompressor
|
|||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @param head
|
*
|
||||||
* @param elements
|
* @param document
|
||||||
* @param inputDirectory
|
* @param inputDirectory
|
||||||
* @param outputDirectory
|
* @param outputDirectory
|
||||||
|
* @param encoding
|
||||||
* @param outputPrefix
|
* @param outputPrefix
|
||||||
* @param concat
|
* @param concat
|
||||||
*
|
*
|
||||||
@@ -70,7 +69,7 @@ public interface WebCompressor
|
|||||||
* @throws MojoFailureException
|
* @throws MojoFailureException
|
||||||
*/
|
*/
|
||||||
public void compress(Document document, File inputDirectory,
|
public void compress(Document document, File inputDirectory,
|
||||||
File outputDirectory, String encoding, String outputPrefix,
|
File outputDirectory, String encoding,
|
||||||
boolean concat)
|
String outputPrefix, boolean concat)
|
||||||
throws IOException, MojoExecutionException, MojoFailureException;
|
throws IOException, MojoExecutionException, MojoFailureException;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,9 +53,7 @@ import java.util.Collection;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
|
||||||
import javax.ws.rs.core.Context;
|
import javax.ws.rs.core.Context;
|
||||||
import javax.ws.rs.core.MediaType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -226,7 +224,7 @@ public class RepositoryResource extends AbstractResource<Repository>
|
|||||||
|
|
||||||
if (ctxPath.endsWith("/"))
|
if (ctxPath.endsWith("/"))
|
||||||
{
|
{
|
||||||
ctxPath.substring(0, ctxPath.length() - 1);
|
ctxPath = ctxPath.substring(0, ctxPath.length() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
RepositoryHandler handler =
|
RepositoryHandler handler =
|
||||||
|
|||||||
@@ -49,8 +49,6 @@ import sonia.scm.util.Util;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
|
||||||
import javax.ws.rs.core.MediaType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user