Skip to content

Commit

Permalink
Merge pull request #1847 from dotCMS/issue-1846-ascii-art
Browse files Browse the repository at this point in the history
Issue 1846 ascii art
  • Loading branch information
Jason Tesser committed Jan 15, 2013
2 parents f0794ab + 7fa36a7 commit 4d38c3c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
37 changes: 37 additions & 0 deletions src/com/dotcms/util/AsciiArt.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.dotcms.util;

import com.dotmarketing.util.Logger;


public class AsciiArt {

private static boolean artDone = false;

public static void doArt(){

if(artDone) return;
artDone=true;

Logger.info(com.dotcms.util.AsciiArt.class, " ");
Logger.info(com.dotcms.util.AsciiArt.class, " ");
Logger.info(com.dotcms.util.AsciiArt.class, " ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO 7777777 7777 7777 77777777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OO 777777777 77777 77777 77777777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOO 77777 777777 77777 7777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOOOOOOOO OOOOOOOO OOOOOOOOO 7777 7777777 777777 7777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOOOO OOOO OOOO OOOO 7777 7777777 7777777 777777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOOO OOO OOOO OOOO 7777 77777777 777 7777 777777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOOO OOOO OOOO OOOO 7777 777 777 777 7777 7777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOOO OOO OOOO OOOO 77777 777 777777 7777 7777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOO OOOO OOOO OOO OOOO 77777 777 7777 7777 7777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " OOOOOOOOOO OOOOOOOO OOOOO 777777777 777 7777 7777 777777777 ");
Logger.info(com.dotcms.util.AsciiArt.class, " ");
Logger.info(com.dotcms.util.AsciiArt.class, " Web Content Management System ");
// Logger.info(com.dotcms.util.AsciiArt.class, " copyright " + Calendar.getInstance().get(Calendar.YEAR) + ", dotCMS LLC");
Logger.info(com.dotcms.util.AsciiArt.class, " ");
Logger.info(com.dotcms.util.AsciiArt.class, " ");
}



}
6 changes: 5 additions & 1 deletion src/com/dotmarketing/util/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Config {
//Config internal properties
private static int refreshInterval = 5; //In minutes, Default 5 can be overridden in the config file as config.refreshinterval int property
private static Date lastRefreshTime = new Date ();

private static boolean configInited = false;
private static PropertiesConfiguration props = null;
private static ClassLoader classLoader = null;
private static URL url = null;
Expand All @@ -44,6 +44,10 @@ public static void initializeConfig () {
}

private static void _loadProperties () {


AsciiArt.doArt();

if (classLoader == null) {
classLoader = Thread.currentThread().getContextClassLoader();
Logger.info(Config.class, "Initializing properties reader.");
Expand Down

0 comments on commit 4d38c3c

Please sign in to comment.