W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2010

unicorn commit: + Velocity Tool for Unicorn

From: Mercurial notifier <nobody@w3.org>
Date: Wed, 21 Jul 2010 15:53:19 +0000
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1Obbbj-0004HK-If@blinky.w3.org>
changeset:   1318:7efb88d3331f
user:        Thomas Gambet <tgambet@w3.org>
date:        Wed Jul 21 11:20:04 2010 -0400
files:       src/org/w3c/unicorn/util/UnicornVelocityTool.java
description:
+ Velocity Tool for Unicorn


diff -r c27c9f60d45b -r 7efb88d3331f src/org/w3c/unicorn/util/UnicornVelocityTool.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/w3c/unicorn/util/UnicornVelocityTool.java	Wed Jul 21 11:20:04 2010 -0400
@@ -0,0 +1,12 @@
+package org.w3c.unicorn.util;
+
+public class UnicornVelocityTool {
+
+	public boolean isTemporaryURL(String url) {
+		if (url == null)
+			return false;
+		if (url.startsWith(Property.get("UNICORN_URL")))
+			return true;
+		return false;
+	}
+}
Received on Wednesday, 21 July 2010 15:53:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC