- From: Mercurial notifier <nobody@w3.org>
- Date: Tue, 07 Sep 2010 17:06:55 +0000
- To: Unicorn Updates <www-validator-cvs@w3.org>
changeset: 1479:3703fcba4aeb
tag: tip
user: Thomas Gambet <tgambet@w3.org>
date: Tue Sep 07 13:06:32 2010 -0400
files: src/org/w3c/unicorn/action/InitAction.java
description:
+ check that unicorn.properties can be found in the classpath
diff -r b8ec1694b0cf -r 3703fcba4aeb src/org/w3c/unicorn/action/InitAction.java
--- a/src/org/w3c/unicorn/action/InitAction.java Tue Sep 07 11:05:04 2010 -0400
+++ b/src/org/w3c/unicorn/action/InitAction.java Tue Sep 07 13:06:32 2010 -0400
@@ -42,6 +42,11 @@
String task = request.getParameter("task");
PrintWriter out = response.getWriter();
+
+ // Check that unicorn.conf is in the classpath
+ if (InitAction.class.getResource("/unicorn.properties") == null) {
+ task = "all";
+ }
if (task == null) {
response.setContentType("text/html; charset=UTF-8");
Received on Tuesday, 7 September 2010 17:06:56 UTC