Skip to content
Snippets Groups Projects
Commit 3fb24b3a authored by Philipp Haker's avatar Philipp Haker
Browse files

MANIFEST added, otherwise no executable jar

parent 6b45654a
Branches master
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ this copy will then be able to serve everything that was in the `pathToContent` ...@@ -29,6 +29,7 @@ this copy will then be able to serve everything that was in the `pathToContent`
## TODO ## TODO
- [ ] Optional purely command line interface - [ ] Optional purely command line interface
- [ ] Built-In help
- [ ] Selectively add/remove hosted files - [ ] Selectively add/remove hosted files
- [ ] Dynamically generated page for `/`, if no `index.html` is present. - [ ] Dynamically generated page for `/`, if no `index.html` is present.
- [ ] Unified error pages - [ ] Unified error pages
......
Manifest-Version: 1.0
Main-Class: Main
...@@ -21,6 +21,7 @@ public class Main { ...@@ -21,6 +21,7 @@ public class Main {
private static final String NAME = "TinyHost"; private static final String NAME = "TinyHost";
private static final String VERSION = "0.5"; private static final String VERSION = "0.5";
private static final String HOME = "https://gitlab.informatik.uni-bremen.de/phaker/tinyhost";
private static final Map<String,String> MIME_MAP = new HashMap<>(); private static final Map<String,String> MIME_MAP = new HashMap<>();
private static final String DEFAULT_MIME_TYPE = "text/plain"; private static final String DEFAULT_MIME_TYPE = "text/plain";
...@@ -212,12 +213,12 @@ public class Main { ...@@ -212,12 +213,12 @@ public class Main {
</style> </style>
</head> </head>
<body> <body>
Thank you for using <sub>%s</sub><br/> Thank you for using <a target="_blank" href="%s"><sub>%s</sub></a><br/>
<span>The server ran into a problem serving requested resource <code>%s</code> which should have been at <code>%s</code>.</span> <span>The server ran into a problem serving requested resource <code>%s</code> which should have been at <code>%s</code>.</span>
<ol>%s</ol> <ol>%s</ol>
</body> </body>
</html> </html>
""", NAME, NAME, t.getRequestURI(), uriString, builder); """, NAME, HOME, NAME, t.getRequestURI(), uriString, builder);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment