[xwiki-devs] useful tools for dealing with xwiki code
(1) SVNSearch<http://svnsearch.org/svnsearch/repos/XWIKI/search?start-index=20&>(general purpose -- just requires web browser) (2) if you have subversion source checked out, and use emacs and it's tags-facility, the following script may be of use to generate emacs TAGS files. ------------------------------------------------------------------------------------------------------------ #!/bin/sh ## Run in a directory where you want an emacs TAGS file, as used by M-. ; ## M-, ; M-x visit-tags-table; tags-search; tags-query-replace; etc echo -n "Calling 'svn list -R' to get project files list ..." all_svn_files=`svn list -R | grep -v '/$'` echo "... DONE!" echo "Calling etags on `echo "$all_svn_files" | wc -l` files." rm -f TAGS touch TAGS for i in `echo "$all_svn_files"` do etags -a "$i" done ------------------------------------------------------------------------------------------------------------ (3) if you're an emacs user, vtl-mode is nice for editing velocity-macros (doesn't do indentation, just syntax-highlighting). http://wiki.apache.org/jakarta-velocity/EmacsVtlMode http://markmail.org/message/u3vfq2d5frdpuiu4 ;; see /usr/lib/xemacs/site-lisp/vtl.el -- for velocity template language (autoload 'turn-on-vtl-mode "vtl" nil t) (add-hook 'html-mode-hook 'turn-on-vtl-mode t t) (add-hook 'xml-mode-hook 'turn-on-vtl-mode t t) (add-hook 'text-mode-hook 'turn-on-vtl-mode t t) (add-to-list 'auto-mode-alist '("\\.vm\\'" . turn-on-vtl-mode)) (4) subversion-enable your emacs with http://www.xsteve.at/prg/vc_svn/ and (require 'vc) (require 'psvn) -- Niels Mayer ( http://http://www.curriki.org/xwiki/bin/view/XWiki/NielsMayer) Curriki: The Global Education & Learning Community
participants (1)
-
Niels Mayer