Anonymous avatar Anonymous committed 8c6b792

New Message

Comments (0)

Files changed (964)

vim/.VimballRecord

-rainbow_parenthsis-4.0.vba: call delete('/Users/d1ff/.vim/autoload/rainbow_parenthsis.vim')|call delete('/Users/d1ff/.vim/doc/rainbow_parenthsis.txt')|call delete('/Users/d1ff/.vim/plugin/rainbow_parenthsis.vim')|call delete('/Users/d1ff/.vim/rainbow_parenthsis_options.vim')
-vimcommander_0.80.vba: call delete('/Users/d1ff/.vim/doc/vimcommander.txt')|call delete('/Users/d1ff/.vim/plugin/vimcommander.vim')
-supertab.vba: call delete('/Users/d1ff/.vim/plugin/supertab.vim')|call delete('/Users/d1ff/.vim/doc/supertab.txt')
-vimwiki-1-1-1.vba: call delete('/Users/d1ff/.vim/autoload/vimwiki.vim')|call delete('/Users/d1ff/.vim/autoload/vimwiki_diary.vim')|call delete('/Users/d1ff/.vim/autoload/vimwiki_html.vim')|call delete('/Users/d1ff/.vim/autoload/vimwiki_lst.vim')|call delete('/Users/d1ff/.vim/autoload/vimwiki_tbl.vim')|call delete('/Users/d1ff/.vim/doc/vimwiki.txt')|call delete('/Users/d1ff/.vim/ftplugin/vimwiki.vim')|call delete('/Users/d1ff/.vim/plugin/vimwiki.vim')|call delete('/Users/d1ff/.vim/syntax/vimwiki.vim')|call delete('/Users/d1ff/.vim/syntax/vimwiki_default.vim')|call delete('/Users/d1ff/.vim/syntax/vimwiki_media.vim')
-conque_2.0.vba: call delete('/Users/d1ff/.vim/doc/conque_term.txt')|call delete('/Users/d1ff/.vim/syntax/conque_term.vim')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_screen.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_win32_util.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_sole_shared_memory.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_sole_wrapper.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_sole_communicator.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_sole.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_globals.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_subprocess.py')|call delete('/Users/d1ff/.vim/autoload/conque_term/conque_sole_subprocess.py')|call delete('/Users/d1ff/.vim/autoload/conque_term.vim')|call delete('/Users/d1ff/.vim/plugin/conque_term.vim')
-LatexBox.vba: call delete('/Users/d1ff/.vim/ftplugin/tex_LatexBox.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/common.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/complete.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/indent.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/latexmk.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/mappings.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/motion.vim')|call delete('/Users/d1ff/.vim/ftplugin/latex-box/vimcomplete.bst')|call delete('/Users/d1ff/.vim/doc/latex-box.txt')
-tskeleton.vba: call delete('/Users/d1ff/.vim/doc/tskeleton.txt')|call delete('/Users/d1ff/.vim/autoload/tskeleton/abbreviations.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/functions.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/mini.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/skeleton.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/tags.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/completefunc.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton/omnicomplete.vim')|call delete('/Users/d1ff/.vim/autoload/tskeleton.vim')|call delete('/Users/d1ff/.vim/plugin/tskeleton.vim')|call delete('/Users/d1ff/.vim/syntax/tskeleton.vim')
-tlib.vba: call delete('/Users/d1ff/.vim/plugin/02tlib.vim')|call delete('/Users/d1ff/.vim/doc/tlib.txt')|call delete('/Users/d1ff/.vim/test/tlib.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/file.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Filter_cnf.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Filter_cnfd.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Filter_fuzzy.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Filter_seq.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Object.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/Test.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/TestChild.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/World.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/agent.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/arg.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/autocmdgroup.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/balloon.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/buffer.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/cache.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/char.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/cmd.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/comments.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/date.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/dir.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/eval.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/hook.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/input.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/list.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/map.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/normal.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/notify.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/paragraph.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/progressbar.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/rx.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/scratch.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/signs.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/string.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/syntax.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/tab.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/tag.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/textobjects.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/time.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/type.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/url.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/var.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/win.vim')|call delete('/Users/d1ff/.vim/autoload/tlib/vim.vim')|call delete('/Users/d1ff/.vim/autoload/tlib.vim')

vim/Makefile

