<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
- <output url="file://$MODULE_DIR$/../../target/classes" />
- <output-test url="file://$MODULE_DIR$/../../target/test-classes" />
- <content url="file://$MODULE_DIR$/../..">
- <sourceFolder url="file://$MODULE_DIR$/../../src/main/java" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/../../src/main/resources" type="java-resource" />
- <excludeFolder url="file://$MODULE_DIR$/../../target" />
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
+ <excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<snapshotRepository>
<id>svjatoslav.eu</id>
<name>svjatoslav.eu</name>
- <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
+ <url>scpexe://svjatoslav.eu:10006/srv/maven</url>
</snapshotRepository>
<repository>
<id>svjatoslav.eu</id>
<name>svjatoslav.eu</name>
- <url>scpexe://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
+ <url>scpexe://svjatoslav.eu:10006/srv/maven</url>
</repository>
</distributionManagement>
import java.io.ObjectInputStream;
import java.io.UnsupportedEncodingException;
import java.net.URL;
-import java.net.URLEncoder;
import java.util.List;
public class WebIndexer extends AbstractIndexer {
@Override
public String getDirectoryUrl(final AbstractFile directory,
final IndexingContext context) {
-
- try {
- return jspPath + context.getLocalUrl() + "/"
- + URLEncoder.encode(directory.fileName, "UTF-8");
- } catch (final UnsupportedEncodingException e) {
- throw new RuntimeException(e);
- }
+ return jspPath + context.getLocalUrl() + "/" + directory.fileName;
}
public String getHtml(String requestPath) throws
// assemble final page HTML
final StringBuilder html = new StringBuilder();
- if (doHtmlHeaderAndFooter) {
- // page header
- html.append("<HTML>\n");
- html.append("<HEAD>\n");
- html.append(" <meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\"/>\n");
- html.append("</HEAD>\n");
- html.append("<BODY bgcolor=\"#000000\" alink=\"#50ffff\" link=\"#50ffff\" vlink=\"#ff50ff\" text=\"#ffffff\">\n");
- html.append("<!-- " + Constants.HTML_MAGIC_STRING + " -->\n");
- html.append("<!-- " + Constants.HTML_MEMO + " -->\n");
- html.append("<font color=\"#ffffff\">\n");
- }
+ if (doHtmlHeaderAndFooter)
+ appendHtmlHeader(html);
if (showTitle)
html.append("<CENTER><H1>" + galleryTitle + "</H1></CENTER>\n");
html.append(filesHtml.toString());
if (doHtmlHeaderAndFooter)
- html.append("</font></BODY></HTML>\n");
+ appendHtmlFooter(html);
return html.toString();
}
+ private void appendHtmlFooter(StringBuilder html) {
+ html.append("</font></BODY></HTML>\n");
+ }
+
+ private void appendHtmlHeader(StringBuilder html) {
+ // page header
+ html.append("<HTML>\n");
+ html.append("<HEAD>\n");
+ html.append(" <meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\"/>\n");
+ html.append("</HEAD>\n");
+ html.append("<BODY bgcolor=\"#000000\" alink=\"#50ffff\" link=\"#50ffff\" vlink=\"#ff50ff\" text=\"#ffffff\">\n");
+ html.append("<!-- " + Constants.HTML_MAGIC_STRING + " -->\n");
+ html.append("<!-- " + Constants.HTML_MEMO + " -->\n");
+ html.append("<font color=\"#ffffff\">\n");
+ }
+
private String getImageThumbnailUrl(final Picture picture) {
final Dimension imageSize = picture.getDimensions();