fix some small bugs

This commit is contained in:
Sebastian Sdorra
2010-11-23 19:02:09 +01:00
parent ad78ce8e20
commit 00b5191821
3 changed files with 7 additions and 12 deletions

View File

@@ -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;
} }

View File

@@ -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 =

View File

@@ -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;
/** /**
* *