From 89bda83e0570ab87c6e449f5955613d5385e90b3 Mon Sep 17 00:00:00 2001 From: "alexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c" Date: Wed, 3 Feb 2010 00:50:41 +0000 Subject: removed obsolete svn folder from hg tree --HG-- extra : convert_revision : svn%3Ab2ef00c0-3703-41da-baef-cfe82387ac0c/trunk%408 --- .../yahoo/platform/yui/compressor/Bootstrap.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 infrastructure/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java (limited to 'infrastructure/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java') diff --git a/infrastructure/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java b/infrastructure/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java new file mode 100644 index 0000000..1b95aca --- /dev/null +++ b/infrastructure/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java @@ -0,0 +1,22 @@ +/* + * YUI Compressor + * Author: Julien Lecomte + * Copyright (c) 2007, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.net/yui/license.txt + */ + +package com.yahoo.platform.yui.compressor; + +import java.lang.reflect.Method; + +public class Bootstrap { + + public static void main(String args[]) throws Exception { + ClassLoader loader = new JarClassLoader(); + Thread.currentThread().setContextClassLoader(loader); + Class c = loader.loadClass(YUICompressor.class.getName()); + Method main = c.getMethod("main", new Class[]{String[].class}); + main.invoke(null, new Object[]{args}); + } +} \ No newline at end of file -- cgit v1.2.3