-PREFIX = /usr/local
-VIMDIR = $(PREFIX)/share/vim
-BINDIR = $(PREFIX)/bin
-
-VERSION=1.8.23
-REVISION=$(shell svn info -r HEAD 2>/dev/null| head -n 5 | tail -n 1 | cut -d" " -f2)
-DATE = $(shell date +%Y%m%d)
-
-SNAPSHOTNAME = vim-latex-$(VERSION)-$(DATE)-r$(REVISION)
-
-snapshot:
-	rm -rf -- ./$(SNAPSHOTNAME)
-	svn export -r HEAD . $(SNAPSHOTNAME)
-	make -C $(SNAPSHOTNAME)/doc
-	tar cvzf ./$(SNAPSHOTNAME).tar.gz ./$(SNAPSHOTNAME)
-	rm -rf -- ./$(SNAPSHOTNAME)
-
-install:
-	install -d "$(DESTDIR)$(VIMDIR)/doc"
-	install -m 0644 doc/*.txt "$(DESTDIR)$(VIMDIR)/doc"
-
-	install -d "$(DESTDIR)$(VIMDIR)"
-	cp -R compiler ftplugin indent plugin "$(DESTDIR)$(VIMDIR)"
-	chmod 0755 "$(DESTDIR)$(VIMDIR)/ftplugin/latex-suite/outline.py"
-
-	install -d "$(DESTDIR)$(BINDIR)"
-	install latextags ltags "$(DESTDIR)$(BINDIR)"
-
-upload: snapshot
-	scp "$(SNAPSHOTNAME).tar.gz" frs.sourceforge.net:/home/frs/project/v/vi/vim-latex/snapshots

vim/Makefile.in

-CVSUSER = srinathava
-SSHCMD = ssh1
-DIR1 = $(PWD)
-
-# The main target. This creates a latex suite archive (zip and tar.gz
-# format) ensuring that all the files in the archive are in unix format so
-# unix people can use it too...
-latexs:
-	# plugins:
-	zip -q latexSuite.zip plugin/imaps.vim
-	zip -q latexSuite.zip plugin/SyntaxFolds.vim
-	zip -q latexSuite.zip plugin/libList.vim
-	zip -q latexSuite.zip plugin/remoteOpen.vim
-	zip -q latexSuite.zip plugin/filebrowser.vim
-	# ftplugins
-	zip -q latexSuite.zip ftplugin/tex_latexSuite.vim
-	zip -q latexSuite.zip ftplugin/bib_latexSuite.vim
-	zip -q latexSuite.zip ftplugin/tex/*.vim
-	# files in the latex-suite directory. Skip the CVS files.
-	zip -q -R latexSuite.zip `find ftplugin/latex-suite -name '*' | grep -v .svn`
-	# documentation
-	zip -q latexSuite.zip doc/latex*.txt
-	zip -q latexSuite.zip doc/imaps*.txt
-	# indentation
-	zip -q latexSuite.zip indent/tex.vim
-	# compiler
-	zip -q latexSuite.zip compiler/tex.vim
-	# external tools
-	zip -q latexSuite.zip ltags
-
-	# Now to make a tar.gz file from the .zip file.
-	rm -rf $(TMP)/latexSuite0793
-	mkdir -p $(TMP)/latexSuite0793
-	cp latexSuite.zip $(TMP)/latexSuite0793/
-	( \
-		cd $(TMP)/latexSuite0793/ ; \
-		unzip -q -o latexSuite.zip ; \
-		\rm latexSuite.zip ; \
-		tar czf latexSuite.tar.gz * ; \
-		\mv latexSuite.tar.gz $(DIR1)/ ; \
-	)
-	mv latexSuite.zip latexSuite`date +%Y%m%d`.zip ; \
-	mv latexSuite.tar.gz latexSuite`date +%Y%m%d`.tar.gz ; \
-
-# target for removing archive files.
-clean:
-	rm -f latexSuite200*
-
-# make a local install directory.
-ltt:
-	rm -rf /tmp/ltt/vimfiles/ftplugin
-	cp -f latexSuite.zip /tmp/ltt/vimfiles/
-	cd /tmp/ltt/vimfiles; unzip latexSuite.zip
-
-# This target is related to a script I have on my sf.net account. That
-# script looks like:
-#
-# #!/bin/bash
-# cd ~/testing/vimfiles; \
-# cvs -q update; \
-# make clean; \
-# make; \
-# cp latexsuite.* ~/htdocs/download/
-#
-# Doing a release via sf.net has a couple of advantages:
-# - I do not have to bother with CRLF pain anymore because the copy on
-#   sf.net will always have unix style EOLs.
-# - The process is much faster because I only need to communicate a command
-#   from my computer to sf.net. The rest is done locally on the sf.net
-#   server.
-release:
-	$(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/upload
-
-updoc:
-	$(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/updoc
-
-# This is another target akin to the release: target. This target updates
-# the htdocs directory of the latex-suite project to the latest CVS
-# version.
-# This is again related to the uphtdocs script on my sf.net account which
-# looks like:
-# #!/bin/sh
-#
-# # update the htdocs directory
-# cd /home/groups/v/vi/vim-latex/htdocs; cvs -q update
-# # update the packages directory
-# cd /home/groups/v/vi/vim-latex/htdocs/packages; cvs -q update
-uphtdocs:
-	$(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/uphtdocs
-	
-# Automatically generate the Changelog file using the cvs2cl utility
-#
-# Arguments:
-# -S			add a seperating line between filename and log
-#  --no-wrap	Do not attempt to format the Changelog comments
-#  -f			file to write the Changelog to.
-changelog:
-	cvs2cl -S --no-wrap -f ftplugin/latex-suite/ChangeLog
-
-# rsync is like cp (copy) on steroids.  Here are some useful options:
-# -C	auto ignore like CVS
-# -r	recurse into directories
-# -t	preserve times
-# -u	update (do not overwrite newer files)
-# -W	whole files, no incremental checks (default for local usage)
-# --existing	only update files that already exist
-# --exclude	exclude files matching the pattern
-# -n	dry run (for testing)
-
-# Usage:  after "cvs update", do
-#   make install [VIMFILES=path/to/vimfiles]
-# Before "cvs commit", do
-#   make stallin [VIMFILES=path/to/vimfiles]
-# If you have made changes in both directories, and want to keep the most
-# recent versions, do
-#   make sync [VIMFILES=path/to/vimfiles]
-# Note:  defining VIMFILES when you invoke make overrides the value below.
-# Warning:  install and stallin do not check modification times!
-
-VIMFILES=${HOME}/.vim
-EXCLUDE="--exclude='*~' --exclude='*.swp' --exclude='makefile'"
-
-install:
-	rsync -CrtW ${EXCLUDE}	. ${VIMFILES}
-
-# stallin = reverse install
-# If you can think of a better name for this target, be my guest!
-stallin:
-	rsync -CrtW --existing ${VIMFILES}/ .
-
-sync:
-	rsync -CrtuW ${EXCLUDE}	. ${VIMFILES}
-	rsync -CrtuW --existing ${VIMFILES}/ .

vim/after/indent/java.vim

-function! GetJavaIndent_improved()
-    let theIndent = GetJavaIndent()
-    let lnum = prevnonblank(v:lnum - 1)
-    let line = getline(lnum)
-    if line =~ '^\s*@.*$'
-        let theIndent = indent(lnum)
-    endif
-
-    return theIndent
-endfunction
-setlocal indentexpr=GetJavaIndent_improved()
-
-setlocal tabstop=4
-setlocal softtabstop=4
-setlocal shiftwidth=4
-setlocal textwidth=80
-setlocal smarttab
-setlocal expandtab
-setlocal nolisp
-setlocal autoindent

vim/after/plugin/helpers.vim

-highlight BadWhitespace ctermbg=red guibg=red

vim/after/plugin/snipMate.vim

-" These are the mappings for snipMate.vim. Putting it here ensures that it
-" will be mapped after other plugins such as supertab.vim.
-if !exists('loaded_snips') || exists('s:did_snips_mappings')
-	finish
-endif
-let s:did_snips_mappings = 1
-
-ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
-snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
-ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
-snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
-ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
-
-" The default mappings for these are annoying & sometimes break snipMate.
-" You can change them back if you want, I've put them here for convenience.
-snor <bs> b<bs>
-snor <right> <esc>a
-snor <left> <esc>bi
-snor ' b<bs>'
-snor ` b<bs>`
-snor % b<bs>%
-snor U b<bs>U
-snor ^ b<bs>^
-snor \ b<bs>\
-snor <c-x> b<bs><c-x>
-
-" By default load snippets in snippets_dir
-if empty(snippets_dir)
-	finish
-endif
-
-call GetSnippets(snippets_dir, '_') " Get global snippets
-
-au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
-" vim:noet:sw=4:ts=4:ft=vim

vim/autoload/Reflection.java

-/**
- * Reflection.java
- *
- * A utility class for javacomplete mainly for reading class or package information.
- * Version:	0.77
- * Maintainer:	cheng fang <fangread@yahoo.com.cn>
- * Last Change:	2007-09-16
- * Copyright:	Copyright (C) 2007 cheng fang. All rights reserved.
- * License:	Vim License	(see vim's :help license)
- * 
- */
-
-import java.lang.reflect.*;
-import java.io.*;
-import java.util.*;
-import java.util.zip.*;
-
-class Reflection {
-    static final String VERSION	= "0.77";
-
-    static final int OPTION_FIELD		=  1;
-    static final int OPTION_METHOD		=  2;
-    static final int OPTION_STATIC_FIELD	=  4;
-    static final int OPTION_STATIC_METHOD	=  8;
-    static final int OPTION_CONSTRUCTOR		= 16;
-    static final int OPTION_STATIC		= 12;	// compound static
-    static final int OPTION_INSTANCE		= 15;	// compound instance
-    static final int OPTION_ALL			= 31;	// compound all
-    static final int OPTION_SUPER		= 32;
-    static final int OPTION_SAME_PACKAGE	= 64;
-
-    static final int STRATEGY_ALPHABETIC	= 128;
-    static final int STRATEGY_HIERARCHY		= 256;
-    static final int STRATEGY_DEFAULT		= 512;
-
-    static final int RETURN_ALL_PACKAGE_INFO	= 0x1000;
-
-    static final String KEY_NAME		= "'n':";	// "'name':";
-    static final String KEY_TYPE		= "'t':";	// "'type':";
-    static final String KEY_MODIFIER		= "'m':";	// "'modifier':";
-    static final String KEY_PARAMETERTYPES	= "'p':";	// "'parameterTypes':";
-    static final String KEY_RETURNTYPE		= "'r':";	// "'returnType':";
-    static final String KEY_DESCRIPTION		= "'d':";	// "'description':";
-    static final String KEY_DECLARING_CLASS	= "'c':";	// "'declaringclass':";
-
-    static final String NEWLINE = "";	// "\r\n"
-
-    static boolean debug_mode = false;
-
-    static Hashtable htClasspath = new Hashtable();
-
-    public static boolean existed(String fqn) {
-	boolean result = false;
-	try {
-	    Class.forName(fqn);
-	    result = true;
-	}
-	catch (Exception ex) {
-	}
-	return result;
-    }
-
-    public static String existedAndRead(String fqns) {
-	Hashtable mapPackages = new Hashtable();	// qualified name --> StringBuffer
-	Hashtable mapClasses = new Hashtable();		// qualified name --> StringBuffer
-
-	for (StringTokenizer st = new StringTokenizer(fqns, ","); st.hasMoreTokens(); ) {
-	    String fqn = st.nextToken();
-	    try {
-		Class clazz = Class.forName(fqn);
-		putClassInfo(mapClasses, clazz);
-	    }
-	    catch (Exception ex) {
-		String binaryName = fqn;
-		boolean found = false;
-		while (true) {
-		    try {
-			int lastDotPos = binaryName.lastIndexOf('.');
-			if (lastDotPos == -1)
-			    break;
-			binaryName = binaryName.substring(0, lastDotPos) + '$' + binaryName.substring(lastDotPos+1, binaryName.length());
-			Class clazz = Class.forName(binaryName);
-			putClassInfo(mapClasses, clazz);
-			found = true;
-			break;
-		    }
-		    catch (Exception e) {
-		    }
-		}
-		if (!found)
-		    putPackageInfo(mapPackages, fqn);
-	    }
-	}
-
-	if (mapPackages.size() > 0 || mapClasses.size() > 0) {
-	    StringBuffer sb = new StringBuffer(4096);
-	    sb.append("{");
-	    for (Enumeration e = mapPackages.keys(); e.hasMoreElements(); ) {
-		String s = (String)e.nextElement();
-		sb.append("'").append( s.replace('$', '.') ).append("':").append(mapPackages.get(s)).append(",");
-	    }
-	    for (Enumeration e = mapClasses.keys(); e.hasMoreElements(); ) {
-		String s = (String)e.nextElement();
-		sb.append("'").append( s.replace('$', '.') ).append("':").append(mapClasses.get(s)).append(",");
-	    }
-	    sb.append("}");
-	    return sb.toString();
-	}
-	else
-	    return "";
-    }
-
-    private static String getPackageList(String fqn) {
-	Hashtable mapPackages = new Hashtable();
-	putPackageInfo(mapPackages, fqn);
-	return mapPackages.size() > 0 ? mapPackages.get(fqn).toString() : "";
-    }
-
-    private static Hashtable collectClassPath() {
-	if (!htClasspath.isEmpty())
-	    return htClasspath;
-
-	// runtime classes
-	if ("Kaffe".equals(System.getProperty("java.vm.name"))) {
-	    addClasspathesFromDir(System.getProperty("java.home") + File.separator + "share" + File.separator + "kaffe" + File.separator);
-	}
-	else if ("GNU libgcj".equals(System.getProperty("java.vm.name"))) {
-	    if (new File(System.getProperty("sun.boot.class.path")).exists())
-		htClasspath.put(System.getProperty("sun.boot.class.path"), "");
-	}
-
-	if (System.getProperty("java.vendor").toLowerCase(Locale.US).indexOf("microsoft") >= 0) {
-	    // `*.ZIP` files in `Packages` directory
-	    addClasspathesFromDir(System.getProperty("java.home") + File.separator + "Packages" + File.separator);
-	}
-	else {
-	    // the following code works for several kinds of JDK
-	    // - JDK1.1:		classes.zip 
-	    // - JDK1.2+:		rt.jar 
-	    // - JDK1.4+ of Sun and Apple:	rt.jar + jce.jar + jsse.jar
-	    // - JDK1.4 of IBM		split rt.jar into core.jar, graphics.jar, server.jar
-	    // 				combined jce.jar and jsse.jar into security.jar
-	    // - JDK for MacOS X	split rt.jar into classes.jar, ui.jar in Classes directory
-	    addClasspathesFromDir(System.getProperty("java.home") + File.separator + "lib" + File.separator);
-	    addClasspathesFromDir(System.getProperty("java.home") + File.separator + "jre" + File.separator + "lib" + File.separator);
-	    addClasspathesFromDir(System.getProperty("java.home") + File.separator + ".."  + File.separator + "Classes" + File.separator);
-	}
-
-	// ext
-	String extdirs = System.getProperty("java.ext.dirs");
-	for (StringTokenizer st = new StringTokenizer(extdirs, File.pathSeparator); st.hasMoreTokens(); ) {
-	    addClasspathesFromDir(st.nextToken() + File.separator);
-	}
-
-	// user classpath
-	String classPath = System.getProperty("java.class.path");
-	StringTokenizer st = new StringTokenizer(classPath, File.pathSeparator);
-	while (st.hasMoreTokens()) {
-	    String path = st.nextToken();
-	    File f = new File(path);
-	    if (!f.exists())
-		continue;
-
-	    if (path.endsWith(".jar") || path.endsWith(".zip"))
-		htClasspath.put(f.toString(), "");
-	    else {
-		if (f.isDirectory())
-		    htClasspath.put(f.toString(), "");
-	    }
-	}
-
-	return htClasspath;
-    }
-
-    private static void addClasspathesFromDir(String dirpath) {
-	File dir = new File(dirpath);
-	if (dir.isDirectory()) {
-	    String[] items = dir.list();		// use list() instead of listFiles() since the latter are introduced in 1.2
-	    for (int i = 0; i < items.length; i++) {
-		File f = new File(dirpath + items[i]);
-		if (!f.exists())
-		    continue;
-
-		if (items[i].endsWith(".jar") || items[i].endsWith(".zip") || items[i].endsWith(".ZIP")) {
-		    htClasspath.put(f.toString(), "");
-		}
-		else if (items.equals("classes")) {
-		    if (f.isDirectory())
-			htClasspath.put(f.toString(), "");
-		}
-	    }
-	}
-    }
-	
-
-    /**
-     * If name is empty, put all loadable package info into map once.
-     */
-    private static void putPackageInfo(Hashtable map, String name) {
-	String prefix = name.replace('.', '/') + "/";
-	Hashtable subpackages = new Hashtable();
-	Hashtable classes = new Hashtable();
-	for (Enumeration e = collectClassPath().keys(); e.hasMoreElements(); ) {
-	    String path = (String)e.nextElement();
-	    if (path.endsWith(".jar") || path.endsWith(".zip"))
-		appendListFromJar(subpackages, classes, path, prefix);
-	    else
-		appendListFromFolder(subpackages, classes, path, prefix);
-	}
-
-	if (subpackages.size() > 0 || classes.size() > 0) {
-	    StringBuffer sb = new StringBuffer(1024);
-	    sb.append("{'tag':'PACKAGE','subpackages':[");
-	    for (Enumeration e = subpackages.keys(); e.hasMoreElements(); ) {
-		sb.append("'").append(e.nextElement()).append("',");
-	    }
-	    sb.append("],'classes':[");
-	    for (Enumeration e = classes.keys(); e.hasMoreElements(); ) {
-		sb.append("'").append(e.nextElement()).append("',");
-	    }
-	    sb.append("]}");
-	    map.put(name, sb.toString());
-	}
-    }
-
-    public static void appendListFromJar(Hashtable subpackages, Hashtable classes, String path, String prefix) {
-	try {
-	    for (Enumeration entries = new ZipFile(path).entries(); entries.hasMoreElements(); ) {
-		String entry = entries.nextElement().toString();
-		int len = entry.length();
-		if (entry.endsWith(".class") && entry.indexOf('$') == -1
-			&& entry.startsWith(prefix)) {
-		    int splitPos = entry.indexOf('/', prefix.length());
-		    String shortname = entry.substring(prefix.length(), splitPos == -1 ? entry.length()-6 : splitPos);
-		    if (splitPos == -1) {
-			if (!classes.containsKey(shortname))
-			    classes.put(shortname, ""); //classes.put(shortname, "{'tag':'CLASSDEF','name':'"+shortname+"'}");
-		    }
-		    else {
-			if (!subpackages.containsKey(shortname))
-			    subpackages.put(shortname, ""); //subpackages.put(shortname, "{'tag':'PACKAGE','name':'" +shortname+"'}");
-		    }
-		}
-	    }
-	}
-	catch (Throwable e) {
-	    //e.printStackTrace();
-	}
-    }
-
-    public static void appendListFromFolder(Hashtable subpackages, Hashtable classes, String path, String prefix) {
-	try {
-	    String fullPath = path + "/" + prefix;
-	    File file = new File(fullPath);
-	    if (file.isDirectory()) {
-		String[] descents = file.list();
-		for (int i = 0; i < descents.length; i++) {
-		    if (descents[i].indexOf('$') == -1) {
-			if (descents[i].endsWith(".class")) {
-			    String shortname = descents[i].substring(0, descents[i].length()-6);
-			    if (!classes.containsKey(shortname))
-				classes.put(shortname, "");
-			}
-			else if ((new File(fullPath + "/" + descents[i])).isDirectory()) {
-			    if (!subpackages.containsKey(descents[i]))
-				subpackages.put(descents[i], "");
-			}
-		    }
-		}
-	    }						
-	}
-	catch (Throwable e) {
-	}
-    }
-
-    private static int INDEX_PACKAGE = 0;
-    private static int INDEX_CLASS = 1;
-
-    // generate information of all packages in jar files.
-    public static String getPackageList() {
-	Hashtable map = new Hashtable();
-
-	for (Enumeration e = collectClassPath().keys(); e.hasMoreElements(); ) {
-	    String path = (String)e.nextElement();
-	    if (path.endsWith(".jar") || path.endsWith(".zip"))
-		appendListFromJar(path, map);
-	}
-
-	StringBuffer sb = new StringBuffer(4096);
-	sb.append("{");
-	//sb.append("'*':'").append( map.remove("") ).append("',");	// default package
-	for (Enumeration e = map.keys(); e.hasMoreElements(); ) {
-	    String s = (String)e.nextElement();
-	    StringBuffer[] sbs = (StringBuffer[])map.get(s);
-	    sb.append("'").append( s.replace('/', '.') ).append("':")
-	      .append("{'tag':'PACKAGE'");
-	    if (sbs[INDEX_PACKAGE].length() > 0)
-		sb.append(",'subpackages':[").append(sbs[INDEX_PACKAGE]).append("]");
-	    if (sbs[INDEX_CLASS].length() > 0)
-		sb.append(",'classes':[").append(sbs[INDEX_CLASS]).append("]");
-	    sb.append("},");
-	}
-	sb.append("}");
-	return sb.toString();
-
-    }
-
-    public static void appendListFromJar(String path, Hashtable map) {
-	try {
-	    for (Enumeration entries = new ZipFile(path).entries(); entries.hasMoreElements(); ) {
-		String entry = entries.nextElement().toString();
-		int len = entry.length();
-		if (entry.endsWith(".class") && entry.indexOf('$') == -1) {
-		    int slashpos = entry.lastIndexOf('/');
-		    String parent = entry.substring(0, slashpos);
-		    String child  = entry.substring(slashpos+1, len-6);
-		    putItem(map, parent, child, INDEX_CLASS);
-
-		    slashpos = parent.lastIndexOf('/');
-		    if (slashpos != -1) {
-			AddToParent(map, parent.substring(0, slashpos), parent.substring(slashpos+1));
-		    }
-		}
-	    }
-	}
-	catch (Throwable e) {
-	    //e.printStackTrace();
-	}
-    }
-
-    public static void putItem(Hashtable map, String parent, String child, int index) {
-	StringBuffer[] sbs = (StringBuffer[])map.get(parent);
-	if (sbs == null) {
-	    sbs = new StringBuffer[] {  new StringBuffer(256), 		// packages
-					new StringBuffer(256)		// classes
-				      };
-	}
-	if (sbs[index].toString().indexOf("'" + child + "',") == -1)
-	    sbs[index].append("'").append(child).append("',");
-	map.put(parent, sbs);
-    }
-
-    public static void AddToParent(Hashtable map, String parent, String child) {
-	putItem(map, parent, child, INDEX_PACKAGE);
-
-	int slashpos = parent.lastIndexOf('/');
-	if (slashpos != -1) {
-	    AddToParent(map, parent.substring(0, slashpos), parent.substring(slashpos+1));
-	}
-    }
-
-
-    public static String getClassInfo(String className) {
-	Hashtable mapClasses = new Hashtable();
-	try {
-	    Class clazz = Class.forName(className);
-	    putClassInfo(mapClasses, clazz);
-	}
-	catch (Exception ex) {
-	}
-
-	if (mapClasses.size() == 1) {
-	    return mapClasses.get(className).toString();	// return {...}
-	}
-	else if (mapClasses.size() > 1) {
-	    StringBuffer sb = new StringBuffer(4096);
-	    sb.append("[");
-	    for (Enumeration e = mapClasses.keys(); e.hasMoreElements(); ) {
-		String s = (String)e.nextElement();
-		sb.append(mapClasses.get(s)).append(",");
-	    }
-	    sb.append("]");
-	    return sb.toString();				// return [...]
-	}
-	else
-	    return "";
-    }
-
-    private static void putClassInfo(Hashtable map, Class clazz) {
-	if (map.containsKey(clazz.getName()))
-	    return ;
-
-	try {
-	    StringBuffer sb = new StringBuffer(1024);
-	    sb.append("{")
-	      .append("'tag':'CLASSDEF',").append(NEWLINE)
-	      .append("'flags':'").append(Integer.toString(clazz.getModifiers(), 2)).append("',").append(NEWLINE)
-	      .append("'name':'").append(clazz.getName().replace('$', '.')).append("',").append(NEWLINE)
-	      //.append("'package':'").append(clazz.getPackage().getName()).append("',").append(NEWLINE)	// no getPackage() in JDK1.1
-	      .append("'classpath':'1',").append(NEWLINE)
-	      .append("'fqn':'").append(clazz.getName().replace('$', '.')).append("',").append(NEWLINE);
-
-	    Class[] interfaces = clazz.getInterfaces();
-	    if (clazz.isInterface()) {
-		sb.append("'extends':[");
-	    } else {
-		Class superclass = clazz.getSuperclass();
-		if (superclass != null && !"java.lang.Object".equals(superclass.getName())) {
-		    sb.append("'extends':['").append(superclass.getName().replace('$', '.')).append("'],").append(NEWLINE);
-		    putClassInfo(map, superclass);	// !!
-		}
-		sb.append("'implements':[");
-	    }
-	    for (int i = 0, n = interfaces.length; i < n; i++) {
-	      sb.append("'").append(interfaces[i].getName().replace('$', '.')).append("',");
-	      putClassInfo(map, interfaces[i]);			// !!
-	    }
-	    sb.append("],").append(NEWLINE);;
-
-	    Constructor[] ctors = clazz.getConstructors();
-	    sb.append("'ctors':[");
-	    for (int i = 0, n = ctors.length; i < n; i++) {
-		Constructor ctor = ctors[i];
-		sb.append("{");
-		appendModifier(sb, ctor.getModifiers());
-		appendParameterTypes(sb, ctor.getParameterTypes());
-		sb.append(KEY_DESCRIPTION).append("'").append(ctors[i].toString()).append("'");
-		sb.append("},").append(NEWLINE);
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Field[] fields = clazz.getFields();
-	    //java.util.Arrays.sort(fields, comparator);
-	    sb.append("'fields':[");
-	    for (int i = 0, n = fields.length; i < n; i++) {
-		Field f = fields[i];
-		int modifier = f.getModifiers();
-		sb.append("{");
-		sb.append(KEY_NAME).append("'").append(f.getName()).append("',");
-		if (!f.getDeclaringClass().getName().equals(clazz.getName()))
-		    sb.append(KEY_DECLARING_CLASS).append("'").append(f.getDeclaringClass().getName()).append("',");
-		appendModifier(sb, modifier);
-		sb.append(KEY_TYPE).append("'").append(f.getType().getName()).append("'");
-		sb.append("},").append(NEWLINE);
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Method[] methods = clazz.getMethods();
-	    //java.util.Arrays.sort(methods, comparator);
-	    sb.append("'methods':[");
-	    for (int i = 0, n = methods.length; i < n; i++) {
-		Method m = methods[i];
-		int modifier = m.getModifiers();
-		sb.append("{");
-		sb.append(KEY_NAME).append("'").append(m.getName()).append("',");
-		if (!m.getDeclaringClass().getName().equals(clazz.getName()))
-		    sb.append(KEY_DECLARING_CLASS).append("'").append(m.getDeclaringClass().getName()).append("',");
-		appendModifier(sb, modifier);
-		sb.append(KEY_RETURNTYPE).append("'").append(m.getReturnType().getName()).append("',");
-		appendParameterTypes(sb, m.getParameterTypes());
-		sb.append(KEY_DESCRIPTION).append("'").append(m.toString()).append("'");
-		sb.append("},").append(NEWLINE);
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Class[] classes = clazz.getClasses();
-	    sb.append("'classes': [");
-	    for (int i = 0, n = classes.length; i < n; i++) {
-		Class c = classes[i];
-		sb.append("'").append(c.getName().replace('$', '.')).append("',");
-		putClassInfo(map, c);			// !!
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    appendDeclaredMembers(map, clazz, sb);
-
-	    sb.append("}");
-	    map.put(clazz.getName(), sb);
-	}
-	catch (Exception ex) {
-	    //ex.printStackTrace();
-	}
-    }
-
-    private static void appendDeclaredMembers(Hashtable map, Class clazz, StringBuffer sb) {
-	    Constructor[] ctors = clazz.getDeclaredConstructors();
-	    sb.append("'declared_ctors':[");
-	    for (int i = 0, n = ctors.length; i < n; i++) {
-		Constructor ctor = ctors[i];
-		if (!Modifier.isPublic(ctor.getModifiers())) {
-		    sb.append("{");
-		    appendModifier(sb, ctor.getModifiers());
-		    appendParameterTypes(sb, ctor.getParameterTypes());
-		    sb.append(KEY_DESCRIPTION).append("'").append(ctors[i].toString()).append("'");
-		    sb.append("},").append(NEWLINE);
-		}
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Field[] fields = clazz.getDeclaredFields();
-	    sb.append("'declared_fields':[");
-	    for (int i = 0, n = fields.length; i < n; i++) {
-		Field f = fields[i];
-		int modifier = f.getModifiers();
-		if (!Modifier.isPublic(modifier)) {
-		    sb.append("{");
-		    sb.append(KEY_NAME).append("'").append(f.getName()).append("',");
-		    if (!f.getDeclaringClass().getName().equals(clazz.getName()))
-			sb.append(KEY_DECLARING_CLASS).append("'").append(f.getDeclaringClass().getName()).append("',");
-		    appendModifier(sb, modifier);
-		    sb.append(KEY_TYPE).append("'").append(f.getType().getName()).append("'");
-		    sb.append("},").append(NEWLINE);
-		}
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Method[] methods = clazz.getDeclaredMethods();
-	    sb.append("'declared_methods':[");
-	    for (int i = 0, n = methods.length; i < n; i++) {
-		Method m = methods[i];
-		int modifier = m.getModifiers();
-		if (!Modifier.isPublic(modifier)) {
-		    sb.append("{");
-		    sb.append(KEY_NAME).append("'").append(m.getName()).append("',");
-		    if (!m.getDeclaringClass().getName().equals(clazz.getName()))
-			sb.append(KEY_DECLARING_CLASS).append("'").append(m.getDeclaringClass().getName()).append("',");
-		    appendModifier(sb, modifier);
-		    sb.append(KEY_RETURNTYPE).append("'").append(m.getReturnType().getName()).append("',");
-		    appendParameterTypes(sb, m.getParameterTypes());
-		    sb.append(KEY_DESCRIPTION).append("'").append(m.toString()).append("'");
-		    sb.append("},").append(NEWLINE);
-		}
-	    }
-	    sb.append("], ").append(NEWLINE);
-
-	    Class[] classes = clazz.getDeclaredClasses();
-	    sb.append("'declared_classes': [");
-	    for (int i = 0, n = classes.length; i < n; i++) {
-		Class c = classes[i];
-		if (!Modifier.isPublic(c.getModifiers())) {
-		    sb.append("'").append(c.getName().replace('$', '.')).append("',");
-		    putClassInfo(map, c);			// !!
-		}
-	    }
-	    sb.append("], ").append(NEWLINE);
-    }
-
-    private static void appendModifier(StringBuffer sb, int modifier) {
-	sb.append(KEY_MODIFIER).append("'").append(Integer.toString(modifier, 2)).append("', ");
-    }
-
-    private static void appendParameterTypes(StringBuffer sb, Class[] paramTypes) {
-	if (paramTypes.length == 0) return ;
-
-	sb.append(KEY_PARAMETERTYPES).append("[");
-	for (int j = 0; j < paramTypes.length; j++) {
-	    sb.append("'").append(paramTypes[j].getName()).append("',");
-	}
-	sb.append("],");
-    }
-
-    private static boolean isBlank(String str) {
-        int len;
-        if (str == null || (len = str.length()) == 0)
-            return true;
-        for (int i = 0; i < len; i++)
-            if ((Character.isWhitespace(str.charAt(i)) == false))
-                return false;
-        return true;
-    }