jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r712929 [4/4] - in /incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH: ./ .settings/ doc/ etc/ etc/i18n/ etc/i18n/plugin/ etc/i18n/templates/ etc/ini/ lib/ src/com/ecyrd/jspwiki/ src/com/ecyrd/jspwiki/attachment/ src/com/ecyrd/jspwiki/a...
Date Tue, 11 Nov 2008 03:49:12 GMT
Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TextFormattingRules.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TextFormattingRules.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TextFormattingRules.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TextFormattingRules.txt Mon Nov 10 19:49:06 2008
@@ -1,156 +1,156 @@
-Êú¨È°µÈù¢ÊèèËø???Ü JSPWiki ÊâÄ??øÁî®ÁöÑ wiki ËØ?Ê?ï?ÄÇÊúâÂÖ? JSPWiki ËØ?Ê?ïÂíå Wikipedia ÁöÑÂå?Âà´ÁöÑËضÁªÜ?ø°ÊÅØÔºåËØ?ÂèÇËÄÉ [MigratingFromMediaWiki|http://www.jspwiki.org/wiki/MigratingFromMediaWiki]?ÄÇ
-
-[{TableOfContents }]
-\\
-¶ÇÊûúÊÇ®Â??ÁªèÊòéÁô?ÁºñËæëÂô®Â¶Ç??ïÂ????úÔºåÈÇ£??àÊÇ®Â?îËØ?ÁúãÁúã [WikiEtiquette]Ôºå?ª??æø??ÜËߣ¶Ç??ï??øÁî®ÂàöÂ?¶Âà?ÁöÑÊäÄÊúØ?ÄÇ[Ê?ôÁõí|http://sandbox.jspwiki.org] ÊòØ??Ä???Áî®Êù?ÁªÉ???ÁöÑÂ??Âú?Êñ??ÄÇ
-!快速参考
-{{{
-----       = ÁîüÊàêÊ?¥Â??Á?ø?Äǧö??ôÁöÑ '-' Â?ÜË¢´Âø?Áï??ÄÇ
-\\         = º?Âà?Êç¢Ë°å
-
-[link]     = Âàõª???Ä???Âà?Âêç??? "Link" ÁöÑÂÜÖÈÉ® Wiki È°µÈù¢ÁöÑË?ÖÈìæÊé??ÄÇ
-[this is also a link] = Âàõª???Ä???Âà?Âêç??? 'ThisIsAlsoALink' ÁöÑÂÜÖÈÉ® Wiki È°µÈù¢ÔºåÈìæÊé?ÂàôÊòæÁ§????Â?¶Á©?Ê?ºÁöÑËæìÂÖ?ÂÜÖÂÆ??ÄÇ
-[a sample|link] = Âàõª???Ä???Âà?Âêç??? "Link" ÁöÑÂÜÖÈÉ® Wiki È°µÈù¢ÁöÑË?ÖÈìæÊé?Ôºå??ÜÁªôÁî®Êà?ÊòæÁ§?ÁöÑÊòØÊñáÊú¨ "a sample"create a hyperlink to an  ËÄåÈùû "Link"?ÄÇ
-~NoLink    = Á¶ÅÊ?¢Áªô?ª?È©ºÂ??Â?ó(CamelCase)Â?¢Âºè??¶ÂÜôÁöÑËØçÂàõª?ÈìæÊé??ÄÇ
-[1]        = ºïÁî®ËÑöÊ?® 1?ÄÇ
-[#1]       = Ê?áËÆ????ËÑöÊ?® 1?ÄÇ
-[link]     = Âàõª?ÊñáÊú¨ '[link]'?ÄÇ
-
-!heading   = ÊñáÊú¨??? 'heading' ÁöÑÂ?èÊ?áÈ¢ò
-!!heading  = ÊñáÊú¨??? 'heading' ÁöÑ???Ê?áÈ¢ò
-!!!heading = ÊñáÊú¨??? 'heading' ÁöѧßÊ?áÈ¢ò
-
-''text''   = ?ª?Êñú??ìÊòæÁ§? 'text'?ÄÇ
-__text__   = ?ª?Á?ó??ìÊòæÁ§? 'text'?ÄÇ
-{{text}}   = ?ª?Á?âÂÆ?Â?ó??ìÊòæÁ§? 'text'?ÄÇ
-[text|]    = Áªô 'text' Âä???ä??ãÂàíÁ?øÔºàÁ©?Áô?Ë?ÖÈìæÊé?Ôºâ
-* text     = Áªô 'text' Âä???äÈ°?ÁõÆÁ¨¶Âêà
-# text     = Áªô 'text' Âä???äÁºñÂè?
-;term:ex   = ÂØ? 'term' ?ª?ËߣÈáä 'ex' ÂÅö??ÜÂÆö??â
-}}}
-!Êí?ÂÜôÊñáÊú¨
-ÊÇ®??çÂøÖ??ÜËߣÊúâÂÖ? Wiki ÊñáÊú¨Ê?ºÂºèÂåñËßÑÂàô?ª???øÁî® Wiki?ÄÇÂè?ÈúÄ˶ÅÊí?ÂÜôÊ?£Â??ÁöÑÊñáÊú¨ÔºåÁÑ?ÂêéÁî®Á©?Ë°åÊ?áËÆ???Ä???ÊƵËê??ÄÇ
-Â?±ÂÉèÂÜôÁîµÂ?êÈÇÆ?ª???ÄÊ???ÄÇ
-ÊÇ®ÂßãÁªàÂèØ?ª?ÁºñËæëËøô???È°µÈù¢ÔºàÁúã??Ä??ãÂ?¶Ëæ?ÁöÑ?æßÊ?èÔºâÁúãÁúãËøô???È°µÈù¢ÊâÄ??øÁî®ÁöÑÂêÑÁßçÊïàÊûú?ÄÇ
-!Ë?ÖÈìæÊé?
-ÈìæÊé???üÂèØ?ª?ÊòØÁõ¥Êé??ª?{{http:}}?ÄÅ{{ftp:}}?ÄÅ{{mailto:}}?ÄÅ{{https:}} Êàñ {{news:}} ºÄ§¥ÁöÑ URLÔºåÂú®ËøôÁßçÊÉÖÂܵ??ãÔºåÈìæÊé?ÊåáÂêë§ñÈÉ®ÂÆû??ì?ÄÇ?æã¶ÇÔºå˶ÅÊåáÂêë ''java.sun.com'' ÁöÑ??ªÈ°µÔºåÂ?±Ë¶Å??øÁî® {{[[http://java.sun.com]}}ÔºåÂÆÉ?ºöÊòØ [http://java.sun.com/] ÊàñËÄÖ??øÁî® {{[[Java ??ªÈ°µ|http://java.sun.com]}}ÔºåÂàô?ºöÊòØ [Java ??ªÈ°µ|http://java.sun.com]?ÄÇ
-¶ÇÊûúÈìæÊé???ç?ª???äÈù¢ÁöÑ?ÄúÂçèËÆÆ?ÄùºÄ§¥ÔºåÈÇ£??à Wiki ?ºöÂ?ÜÂÖ?ËƧ??úÈìæÊé?Âà? Wiki Á©?Èó¥???ÂÖ??ªñÈ°µÈù¢ÁöÑÊôÆÈÄöÈìæÊé?ÔºåÊÇ®ÈúÄ˶Å?ª?Â?óÊØç??ú???Ëøô???È°µÈù¢ÁöÑÁ¨¨??Ä???Â?óÁ¨¶ÔºåÁ?ØÁ??Êï?Â?óÁöÑÈ°µÈù¢ÂêçÊòØ??çÂÖÅËÆ?ÁöÑ?ÄǶÇÊûú˶ÅÂú®È°µÈù¢?????øÁî®Êñ?Êã¨Âè?Ôºà{{[[]}}ÔºâËÄå??çÊÉ?Âàõª?ÈìæÊé?ÔºåÂ?±Áî®??§???ºÄÂè£ÁöÑÊñ?Êã¨Âè?Ôºà{{[[[}}Ôºâ?ÄÇÊâÄ?ª?ÊñáÊú¨ {{[[[Example Non-Link]}}Ôºå?ºöÊòæÁ§???? {{[[Example Non-Link]}}[[Murali]?ÄÇ
-˶ÅÊ?ªÂä?Êñ?È°µÈù¢ÔºåÊÇ®Âè?ÈúÄ˶Å?ªéÂÖ??ªñÂú?Êñ?Âàõª???Ä???ÊåáÂêëÂÆÉÁöÑÈìæÊé?Âç?ÂèØ?ÄÇÊØïÁ´üÔºå˶Å??Ä?????çËÉ?ËÆøÈóÆÁöÑÈ°µÈù¢ÊÑè??â??ç§ßÔºÅÂú®ËøîÂõûÂà?ÈÇ£???È°µÈù¢ÁöÑÊó?ÂÄôÔºåÊÇ®?ºöÂèëÁé?È°µÈù¢ÂêçÁß?ÂêéÈù¢Êúâ???Â?èÈóÆÂè??ÄÇÁÑ?ÂêéÔºåÁÇ?ÂáªËøô???ÈóÆÂè?ÔºåËøôÊ??ÊÇ®Â?±Âàõª???Ü??Ä???È°µÈù¢?ÄÇ
-Âú®??Ä??? [WikiName|http://www.jspwiki.org/wiki/WikiName] ???ÔºåÂá???éÂèØ?ª???øÁî®?ªª??ïÂ?óÁ¨¶Ôºå??çËøá?ªñ?ª¨Ë¶ÅÊòØÂ?óÊØçÊàñÊï?Â?óÊâçË°å?ÄÇ
-Âè¶Â§ñÊúâ??ÄÁÇ?ÔºåÊú¨ Wiki ÂèØ?ª?ÈÄöËøáÈÖçÁ?ÆÊù?ÊîØÊåÅÊ?áÂáÜÁöÑÈ©ºÂ??Â?ó [CamelCase|http://www.jspwiki.org/wiki/CamelCase] ËøûÊé?Ôºà¶ÇÊûúÊîØÊåÅÔºåÂè?˶Å??ç?ª? '~' ºÄ§¥ÔºåÂçïËØç CamelCase Â?îËØ?Â?±ÊòØ??Ä???ÈìæÊé?Ôºâ?ÄÇÁº?ÁúÅÊÉÖÂܵ??ãËøô???ÂäüËÉ?ÊòØÂÖ?Èó?ÁöÑÔºåÂ?ìÁÑ?¶ÇÊûúÁÆ°ÁêÜÂëòÂ??ÁªèÂ?ÜËøô???ËÆæÁ?ÆÊâìºÄÁöÑËØùÔºåÈÇ£??à CamelCase Â?±ÊòØ???˶ÅÁöÑ??Ü?ÄÇ
-!ËÑöÊ?®
-ËÑöÊ?®ÊòØ??ÄÁßçÁâ?ÊÆäÁ±ªÂûãÁöÑË?ÖÈìæÊé??ÄÇÂàõª?ËÑöÊ?®ÂçÅÂàÜÁÆÄÂçïÔºåÂè?ÈúÄÂú®ËÑöÊ?®Ë¶ÅºïÁî®Âà?ÁöÑË?ÖÈìæÊé????Âä?ÂÖ?Êï?Â?óÂç?ÂèØÔºå?æã如 {{[[1]}}?ÄÇ
-ÂÆûÈôÖ??øÁî®ÁöÑÊó?ÂÄôÔºåÊääËÑöÊ?® {{[[#1]}} ÊîæÂà?Â?îÊåáÂêëÁöÑ??çÁ?Æ?ÄÇ
-¶Ç??ãÊâÄÁ§??ÄÇ
-ÊÇ®ËøòÂèØ?ª?Âàõª???Ä???Â?¶ÂêçÂ?óÁöÑËÑöÊ?®ÔºåÊñ?Ê?ïÂíåÂàõª?ÊôÆÈÄöË?ÖÈìæÊé?Áõ?Âêå?ÄÇÊØî如 {{[[Footnote name|1]}}Ôºå??üÊòغïÁî®Á¨¨??Ä???ËÑöÊ?® [Footnote name|1]ÁöÑ??ÄÁßçÊñ?ºè?ÄÇ??üÂèØ?ª?ÊääËá?ÂÆö??âÁöÑÂêçÂ?óÁî®??úËÑöÊ?®Êú¨Ë?´Ôºå¶Ç?ÄúFootnote name[2]?Äù?ÄÇ
-![InterWiki|http://www.jspwiki.org/wiki/InterWiki] ÈìæÊé?
-ÊÇ®ËøòÂèØ?ª?Âú®??çÂêåÁöÑ Wiki ??ãÈó¥ÂÅöÈìæÊé?Ôºå??ç??ÄÂÆö˶ÅÁü?ÈÅìÂÖ???ìÁöÑ URL?ÄÇÂè?ÈúÄ˶Å??øÁî®Ê?§Ê?ºÂºè?Äú{{[[Wiki:WikiPage]}}?ÄùÔºåJSPWiki ?ºöËá?Âä®Â?ÆÊÇ®Âàõª?ÈìæÊé??ÄÇ?æã¶ÇÔºåËøô???ÈìæÊé?ÊòØÊåáÂêë [JSPWiki TextFormatting rules|JSPWiki:TextFormattingRules]?ÄÇÂÖ???éÂì???õ WiKi ÈìæÊé?ÂèØÁî®ÁöÑÊõ¥Â§ö?ø°ÊÅØÔºåÂèØÊü?Áúã [SystemInfo] È°µÈù¢?ÄÇ
-¶ÇÊûú??çÊîØÊåÅ [InterWiki|http://www.jspwiki.org/wiki/InterWiki] ÈìæÊé?ÔºåÂ?ìÊÇ®?øùÂ?òËøô???È°µÈù¢Êó??ºöÊî?Âà?ÈÄöÁü??ÄÇ
-!Ê?ªÂä?ÂõæÁâá
-ÊÇ®ÂèØ?ª?ÊääÂõæÁâáµåÂÖ?Âà? wiki ?ª£Á?ÅÈáåÔºåÂè?˶ÅËØ?ÂõæÁâáÂú®Á?ëÁªú??äÂèØÁî®ÔºåÂ????îÁ¨¶Âêà?ª???ãÊ?ºÂºèÔºåÁÑ?ÂêéÂè?ÈúÄÈìæÊé?ËøáÂéª?ÄÇ
-¶ÇÊûúÊåáÂÆöÈìæÊé?ÊñáÊú¨Ôºà{{[[this one here|http://example.com/example.png]}}ÔºâÔºåÂØ???éÊó?Ê?ïÊü?ÁúãÊàñ??çÊÉ?Êü?ÁúãÂõæÁâáÁöÑ???ÔºåÂç?ÂèØÊòæÁ§? ALT ÊñáÊú¨?ÄÇ
-ÂÖÅËÆ?ÁöÑÂõæÁâáÁ±ªÂûãÂèñÂÜ???é Wiki?ÄÇÊÇ®ÂèØ?ª?Êü?Áúã [SystemInfo] È°µÈù¢Ëé?ÂèñÂõæÁâáÁ±ªÂûãÂàóË°®?ÄÇ
-ËøòÂèØ?ª???øÁî® [Image plugin|http://www.jspwiki.org/wiki/Image] Ê?ºÂºèÊéßÂà?ÂõæÁâáÁöÑ??çÁ?ÆÂíå±ûÊÄß?ÄÇ
-˶ÅÂú®ÂõæÁâáÂêéÊ?ªÂä?Á©?Ë°åÔºåÂèØ?ª???øÁî®??â???ÂèçÊñúÊù?Ôºà\ \ \Ôºâ?ÄÇ
-!Á¨¶Âè?ÂàóË°®
-ÂèØ?ª?Âú®Á¨¨??ÄÂàó??øÁî®??Ä???ÊòüÂè?Ôºà*ÔºâÊù?Ê?ªÂä?Á¨¶Âè?ÂàóË°®?ÄÇ¢ûÂä?ÊòüÂè?Êï?ÈáèÂèØÊ?ªÂä?Êõ¥Â§öÁöÑÁº©Ëøõ?ÄÇ?æã¶ÇÔºö
-{{{
-* One \\ one and a half
-* Two
-* Three
-** Three.One}}}
-creates
-* One \\ one and a half
-* Two
-* Three
-** Three.One
-!Êï?Â?óÂàóË°®
-??éÁ¨¶Âè?ÂàóË°®Á±ª?ººÔºåÂè?˶ÅÊääÊòüÂè?Êç¢Êàê??ïÂè?Ôºà#Ôºâ?ÄÇ?æã¶ÇÔºö
-{{{
-# One \\ one and a half
-# Two
-# Three
-## Three.One
-}}}
-creates
-# One \\ one and a half
-# Two
-# Three
-## Three.One
-¶ÇÊûúÊÇ®ÊÉ?Âú®ÊääÂàóË°®???ÁöÑÈ°?ÂÜôÂà?§ö???Ë°å???ÔºåÂè?ÈúÄÂú®??ã??ÄË°å???Ê?ªÂä???Ä???Êàñ§ö???Á©?Ê?ºÔºåËØ?Ë°åÂç??ºöËá?Âä®Ê?ªÂä?Âà?Ââç??Ä???????ÄÇ
-?æã¶ÇÔºö
-{{{
-* This is a single-line item.
-* This is actually a multi-line item.
-  We continue the second sentence on a line on a line of its own.
-  We might as well do a third line while we're at it...
-  Notice, however, as all these sentences get put inside a single item!
-* The third line is again a single-line item for your convenience.
-}}}
-ÊòæÁ§?ÁªìÊûúÊòØÔºö
-* This is a single-line item.
-* This is actually a multi-line item.
-  We continue the second sentence on a line on a line of its own.
-  We might as well do a third line while we're at it...
-  Notice, however, as all these sentences get put inside a single item!
-* The third line is again a single-line item for your convenience.
-!ÂÆö??âÂàóË°®ÂíåÊ?®Èáä
-ÂÆö??âÂàóË°®ÁöÑ??Ä???ÁÆÄÂçïÊñ?Ê?ïÊòØ??øÁî® ';:' -constructÔºö
-{{{
-;__Construct__:''Something you use to do something with''
-}}}
-ÊòæÁ§?ÁªìÊûúÊòØÔºö
-;__Construct__:''Something you use to do something with''
-Áî® ';:' ÁöÑÂè¶??Ä???Â??§ÑÊòØÔºåÊÇ®ÂèØ?ª?Áî®ÂÆÉÂú®Âà´???ÁöÑÊñáÊú¨??äÊ?ªÂä?ÁÆÄÁü?ÁöÑÊ?®ÈáäÔºåÊñ?Ê?ïÊòØÂú®ÂÆö??â???Êîæ??Ä???Á©?ÁöÑ 'term'Ôºå?æã¶ÇÔºö{{{
-;:''Comment here.''
-}}}
-ÊòæÁ§?Âá?Êù?ÁöÑÁªìÊûúÊòØ
-;:''Comment here.''
-!文本效果
-ÊÇ®ÂèØ?ª???øÁî® __bold__ ÊñáÊú¨Êàñ ''italic'' ÊñáÊú¨ÔºåÊñ?Ê?ïÊòØÂàÜÂà´??øÁî®??§?????ãÂàíÁ?øÔºà_ÔºâÂíå??§???ÂçïºïÂè?Ôºà'Ôºâ?ÄǶÇÊûúÊÇ®??øÁî®ÁöÑÊòØ Windows ÁîµËÑëÔºåËØ?Á°Æ?øù??øÁî®??ÜÊ?£Á°ÆÁöÑÂçïºïÂè?ÔºåÂõ????ÊúâÂè¶Â§ñ??Ä???Áúã˵?Êù?ÂæàÂÉèÔºå??ÜÂÆûÈôÖ??äÊòØÈîôËØØÁöÑ?ÄÇ
-??ãÂàíÁ?ø [underscore|] ÊïàÊûúÂèØ?ª?Áî®Ë?ÖÈìæÊé?Êù?ÂÆûÁé?Ôºå??ÜÂ????çÈìæÊé?Âà?ÂÖ??ªñÂú?Êñ?Ôºå如 [[like this|]
-!Ê?ºÂºèÂåñÊñáÊú¨
-¶ÇÊûúÊÇ®ÊÉ?Ê?ªÂä???Ä??õÂ??ÁªèÂê´ÊúâÂõ?ÂÆöÊ?ºÂºèÁöÑÊñáÊú¨ÔºàÊØî¶Ç?ª£Á?ÅÔºâÔºåÂè?ÈúÄ??øÁî®??â???ËøûÁª?ÁöÑÊã¨Âè??Äú({)?ÄùÊñ?ºÄÂßã??Ä???Âå?ÂüüÔºåÁÑ?ÂêéÁî®??â???ËøûÁª?ÁöÑÊã¨Âè??Äú(})?ÄùÁªìÊùüËøô??ÄÂå?Âüü?ÄÇÁºñËæëÊ?§È°µÈù¢ÂÅö????æãÂ?ê?ÄÇ
-({)java.package.pseudocode.class(})
-!Ë°®
-ÊÇ®ÂèØ?ª?ÂÅö??Ä??õÁÆÄÂçïÁöÑË°®Ê?ºÔºå??øÁî®Á´ñÁ?ø ('|')?ÄÇÂèåÁ´ñÁ?øÁ¨¶Âè?Ë°®Á§?ºÄÂßã??ĺ?Ë°®ÔºåÂçïÁ´ñÁ?øÁ¨¶Âè?Ë°®Á§???¶ÂÜôË°®???ÁöÑË°å?ÄÇ
-ÂèØ?ª?Áî®Ë°®?ª?§ñÁöÑË°åÁªìÊùüËØ?Ë°®?ÄÇ
-?æã¶ÇÔºö
-{{{
-|| Heading 1 || Heading 2
-| ''Gobble'' | Bar \\ foo
-| [Main] | [SandBox]
-}}}
-?ºöÊòæÁ§?Êàê?ª???ãË°®?ÄÇÊ?®ÊÑèÂú®Ë°®ÁöÑÂÜÖÈÉ®ÊòضÇ??ï??øÁî®ÈìæÊé?ÁöÑ?ÄÇ
-|| Heading 1 || Heading 2
-| ''Gobble'' | Bar \\ foo
-| [Main] | [SandBox]
-!CSS Ê??ºè
-¶ÇÊûú??çÊÉ?ÂÉè§öÊï?ÊñáÊú¨ÈÇ£Ê??ÈŵÂæ?ÁÆÄÂçïÁöÑÂéüÂàôÔºåÂèØ?ª?Âú®Ë°åÂÜÖ??øÁî® CSS Ê??ºè [can be used inline |http://www.jspwiki.org/wiki/CSSInWikipages] ÂØ?È°µÈù¢???ÊÉ?˶ÅÁâ?Âà´Âº?Ë?ÉÁöÑÈÉ®ÂàÜÂÅö?øÆÈ???ÄÇ
-!ÂÜ?Á?Å
-¶ÇÊûúÊúâ???ÂíåÊÇ®ÂêåÊó?ÂØ?ÊüêÈ°µÈù¢ËøõË°åÁºñËæëÔºåJSPWiki ?ºöÈòªÊ?¢ÊÇ®ËøõË°å?øÆÊî?Â??ÊòæÁ§?ÂÜ?Á?ÅÈ°µÈù¢?ÄÇÈÅóÊÜæÁöÑÊòØÔºåȶñÂÖà?øÆÊî?ÁöÑ????ºö?øÆÊî?ÊàêÂäü...
-__Ë?¶Âëä?ø°ÊÅØÔºö__ ¶ÇÊûúÊÇ®??øÁî®ÊµèËßàÂô®ÁöÑÂêéÈÄÄÊåâÈíÆËøîÂõûÁºñËæëÈ°µÈù¢ÔºåÈÄöÂ???ºöºï˵?ÂÜ?Á?Å?ÄÇËøôÊòØÂõ????ʵèËßàÂô®?ºöËƧ???ÊÇ®ËøòÊòØÁºñËæë?ª?ÂâçÁöÑÈ°µÈù¢?ÄÇ
-!Âà?Èô§È°µÈù¢
-ËøôÊòØ??çÂèØËÉ?ÁöÑ?ÄÇÂ?ìÁÑ?ÔºåÊÇ®ÂèØ?ª?Âà?Èô§ÂØ?ËØ?È°µÈù¢ÁöÑÊâÄÊúâÈìæÊé?ÔºåËøôÊ??Ëøô???È°µÈù¢Â?±Êó?Ê?ïËÆøÈóÆ??Ü?ÄÇÊàñÁîµÂ?êÈÇÆ?ª?ÁªôÁÆ°ÁêÜÂëòÔºåÊàë?ºöÂ?ÆÊÇ®Âà?Èô§Ê?§È°µÈù¢?ÄÇÊÇ®??üÂèØ?ª?Ê?ªÂä???Ä??? [DELETEME|JSPWiki:DELETEME] ÈìæÊé??ÄÇ
-!Ê?ªÂä?Êñ?È°µÈù¢
-ÂèØ?ª?Âàõª???Ä???ÈìæÊé?ÊåáÂêëÊñ?ÁöÑÈ°µÈù¢ÔºàÂ?öÊú?Â?òÂú®ÁöÑÔºâÔºåÊñ?Ê?ïÊòØ??øÁî®ÂÆÉÁöÑWikiÂêçÂ?óÔºå如 [WikiName|http://www.jspwiki.org/wiki/WikiName].
-¶ÇÊûúÁé?Âú®ÂçïÂáªËØ?Êñ?ÈìæÊé?Ôºå?ºöÊòæÁ§???Ä???ÈóÆÂè? (?) ÂêéÁºÄÔºåÊÇ®Â?ÜËé?ÂèñÊñ?È°µÈù¢ÁöÑÁºñËæëÊùÉÈôê?ÄÇ
--- [Asser|http://www.jspwiki.org/wiki/Asser]
-!页面别名识别
-ÊúâÊó?ÂÄôÊÇ®ÊÉ?ÈìæÊé?Âà?Êüê??? wiki È°µÈù¢Ôºå?ª??æøÁ´ãÂç?ʵèËßàÂà?ÂÖ??ªñÈ°µÈù¢?ÄÇËøôÂèØ?ª???øÁî®?ÄúÈ°µÈù¢Âà´Âêç?ÄùÊù?ËøõË°å?ÄÇ
-!ÊèíÂÖ?ÂèòÈáè
-ÂèØ?ª?Âú®È°µÈù¢??äÊèíÂÖ?Âæà§öÁßçÂèòÈáè?ÄÇÂü?Êú¨ÁöÑÊ?ºÂºè???Ôºö
-{{ [[{$variablename}], }}
-ÂÖ???? ''variablename'' ÊòØ˶ÅÊèíÂÖ?ÁöÑÂèòÈáèÁöÑÂêçÁß??ÄÇÊ?®ÊÑèÂèòÈáèÂêçÁß?ÊòØ??çÂå?ÂàܧßÂ?èÂÜôÁöÑ - Âç??Äúpagename?ÄùÂíå?ÄúpaGeNamE?Äù?ª?Âèä?ÄúPageName?ÄùÈÉ?ÊòØ??ÄÊ??ÁöÑ?ÄÇ
-ÊÇ®ÂèØ?ª?Âú®Ê?§È°µÈù¢Êü?ÁúãÂèØÁî®ÁöÑÂèòÈáèÂàóË°®Ôºö[WikiVariables|http://www.jspwiki.org/wiki/WikiVariables]?ÄÇ
-
-!ÊèíÂÖ?Êèí?ª?
-ÊèíÂÖ?Êèí?ª?ÁöÑÂü?Êú¨ËØ?Ê?ï¶Ç??ãÔºö
-[[{INSERT <plugin class> WHERE param1=value, param2=value, ...}]
-ÂèØÊü?ÁúãÊ?§È°µÈù¢Ëé?ÂèñÊõ¥Â§ö?ø°ÊÅØÔºö[JSPWikiPlugins | http://www.jspwiki.org/wiki/JSPWikiPlugins].
-----
-[#1] ËøôÊòØÊàëÊèêÂà?ËøáÁöÑËÑöÊ?®?ÄÇ
-[2-The other footnote|#2] Âè¶Â§ñ??Ä???ËÑöÊ?®?ÄÇÊ?®ÊÑèÂà?ÂêçÂ?óÁöÑÂå?Âà´??ÜÂêóÔºü
-----
-Êúâ?ªª??ïÊÑèËßÅÂêó [ÊÑèËßÅ | http://www.jspwiki.org/wiki/IdeasTextFormattingRules]Ôºü
-Êúâ?ªª??ïÈóÆÈ¢òÂêó [ÈóÆÈ¢ò | http://www.jspwiki.org/wiki/TextFormattingRulesDiscussion]Ôºü
+本页面描述了 JSPWiki 所使用的 wiki 语法。有关 JSPWiki 语法和 Wikipedia 的区别的详细信息,请参考 [MigratingFromMediaWiki|http://www.jspwiki.org/wiki/MigratingFromMediaWiki]。
+
+[{TableOfContents }]
+\\
+如果您已经明白编辑器如何工作,那么您应该看看 [WikiEtiquette],以便了解如何使用刚学到的技术。[沙盒|http://sandbox.jspwiki.org] 是一个用来练习的好地方。
+!快速参考
+{{{
+----       = 生成水平线。多余的 '-' 将被忽略。
+\\         = 强制换行
+
+[link]     = 创建一个到名为 "Link" 的内部 Wiki 页面的超链接。
+[this is also a link] = 创建一个到名为 'ThisIsAlsoALink' 的内部 Wiki 页面,链接则显示为带空格的输入内容。
+[a sample|link] = 创建一个到名为 "Link" 的内部 Wiki 页面的超链接,但给用户显示的是文本 "a sample"create a hyperlink to an  而非 "Link"。
+~NoLink    = 禁止给以驼峰字(CamelCase)形式书写的词创建链接。
+[1]        = 引用脚注 1。
+[#1]       = 标记为脚注 1。
+[link]     = 创建文本 '[link]'。
+
+!heading   = 文本为 'heading' 的小标题
+!!heading  = 文本为 'heading' 的中标题
+!!!heading = 文本为 'heading' 的大标题
+
+''text''   = 以斜体显示 'text'。
+__text__   = 以粗体显示 'text'。
+{{text}}   = 以等宽字体显示 'text'。
+[text|]    = 给 'text' 加上下划线(空白超链接)
+* text     = 给 'text' 加上项目符合
+# text     = 给 'text' 加上编号
+;term:ex   = 对 'term' 以解释 'ex' 做了定义
+}}}
+!撰写文本
+您不必了解有关 Wiki 文本格式化规则以使用 Wiki。只需要撰写正常的文本,然后用空行标记一个段落。
+就像写电子邮件一样。
+您始终可以编辑这个页面(看一下左边的侧栏)看看这个页面所使用的各种效果。
+!超链接
+链接也可以是直接以{{http:}}、{{ftp:}}、{{mailto:}}、{{https:}} 或 {{news:}} 开头的 URL,在这种情况下,链接指向外部实体。例如,要指向 ''java.sun.com'' 的主页,就要使用 {{[[http://java.sun.com]}},它会是 [http://java.sun.com/] 或者使用 {{[[Java 主页|http://java.sun.com]}},则会是 [Java 主页|http://java.sun.com]。
+如果链接不以上面的“协议”开头,那么 Wiki 会将其认作链接到 Wiki 空间中其他页面的普通链接,您需要以字母作为这个页面的第一个字符,纯粹数字的页面名是不允许的。如果要在页面中使用方括号({{[[]}})而不想创建链接,就用两个开口的方括号({{[[[}})。所以文本 {{[[[Example Non-Link]}},会显示为 {{[[Example Non-Link]}}[[Murali]。
+要添加新页面,您只需要从其他地方创建一个指向它的链接即可。毕竟,要一个不能访问的页面意义不大!在返回到那个页面的时候,您会发现页面名称后面有个小问号。然后,点击这个问号,这样您就创建了一个页面。
+在一个 [WikiName|http://www.jspwiki.org/wiki/WikiName] 中,几乎可以使用任何字符,不过他们要是字母或数字才行。
+另外有一点,本 Wiki 可以通过配置来支持标准的驼峰字 [CamelCase|http://www.jspwiki.org/wiki/CamelCase] 连接(如果支持,只要不以 '~' 开头,单词 CamelCase 应该就是一个链接)。缺省情况下这个功能是关闭的,当然如果管理员已经将这个设置打开的话,那么 CamelCase 就是你要的了。
+!脚注
+脚注是一种特殊类型的超链接。创建脚注十分简单,只需在脚注要引用到的超链接中加入数字即可,例如 {{[[1]}}。
+实际使用的时候,把脚注 {{[[#1]}} 放到应指向的位置。
+如下所示。
+您还可以创建一个带名字的脚注,方法和创建普通超链接相同。比如 {{[[Footnote name|1]}},也是引用第一个脚注 [Footnote name|1]的一种方式。也可以把自定义的名字用作脚注本身,如“Footnote name[2]”。
+![InterWiki|http://www.jspwiki.org/wiki/InterWiki] 链接
+您还可以在不同的 Wiki 之间做链接,不一定要知道具体的 URL。只需要使用此格式“{{[[Wiki:WikiPage]}}”,JSPWiki 会自动帮您创建链接。例如,这个链接是指向 [JSPWiki TextFormatting rules|JSPWiki:TextFormattingRules]。关于哪些 WiKi 链接可用的更多信息,可查看 [SystemInfo] 页面。
+如果不支持 [InterWiki|http://www.jspwiki.org/wiki/InterWiki] 链接,当您保存这个页面时会收到通知。
+!添加图片
+您可以把图片嵌入到 wiki 代码里,只要该图片在网络上可用,并且符合以下格式,然后只需链接过去。
+如果指定链接文本({{[[this one here|http://example.com/example.png]}}),对于无法查看或不想查看图片的人,即可显示 ALT 文本。
+允许的图片类型取决于 Wiki。您可以查看 [SystemInfo] 页面获取图片类型列表。
+还可以使用 [Image plugin|http://www.jspwiki.org/wiki/Image] 格式控制图片的位置和属性。
+要在图片后添加空行,可以使用三个反斜杠(\ \ \)。
+!符号列表
+可以在第一列使用一个星号(*)来添加符号列表。增加星号数量可添加更多的缩进。例如:
+{{{
+* One \\ one and a half
+* Two
+* Three
+** Three.One}}}
+creates
+* One \\ one and a half
+* Two
+* Three
+** Three.One
+!数字列表
+与符号列表类似,只要把星号换成井号(#)。例如:
+{{{
+# One \\ one and a half
+# Two
+# Three
+## Three.One
+}}}
+creates
+# One \\ one and a half
+# Two
+# Three
+## Three.One
+如果您想在把列表中的项写到多个行中,只需在下一行中添加一个或多个空格,该行即会自动添加到前一个中。
+例如:
+{{{
+* This is a single-line item.
+* This is actually a multi-line item.
+  We continue the second sentence on a line on a line of its own.
+  We might as well do a third line while we're at it...
+  Notice, however, as all these sentences get put inside a single item!
+* The third line is again a single-line item for your convenience.
+}}}
+显示结果是:
+* This is a single-line item.
+* This is actually a multi-line item.
+  We continue the second sentence on a line on a line of its own.
+  We might as well do a third line while we're at it...
+  Notice, however, as all these sentences get put inside a single item!
+* The third line is again a single-line item for your convenience.
+!定义列表和注释
+定义列表的一个简单方法是使用 ';:' -construct:
+{{{
+;__Construct__:''Something you use to do something with''
+}}}
+显示结果是:
+;__Construct__:''Something you use to do something with''
+用 ';:' 的另一个好处是,您可以用它在别人的文本上添加简短的注释,方法是在定义中放一个空的 'term',例如:{{{
+;:''Comment here.''
+}}}
+显示出来的结果是
+;:''Comment here.''
+!文本效果
+您可以使用 __bold__ 文本或 ''italic'' 文本,方法是分别使用两个下划线(_)和两个单引号(')。如果您使用的是 Windows 电脑,请确保使用了正确的单引号,因为有另外一个看起来很像,但实际上是错误的。
+下划线 [underscore|] 效果可以用超链接来实现,但并不链接到其他地方,如 [[like this|]
+!格式化文本
+如果您想添加一些已经含有固定格式的文本(比如代码),只需使用三个连续的括号“({)”新开始一个区域,然后用三个连续的括号“(})”结束这一区域。编辑此页面做个例子。
+({)java.package.pseudocode.class(})
+!表
+您可以做一些简单的表格,使用竖线 ('|')。双竖线符号表示开始一张表,单竖线符号表示书写表中的行。
+可以用表以外的行结束该表。
+例如:
+{{{
+|| Heading 1 || Heading 2
+| ''Gobble'' | Bar \\ foo
+| [Main] | [SandBox]
+}}}
+会显示成以下表。注意在表的内部是如何使用链接的。
+|| Heading 1 || Heading 2
+| ''Gobble'' | Bar \\ foo
+| [Main] | [SandBox]
+!CSS 样式
+如果不想像多数文本那样遵循简单的原则,可以在行内使用 CSS 样式 [can be used inline |http://www.jspwiki.org/wiki/CSSInWikipages] 对页面中想要特别强调的部分做修饰。
+!冲突
+如果有人和您同时对某页面进行编辑,JSPWiki 会阻止您进行修改并显示冲突页面。遗憾的是,首先修改的人会修改成功...
+__警告信息:__ 如果您使用浏览器的后退按钮返回编辑页面,通常会引起冲突。这是因为浏览器会认为您还是编辑以前的页面。
+!删除页面
+这是不可能的。当然,您可以删除对该页面的所有链接,这样这个页面就无法访问了。或电子邮件给管理员,我会帮您删除此页面。您也可以添加一个 [DELETEME|JSPWiki:DELETEME] 链接。
+!添加新页面
+可以创建一个链接指向新的页面(尚未存在的),方法是使用它的Wiki名字,如 [WikiName|http://www.jspwiki.org/wiki/WikiName].
+如果现在单击该新链接,会显示一个问号 (?) 后缀,您将获取新页面的编辑权限。
+-- [Asser|http://www.jspwiki.org/wiki/Asser]
+!页面别名识别
+有时候您想链接到某个 wiki 页面,以便立即浏览到其他页面。这可以使用“页面别名”来进行。
+!插入变量
+可以在页面上插入很多种变量。基本的格式为:
+{{ [[{$variablename}], }}
+其中 ''variablename'' 是要插入的变量的名称。注意变量名称是不区分大小写的 - 即“pagename”和“paGeNamE”以及“PageName”都是一样的。
+您可以在此页面查看可用的变量列表:[WikiVariables|http://www.jspwiki.org/wiki/WikiVariables]。
+
+!插入插件
+插入插件的基本语法如下:
+[[{INSERT <plugin class> WHERE param1=value, param2=value, ...}]
+可查看此页面获取更多信息:[JSPWikiPlugins | http://www.jspwiki.org/wiki/JSPWikiPlugins].
+----
+[#1] 这是我提到过的脚注。
+[2-The other footnote|#2] 另外一个脚注。注意到名字的区别了吗?
+----
+有任何意见吗 [意见 | http://www.jspwiki.org/wiki/IdeasTextFormattingRules]?
+有任何问题吗 [问题 | http://www.jspwiki.org/wiki/TextFormattingRulesDiscussion]?
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TitleBox.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TitleBox.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TitleBox.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/TitleBox.txt Mon Nov 10 19:49:06 2008
@@ -1,3 +1,3 @@
-%%center
-[ʨ¢Ëøé|TitleBox]??øÁî® [JSPWiki|About]
-/%
+%%center
+[欢迎|TitleBox]使用 [JSPWiki|About]
+/%
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UndefinedPages.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UndefinedPages.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UndefinedPages.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UndefinedPages.txt Mon Nov 10 19:49:06 2008
@@ -1,6 +1,5 @@
-Ëøô??õÊòØËøòÊ?°ÊúâÂàõª?ÁöÑÈ°µÈù¢?ÄÇ?????ï??çÂéªÂàõª???Ä??õÈ°µÈù¢Âë¢Ôºü
-
-[{INSERT com.ecyrd.jspwiki.plugin.UndefinedPagesPlugin}]
-
-ÔºàËøîÂõû[??ªÈ°µ|Main]Ôºâ
-
+这些是还没有创建的页面。为何不去创建一些页面呢?
+
+[{INSERT com.ecyrd.jspwiki.plugin.UndefinedPagesPlugin}]
+
+(返回[主页|Main])

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UnusedPages.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UnusedPages.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UnusedPages.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/UnusedPages.txt Mon Nov 10 19:49:06 2008
@@ -1,3 +1,3 @@
-Ëøô??õÊòØÊ?°Êúâ?ªé?ªª??ïÈ°µÈù¢ÔºàËá?Âä®ÁîüÊàêÁöÑÈ°µÈù¢Èô§Â§ñÔºâËÆøÈóÆÁöÑÈ°µÈù¢?ÄÇ
-
-[{INSERT com.ecyrd.jspwiki.plugin.UnusedPagesPlugin}]
+这些是没有从任何页面(自动生成的页面除外)访问的页面。
+
+[{INSERT com.ecyrd.jspwiki.plugin.UnusedPagesPlugin}]

Propchange: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiEtiquette.txt
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiName.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiName.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiName.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiName.txt Mon Nov 10 19:49:06 2008
@@ -1,7 +1,7 @@
-[WikiNames] ??ÄËà¨ÊòØ??øÁî® ~InterCappingÔºå??üÁß???? ~CamelCaseÔºåËøôÁßç??¶ÂÜôÊñ?ºè?ª?§ßÂÜôºÄ§¥ÔºåËÄå??îÂú® Wiki ÈìæÊé?ËØçËØ????Ëá?Â?ëÊúâÂè¶??Ä???§ßÂÜôÂ?óÊØç?ÄÇËøô??øÂæóÂÜÖÈÉ®Ë?ÖÈìæÊé?ÁöÑÂàõª?Áõ?Â?ìÂÆ?Êòì?ÄÇ
-
-ÁÑ?ËÄåÔºåÂú®Ê?§ [WikiWiki] ???Ôºå[links] ??øÁî® [[link] Ê?áÊ?®Êù???¶ÂÜôÔºå??ªË¶ÅÊòØÂõ????ÂéüÊù?ÁöÑÈìæÊé? ~InterCapping Ê??ºèÊúâÊó?ÂÄôÊúâ??õËÆ©???Ëø?ÊÉë?ÄǶÇÊûúÁúã??Ä??ã??äÈù¢ÁöÑ URLÔºåÂêçÂ?óËøòÊòØÁ¨¶Âêà [WikiWiki] Ê?áÂáÜ?ÄÇ
-
-ÂêçÁß?ÊòØË¢´''Êå§ÂéãÁöÑ''Ôºå?æã¶ÇÔºå[[This is a link] Êàê??? [[ThisIsALink]?ÄÇÁÑ?ËÄåÔºå??ãÂàíÁ?øÂíåÂè?ÁÇ?ÊòØ?øùÁïôÁöÑÔºåÊâÄ?ª?ÊÇ®ÂèØ?ª?ÊúâËøôÊ??ÁöÑÈìæÊé?Ôºö[[This_is_a_link]ÔºåÊàñËÄÖ [[This.Is.A.Link]?ÄÇÈô§??Ü '_' Âíå '.' ??ã§ñÁöÑÊâÄÊúâÈùûÂ?óÊØçÊï?Â?óÂ?óÁ¨¶?ºöË¢´Âà?ÊéâÔºå??üÂ?±ÊòØËØ¥ÔºåÊâÄÊúâËøô??õÂ?óÁ¨¶??çÊòØÂ?óÊØçÊàñËÄÖÊï?Â?óÔºåÊâÄ?ª? [[John's page] Âèò??? [[JohnsPage]?ÄÇËøôÊ??ÂèØ?ª?ËÆ©ÊÇ®ËæìÂÖ?Ê?£Â??Âè?Â?êÔºåËÄåÂêéËøô??õÂè?Â?êË?¨ÊàêÈìæÊé?ÔºåÊØî¶ÇË?àËÆ? [Wiki etiquette]?ÄÇ
-
-WikiName ??çËÉ?ÊòØÊï?Â?ó?ÄÇÊï?Â?óÂêçÂ?óÊòØÁî®??é[ËÑöÊ?®|TextFormattingRules]?ÄÇ
+[WikiNames] 一般是使用 ~InterCapping,也称为 ~CamelCase,这种书写方式以大写开头,而且在 Wiki 链接词语中至少有另一个大写字母。这使得内部超链接的创建相当容易。
+
+然而,在此 [WikiWiki] 中,[links] 使用 [[link] 标注来书写,主要是因为原来的链接 ~InterCapping 样式有时候有些让人迷惑。如果看一下上面的 URL,名字还是符合 [WikiWiki] 标准。
+
+名称是被''挤压的'',例如,[[This is a link] 成为 [[ThisIsALink]。然而,下划线和句点是保留的,所以您可以有这样的链接:[[This_is_a_link],或者 [[This.Is.A.Link]。除了 '_' 和 '.' 之外的所有非字母数字字符会被删掉,也就是说,所有这些字符不是字母或者数字,所以 [[John's page] 变为 [[JohnsPage]。这样可以让您输入正常句子,而后这些句子转成链接,比如谈论 [Wiki etiquette]。
+
+WikiName 不能是数字。数字名字是用于[脚注|TextFormattingRules]。
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiVariables.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiVariables.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiVariables.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiVariables.txt Mon Nov 10 19:49:06 2008
@@ -1,58 +1,57 @@
-JSPWiki ÊúâËÆ?§öÂèØ?ª?Âú®ËøêË°åÊó?µåÂÖ?Âú®È°µÈù¢???ÁöÑÂèòÈáè?ÄÇËØ?ÂèÇÈòÖ[ÊñáÊú¨Ê?ºÂºèÂåñËßÑÂàô]??ÜËߣ¶Ç??ï??øÁî®?ÄÇÂø´ÈÄüÁ§??æãÔºö
-
-{{{
-[{$jspwikiversion}]
-}}}
-
-!applicationname
-
-ËøôÊòØÊ?§ Wiki ÁöÑÂêçÂ?ó?ÄÇÊòØÁÆ°ÁêÜÂëòÂú® "jspwiki.properties" ???ËÆæÁ?ÆÁöÑ?ÄÇÊ?§ Wiki Âêç??? ''[{$applicationname}]''?ÄÇ
-
-!baseurl
-
-Ê?§ Wiki ÁöÑÂü?Êú¨ URL?ÄÇ?æã¶ÇÔºö''[{$baseurl}]''?ÄÇ
-* Â?áÊÄ?ÁöÑÊòØÔºåÂ?æÈÉ®ÊñúÊù??ºº??éÂèØ?ª?Â????úÔºåÂ??ÁÆ°Â??ÁªèÂú®Â±ûÊÄßÊñá?ª????ÂÆö??â??ÜÂ?æÈÉ®ÊñúÊù?ÔºåÂú®Êàë?ª¨ÁöÑËÆæÁ?Æ???ÔºàWindows 2000ÔºåApache 2ÔºåTomcat 5.5ÔºåJSPWiki 2.2.28ÔºâÂ?æÈÉ®ÊñúÊù?Ë¢´Âà?Êéâ??Ü?ÄÇ-- G. HagedornÔºå2005Â?¥10Êúà
-
-!encoding
-
-ÊèèËø???ÜÊ?§ Wiki ?????øÁî®ÁöÑÂ?óÁ¨¶ÁºñÁ?Å?ÄÇUTF-8 ÁºñÁ?ÅÊÑèÂë?ÁùÄ Wiki ÂèØ?ª?Êé?Âèó?ªª??ïÂ?óÁ¨¶ÔºåÂåÖÊã¨???Êñá?ÄÅÊó?ÊñáÁ?âÁ?â?ÄÇËÄå ISO-8859-1 Ë°®Á§?Âè?ÊîØÊåÅË?øʨßËØ?Ë®Ä?ÄÇÊú¨ Wiki ??øÁî®??Ü ''[{$encoding}]'' ÁºñÁ?Å?ÄÇ
-
-!inlinedimages
-
-ËÆ©ÊÇ®Áü?ÈÅìÈÇ£??õÂõæÂÉèÁ±ªÂûãÂèØ?ª?Áõ¥Êé?ÊòæÁ§?Âú®È°µÈù¢????ÄÇ?æã¶ÇÔºö''[{$inlinedimages}]''?ÄÇ
-
-!interwikilinks
-
-???ÊîØÊåÅÁöÑ InterWiki ÈìæÊé?ÁºñÂÜô HTML ?ª£Á?Å?ÄÇ?æã¶ÇÔºö\\ ''[{$interwikilinks}]''?ÄÇ
-
-!jspwikiversion
-
-ÊèíÂÖ? JSPWiki ºïÊìéÁöÑÁâàÊú¨Âè??ÄÇ?æã¶ÇÔºåÊ?§ÁâàÊú¨??? ''[{$jspwikiversion}]''?ÄÇ
-
-!uptime
-
-ÊèíÂÖ?Ëá??ªé??äʨ° Wiki ÈáçÊñ?ÂêØÂä® ?ª?Êù?Âà?Áé?Âú®ÁöÑËøêË°åÊó?Èó¥?ÄÇÊú¨ Wiki Â??ÁªèËøêË°å??Ü ''[{$uptime}]''?ÄÇ
-
-!pagename
-
-ÊèíÂÖ?Â?ìÂâçÈ°µÈù¢Âêç?ÄÇÁ§??æãÔºöÊ?§È°µÈù¢Âêç??? ''[{$pagename}]''?ÄÇ
-
-!pageprovider
-
-Â?ìÂâçÁöÑ PageProvider?ÄÇÁ§??æãÔºö''[{$pageprovider}]''?ÄÇ
-
-!pageproviderdescription
-
-ÂÖ???éÂ?ìÂâç??øÁî®ÁöÑÈ°µÈù¢Êèê?æõÁ®ãÂ?èÁöÑËضÁªÜÁöÑ HTML ÊèèËø??ÄÇÁ§??æãÔºö''[{$pageproviderdescription}]''?ÄÇ
-
-!totalpages
-
-Ê?§ Wiki ???ÂèØÁî®ÁöÑÊĪȰµÈù¢Êï??ÄÇÁ§??æãÔºö''[{$totalpages}]''?ÄÇ
-
-!ÊèíÂÖ? JSPWiki ±ûÊÄß
-
-ÊÇ®??üÂèØ?ª?ÈÄöËøáÁõ¥Êé???øÁî®Â±ûÊÄßÂêçÊù?ËÆøÈóÆ JSPWiki ???ÁöÑ??Ä??õ±ûÊÄßÔºàÂ?ìÁÑ?Ëøô??õ±ûÊÄß˶ÅÁ´ôÁÇ?Áª¥Êä§???ÂëòÂÆö??âËøáÊâçË°åÔºâ?ÄÇËØ?ÂèÇËÄÉ [SystemInfo] Ëé?ÂèñÁ§??æã?ÄÇ
-Ê?®ÊÑèÔºåÂá???éÂÆâÂÖ®ËÄÉËôë??Ä??õ±ûÊÄßÂèØËÉ???çËÉ?ËÆøÈóÆ?ÄÇ
-
-
-
+JSPWiki 有许多可以在运行时嵌入在页面中的变量。请参阅[文本格式化规则]了解如何使用。快速示例:
+
+{{{
+[{$jspwikiversion}]
+}}}
+
+!applicationname
+
+这是此 Wiki 的名字。是管理员在 "jspwiki.properties" 中设置的。此 Wiki 名为 ''[{$applicationname}]''。
+
+!baseurl
+
+此 Wiki 的基本 URL。例如:''[{$baseurl}]''。
+* 奇怪的是,尾部斜杠似乎可以工作,尽管已经在属性文件中定义了尾部斜杠,在我们的设置中(Windows 2000,Apache 2,Tomcat 5.5,JSPWiki 2.2.28)尾部斜杠被删掉了。-- G. Hagedorn,2005年10月
+
+!encoding
+
+描述了此 Wiki 中使用的字符编码。UTF-8 编码意味着 Wiki 可以接受任何字符,包括中文、日文等等。而 ISO-8859-1 表示只支持西欧语言。本 Wiki 使用了 ''[{$encoding}]'' 编码。
+
+!inlinedimages
+
+让您知道那些图像类型可以直接显示在页面中。例如:''[{$inlinedimages}]''。
+
+!interwikilinks
+
+为支持的 InterWiki 链接编写 HTML 代码。例如:\\ ''[{$interwikilinks}]''。
+
+!jspwikiversion
+
+插入 JSPWiki 引擎的版本号。例如,此版本为 ''[{$jspwikiversion}]''。
+
+!uptime
+
+插入自从上次 Wiki 重新启动 以来到现在的运行时间。本 Wiki 已经运行了 ''[{$uptime}]''。
+
+!pagename
+
+插入当前页面名。示例:此页面名为 ''[{$pagename}]''。
+
+!pageprovider
+
+当前的 PageProvider。示例:''[{$pageprovider}]''。
+
+!pageproviderdescription
+
+关于当前使用的页面提供程序的详细的 HTML 描述。示例:''[{$pageproviderdescription}]''。
+
+!totalpages
+
+此 Wiki 中可用的总页面数。示例:''[{$totalpages}]''。
+
+!插入 JSPWiki 属性
+
+您也可以通过直接使用属性名来访问 JSPWiki 中的一些属性(当然这些属性要站点维护人员定义过才行)。请参考 [SystemInfo] 获取示例。
+注意,出于安全考虑一些属性可能不能访问。
+
+

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiWiki.txt
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiWiki.txt?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiWiki.txt (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/zh_CN/WikiWiki.txt Mon Nov 10 19:49:06 2008
@@ -1,5 +1,5 @@
-WikiWiki Êòاè®Å§?ËØ?ÔºåÊÑèÊÄùÊòØ?ÄúÂø´?Äù?ÄÇ
-~ViteVite ÊòØÊ?ïËØ????ÁöÑ?ÄúÂø´Âø´?Äù?ÄÇ
-Wiki ??üÊúâ??Ä???ÂÖ®Áß? -- __W__hat __I__ __K__now __I__sÔºàÊàëÊâÄÁü?ÈÅìÁöÑÊòØÔºâ
-
-Âú® [ÂéüÂßã WikiÔºàÁª¥Âü?Ôºâ|http://c2.com/cgi/wiki?WikiEngines]???ÂèØ?ª?ÊâæÂà?Áî± Ward Cunningham Êí?ÂÜôÁöÑ??Ä???Áõ?Â?ìÂÆåÊï¥ÁöÑÂÖ??ªñÂêÑÁßç Wiki ºïÊìéÁöÑÂàóË°®?ÄÇ
+WikiWiki 是夏威夷语,意思是“快”。
+~ViteVite 是法语中的“快快”。
+Wiki 也有一个全称 -- __W__hat __I__ __K__now __I__s(我所知道的是)
+
+在 [原始 Wiki(维基)|http://c2.com/cgi/wiki?WikiEngines]中可以找到由 Ward Cunningham 撰写的一个相当完整的其他各种 Wiki 引擎的列表。
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/TranslationsCheck.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/TranslationsCheck.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/TranslationsCheck.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/TranslationsCheck.java Mon Nov 10 19:49:06 2008
@@ -46,27 +46,49 @@
         System.out.println("Internationalization property file differences between 'default en' and '"
                            + suffix + "' following:\n");
 
-        diff("/etc/i18n/CoreResources.properties",
-             "/etc/i18n/CoreResources_" + suffix + ".properties");
-        detectDuplicates("/etc/i18n/CoreResources_" + suffix + ".properties");
-
-        diff("/etc/i18n/templates/default.properties",
-             "/etc/i18n/templates/default_" + suffix + ".properties");
-        detectDuplicates("/etc/i18n/templates/default_" + suffix + ".properties");
-
-        diff("/etc/i18n/plugin/PluginResources.properties",
-             "/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
-        detectDuplicates("/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
+        try
+        {
+            diff("/etc/i18n/CoreResources.properties",
+                 "/etc/i18n/CoreResources_" + suffix + ".properties");
+            detectDuplicates("/etc/i18n/CoreResources_" + suffix + ".properties");
+        }
+        catch( FileNotFoundException e )
+        {
+            System.err.println("Unable to locate "+"/etc/i18n/CoreResources_" + suffix + ".properties");
+        }
+
+        try
+        {
+            diff("/etc/i18n/templates/default.properties",
+                 "/etc/i18n/templates/default_" + suffix + ".properties");
+            detectDuplicates("/etc/i18n/templates/default_" + suffix + ".properties");
+        }
+        catch( FileNotFoundException e )
+        {
+            System.err.println("Unable to locate "+"/etc/i18n/templates/default_" + suffix + ".properties");
+        }    
         
-        System.out.println("Duplicates overall (two or more occurences):");
-        System.out.println("--------------------------------------------");
-        Iterator iter = duplProps.iterator();
-        if (duplProps.size() == 0)
-            System.out.println("(none)");
-        else
-            while (iter.hasNext())
-                System.out.println(iter.next());
-        System.out.println();
+        try
+        {
+            diff("/etc/i18n/plugin/PluginResources.properties",
+                 "/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
+        
+            detectDuplicates("/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
+        
+            System.out.println("Duplicates overall (two or more occurences):");
+            System.out.println("--------------------------------------------");
+            Iterator iter = duplProps.iterator();
+            if (duplProps.size() == 0)
+                System.out.println("(none)");
+            else
+                while (iter.hasNext())
+                    System.out.println(iter.next());
+            System.out.println();
+        }
+        catch( FileNotFoundException e ) 
+        {
+            System.err.println("Unable to locate "+"/etc/i18n/plugin/PluginResources_" + suffix + ".properties");
+        } 
 
         System.out.println("NOTE: Please remember that dependent on the usage of these i18n files, outdated " +
         		"properties maybe should not be deleted, because they may be used by previous releases. " +

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/ReleaseTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/ReleaseTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/ReleaseTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/ReleaseTest.java Mon Nov 10 19:49:06 2008
@@ -38,9 +38,17 @@
         String rel = null;
         
         if( Release.MINORREVISION != 0 )
-            rel = Release.VERSION+"."+Release.REVISION+"."+(Release.MINORREVISION-1)+"-cvs";
+        {
+            rel = Release.VERSION+"."+Release.REVISION+"."+(Release.MINORREVISION-1)+"-svn";
+        }
+        else if( Release.REVISION != 0 )
+        {
+            rel = Release.VERSION+"."+(Release.REVISION-1)+".9999"+"-svn";            
+        }
         else
-            rel = Release.VERSION+"."+(Release.REVISION-1)+".9999"+"-cvs";            
+        {
+            rel = (Release.VERSION-1)+".9999.9999-svn";
+        }
         
         assertTrue( Release.isNewerOrEqual(rel) );
     }
@@ -92,8 +100,10 @@
         
         if( Release.MINORREVISION != 0 )
             rel = Release.VERSION+"."+Release.REVISION+"."+(Release.MINORREVISION-1)+"-cvs";
-        else
+        else if( Release.REVISION != 0 )
             rel = Release.VERSION+"."+(Release.REVISION-1)+".9999"+"-cvs";   
+        else
+            rel = (Release.VERSION-1)+".9999.9999-svn";
         
         assertFalse( Release.isOlderOrEqual(rel) );
     }

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/auth/AuthorizationManagerTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/auth/AuthorizationManagerTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/auth/AuthorizationManagerTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/auth/AuthorizationManagerTest.java Mon Nov 10 19:49:06 2008
@@ -69,6 +69,11 @@
     {
         Properties props = new Properties();
         props.load( TestEngine.findTestProperties() );
+        
+        // Make sure we are using the default security policy file jspwiki.policy
+        props.put( AuthorizationManager.POLICY, AuthorizationManager.DEFAULT_POLICY );
+        
+        // Initialize the test engine
         m_engine = new TestEngine( props );
         m_auth = m_engine.getAuthorizationManager();
         m_groupMgr = m_engine.getGroupManager();
@@ -659,5 +664,85 @@
         assertTrue( "Alice cannot read", m_auth.checkPermission( session, 
                                                                  new PagePermission("TestDefaultPage","view") ) );
     }
+    
+    public void testUserPolicy() throws Exception
+    {
+        Properties props = new Properties();
+        props.load( TestEngine.findTestProperties() );
+        
+        // Make sure we are using the default security policy file jspwiki.policy
+        props.put( AuthorizationManager.POLICY, "jspwiki-testUserPolicy.policy" );
+        
+        // Initialize the test engine
+        m_engine = new TestEngine( props );
+        m_auth = m_engine.getAuthorizationManager();
+        m_groupMgr = m_engine.getGroupManager();
+        m_session = WikiSessionTest.adminSession( m_engine );
+        
+        WikiSession s = WikiSessionTest.anonymousSession( m_engine );
+        assertFalse( "Anonymous view", m_auth.checkStaticPermission( s, PagePermission.VIEW ) );
+        assertFalse( "Anonymous edit", m_auth.checkStaticPermission( s, PagePermission.EDIT ) );
+        assertFalse( "Anonymous comment", m_auth.checkStaticPermission( s, PagePermission.COMMENT ) );
+        assertFalse( "Anonymous modify", m_auth.checkStaticPermission( s, PagePermission.MODIFY ) );
+        assertFalse( "Anonymous upload", m_auth.checkStaticPermission( s, PagePermission.UPLOAD ) );
+        assertFalse( "Anonymous rename", m_auth.checkStaticPermission( s, PagePermission.RENAME ) );
+        assertFalse( "Anonymous delete", m_auth.checkStaticPermission( s, PagePermission.DELETE ) );
+        assertFalse( "Anonymous prefs", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PREFERENCES ) );
+        assertFalse( "Anonymous profile", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PROFILE ) );
+        assertFalse( "Anonymous pages", m_auth.checkStaticPermission( s, WikiPermission.CREATE_PAGES ) );
+        assertFalse( "Anonymous groups", m_auth.checkStaticPermission( s, WikiPermission.CREATE_GROUPS ) );
+
+        s = WikiSessionTest.assertedSession( m_engine, "Jack Sparrow" );
+        assertFalse( "Asserted view", m_auth.checkStaticPermission( s, PagePermission.VIEW ) );
+        assertFalse( "Asserted edit", m_auth.checkStaticPermission( s, PagePermission.EDIT ) );
+        assertFalse( "Asserted comment", m_auth.checkStaticPermission( s, PagePermission.COMMENT ) );
+        assertFalse( "Asserted modify", m_auth.checkStaticPermission( s, PagePermission.MODIFY ) );
+        assertFalse( "Asserted upload", m_auth.checkStaticPermission( s, PagePermission.UPLOAD ) );
+        assertFalse( "Asserted rename", m_auth.checkStaticPermission( s, PagePermission.RENAME ) );
+        assertFalse( "Asserted delete", m_auth.checkStaticPermission( s, PagePermission.DELETE ) );
+        assertFalse( "Asserted prefs", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PREFERENCES ) );
+        assertFalse( "Asserted profile", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PROFILE ) );
+        assertFalse( "Asserted pages", m_auth.checkStaticPermission( s, WikiPermission.CREATE_PAGES ) );
+        assertFalse( "Asserted groups", m_auth.checkStaticPermission( s, WikiPermission.CREATE_GROUPS ) );
+
+        s = WikiSessionTest.authenticatedSession( m_engine, Users.BOB, Users.BOB_PASS );
+        assertTrue( "Bob  view", m_auth.checkStaticPermission( s, PagePermission.VIEW ) );
+        assertTrue( "Bob edit", m_auth.checkStaticPermission( s, PagePermission.EDIT ) );
+        assertTrue( "Bob comment", m_auth.checkStaticPermission( s, PagePermission.COMMENT ) );
+        assertTrue( "Bob modify", m_auth.checkStaticPermission( s, PagePermission.MODIFY ) );
+        assertTrue( "Bob upload", m_auth.checkStaticPermission( s, PagePermission.UPLOAD ) );
+        assertFalse( "Bob rename", m_auth.checkStaticPermission( s, PagePermission.RENAME ) );
+        assertTrue( "Bob delete", m_auth.checkStaticPermission( s, PagePermission.DELETE ) );
+        assertFalse( "Bob prefs", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PREFERENCES ) );
+        assertFalse( "Bob profile", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PROFILE ) );
+        assertFalse( "Bob pages", m_auth.checkStaticPermission( s, WikiPermission.CREATE_PAGES ) );
+        assertFalse( "Bob groups", m_auth.checkStaticPermission( s, WikiPermission.CREATE_GROUPS ) );
+
+        s = WikiSessionTest.authenticatedSession( m_engine, Users.JANNE, Users.JANNE_PASS );
+        assertTrue( "Janne  view", m_auth.checkStaticPermission( s, PagePermission.VIEW ) );
+        assertTrue( "Janne edit", m_auth.checkStaticPermission( s, PagePermission.EDIT ) );
+        assertTrue( "Janne comment", m_auth.checkStaticPermission( s, PagePermission.COMMENT ) );
+        assertTrue( "Janne modify", m_auth.checkStaticPermission( s, PagePermission.MODIFY ) );
+        assertTrue( "Janne upload", m_auth.checkStaticPermission( s, PagePermission.UPLOAD ) );
+        assertFalse( "Janne rename", m_auth.checkStaticPermission( s, PagePermission.RENAME ) );
+        assertTrue( "Janne delete", m_auth.checkStaticPermission( s, PagePermission.DELETE ) );
+        assertFalse( "Janne prefs", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PREFERENCES ) );
+        assertFalse( "Janne profile", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PROFILE ) );
+        assertFalse( "Janne pages", m_auth.checkStaticPermission( s, WikiPermission.CREATE_PAGES ) );
+        assertFalse( "Janne groups", m_auth.checkStaticPermission( s, WikiPermission.CREATE_GROUPS ) );
+
+        s = WikiSessionTest.adminSession( m_engine );
+        assertTrue( "Admin view", m_auth.checkStaticPermission( s, PagePermission.VIEW ) );
+        assertFalse( "Admin edit", m_auth.checkStaticPermission( s, PagePermission.EDIT ) );
+        assertFalse( "Admin comment", m_auth.checkStaticPermission( s, PagePermission.COMMENT ) );
+        assertFalse( "Admin modify", m_auth.checkStaticPermission( s, PagePermission.MODIFY ) );
+        assertFalse( "Admin upload", m_auth.checkStaticPermission( s, PagePermission.UPLOAD ) );
+        assertFalse( "Admin rename", m_auth.checkStaticPermission( s, PagePermission.RENAME ) );
+        assertFalse( "Admin delete", m_auth.checkStaticPermission( s, PagePermission.DELETE ) );
+        assertFalse( "Admin prefs", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PREFERENCES ) );
+        assertFalse( "Admin profile", m_auth.checkStaticPermission( s, WikiPermission.EDIT_PROFILE ) );
+        assertFalse( "Admin pages", m_auth.checkStaticPermission( s, WikiPermission.CREATE_PAGES ) );
+        assertFalse( "Admin groups", m_auth.checkStaticPermission( s, WikiPermission.CREATE_GROUPS ) );
+    }
 
 }

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/content/PageRenamerTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/content/PageRenamerTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/content/PageRenamerTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/content/PageRenamerTest.java Mon Nov 10 19:49:06 2008
@@ -44,6 +44,10 @@
         TestEngine.deleteTestPage("Main8887");
         TestEngine.deleteTestPage("TestPage1234");
         TestEngine.deleteTestPage("TestPageReferred");
+        TestEngine.deleteTestPage("RenameTest");
+        TestEngine.deleteTestPage("Link one");
+        TestEngine.deleteTestPage("Link uno");
+        TestEngine.deleteTestPage("Link two");
 
         TestEngine.emptyWorkDir();
     }
@@ -444,7 +448,7 @@
         m_engine.saveText( "TestPageReferred", "bla bla bla som content" );
         m_engine.saveText( "TestPageReferring", "[Test Page Referred]" );
 
-       rename( "TestPageReferred", "TestPageReferredNew" );
+        rename( "TestPageReferred", "TestPageReferredNew" );
 
         String data = m_engine.getPureText( "TestPageReferring", WikiProvider.LATEST_VERSION );
         assertEquals( "page not renamed", "[Test Page Referred|TestPageReferredNew]", data.trim() );
@@ -457,6 +461,25 @@
         assertEquals( "wrong ref", "TestPageReferring", (String) refs.iterator().next() );
     }
 
+    /** https://issues.apache.org/jira/browse/JSPWIKI-398 */
+    public void testReferrerChangeWithBlanks2() throws Exception
+    {
+        m_engine.saveText( "RenameTest", "[link one] [link two]" );
+        m_engine.saveText( "Link one", "Leonard" );
+        m_engine.saveText( "Link two", "Cohen" );
+
+        rename( "Link one", "Link uno" );
+       
+        String data = m_engine.getPureText( "RenameTest", WikiProvider.LATEST_VERSION );
+        assertEquals( "page not renamed", "[link one|Link uno] [link two]", data.trim() );
+
+        Collection refs = m_engine.getReferenceManager().findReferrers( "Link one" );
+        assertNull( "oldpage", refs );
+
+        refs = m_engine.getReferenceManager().findReferrers( "Link uno" );
+        assertEquals( "new size", 1, refs.size() );
+        assertEquals( "wrong ref", "RenameTest", (String) refs.iterator().next() );
+    }
 
     public static Test suite()
     {

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/parser/JSPWikiMarkupParserTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/parser/JSPWikiMarkupParserTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/parser/JSPWikiMarkupParserTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/parser/JSPWikiMarkupParserTest.java Mon Nov 10 19:49:06 2008
@@ -204,7 +204,7 @@
 
         String src = "!Heading Too\r\nThis should be a [HyperLink#heading too]";
 
-        assertEquals( "<h4 id=\"section-testpage-HeadingToo\">Heading Too</h4>\nThis should be a <a class=\"wikipage\" href=\"/Wiki.jsp?page=HyperLink#section-HyperLink-HeadingToo\">HyperLink#heading too</a>",
+        assertEquals( "<h4 id=\"section-testpage-HeadingToo\">Heading Too<a class=\"hashlink\" href=\"#section-testpage-HeadingToo\">#</a></h4>\nThis should be a <a class=\"wikipage\" href=\"/Wiki.jsp?page=HyperLink#section-HyperLink-HeadingToo\">HyperLink#heading too</a>",
                       translate(src) );
     }
     
@@ -917,7 +917,7 @@
     {
         String src = "\r\n\r\n!Testi\r\n\r\nFoo.";
 
-        assertEquals( "<p />\n<h4 id=\"section-testpage-Testi\">Testi</h4>\n<p>Foo.</p>",
+        assertEquals( "<p />\n<h4 id=\"section-testpage-Testi\">Testi<a class=\"hashlink\" href=\"#section-testpage-Testi\">#</a></h4>\n<p>Foo.</p>",
                       translate(src) );
     }
 
@@ -2017,7 +2017,7 @@
     {
         String src="!Hello\nThis is a test";
 
-        assertEquals( "<h4 id=\"section-testpage-Hello\">Hello</h4>\nThis is a test",
+        assertEquals( "<h4 id=\"section-testpage-Hello\">Hello<a class=\"hashlink\" href=\"#section-testpage-Hello\">#</a></h4>\nThis is a test",
                       translate(src) );
     }
 
@@ -2026,7 +2026,7 @@
     {
         String src="!!Hello, testing 1, 2, 3";
 
-        assertEquals( "<h3 id=\"section-testpage-HelloTesting123\">Hello, testing 1, 2, 3</h3>",
+        assertEquals( "<h3 id=\"section-testpage-HelloTesting123\">Hello, testing 1, 2, 3<a class=\"hashlink\" href=\"#section-testpage-HelloTesting123\">#</a></h3>",
                       translate(src) );
     }
 
@@ -2035,7 +2035,7 @@
     {
         String src="!!!Hello there, how are you doing?";
 
-        assertEquals( "<h2 id=\"section-testpage-HelloThereHowAreYouDoing\">Hello there, how are you doing?</h2>",
+        assertEquals( "<h2 id=\"section-testpage-HelloThereHowAreYouDoing\">Hello there, how are you doing?<a class=\"hashlink\" href=\"#section-testpage-HelloThereHowAreYouDoing\">#</a></h2>",
                       translate(src) );
     }
 
@@ -2044,7 +2044,7 @@
     {
         String src="!!![Hello]";
 
-        assertEquals( "<h2 id=\"section-testpage-Hello\"><a class=\"createpage\" href=\"/Edit.jsp?page=Hello\" title=\"Create &quot;Hello&quot;\">Hello</a></h2>",
+        assertEquals( "<h2 id=\"section-testpage-Hello\"><a class=\"createpage\" href=\"/Edit.jsp?page=Hello\" title=\"Create &quot;Hello&quot;\">Hello</a><a class=\"hashlink\" href=\"#section-testpage-Hello\">#</a></h2>",
                       translate(src) );
     }
 
@@ -2053,7 +2053,7 @@
     {
         String src="!!![Hello|http://www.google.com/]";
 
-        assertEquals( "<h2 id=\"section-testpage-Hello\"><a class=\"external\" href=\"http://www.google.com/\">Hello</a></h2>",
+        assertEquals( "<h2 id=\"section-testpage-Hello\"><a class=\"external\" href=\"http://www.google.com/\">Hello</a><a class=\"hashlink\" href=\"#section-testpage-Hello\">#</a></h2>",
                       translate(src) );
     }
 
@@ -2062,7 +2062,7 @@
     {
         String src="![Hello|http://www.google.com/?p=a&c=d]";
 
-        assertEquals( "<h4 id=\"section-testpage-Hello\"><a class=\"external\" href=\"http://www.google.com/?p=a&amp;c=d\">Hello</a></h4>",
+        assertEquals( "<h4 id=\"section-testpage-Hello\"><a class=\"external\" href=\"http://www.google.com/?p=a&amp;c=d\">Hello</a><a class=\"hashlink\" href=\"#section-testpage-Hello\">#</a></h4>",
                       translate(src) );
     }
 

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/InsertPageTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/InsertPageTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/InsertPageTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/InsertPageTest.java Mon Nov 10 19:49:06 2008
@@ -25,6 +25,8 @@
         TestEngine.deleteTestPage( "ThisPage" );
         TestEngine.deleteTestPage( "ThisPage2" );
         TestEngine.deleteTestPage( "Test_Page" );
+        TestEngine.deleteTestPage( "TestPage" );
+        TestEngine.deleteTestPage( "Test Page" );
     }
 
     public void testRecursive() throws Exception
@@ -79,6 +81,32 @@
         assertEquals( "found != 1", "<div style=\"\">foo\n</div>\n", testEngine.getHTML("ThisPage") );    
     }
     
+    
+    /**
+     * a link containing a blank should work if there is a page with exact the
+     * same name ('Test Page')
+     */
+    public void testWithBlanks1() throws Exception
+    {
+        testEngine.saveText( "ThisPage", "[{InsertPage page='Test Page'}]" );
+        testEngine.saveText( "Test Page", "foo[{ALLOW view Anonymous}]" );
+
+        assertEquals( "found != 1", "<div style=\"\">foo\n</div>\n", testEngine.getHTML( "ThisPage" ) );
+    }
+
+    /**
+     * same as testWithBlanks1, but it should still work if the page does not
+     * have the blank in it ( 'Test Page' should work if the included page is
+     * called 'TestPage')
+     */
+    public void testWithBlanks2() throws Exception
+    {
+        testEngine.saveText( "ThisPage", "[{InsertPage page='Test Page'}]" );
+        testEngine.saveText( "TestPage", "foo[{ALLOW view Anonymous}]" );
+
+        assertEquals( "found != 1", "<div style=\"\">foo\n</div>\n", testEngine.getHTML( "ThisPage" ) );
+    }
+    
     public static Test suite()
     {
         return new TestSuite( InsertPageTest.class );

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/PluginManagerTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/PluginManagerTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/PluginManagerTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/PluginManagerTest.java Mon Nov 10 19:49:06 2008
@@ -1,6 +1,7 @@
 
 package com.ecyrd.jspwiki.plugin;
 
+import java.util.Collection;
 import java.util.Properties;
 
 import junit.framework.Test;
@@ -11,6 +12,7 @@
 import com.ecyrd.jspwiki.WikiContext;
 import com.ecyrd.jspwiki.WikiEngine;
 import com.ecyrd.jspwiki.WikiPage;
+import com.ecyrd.jspwiki.plugin.PluginManager.WikiPluginInfo;
 import com.ecyrd.jspwiki.providers.ProviderException;
 
 public class PluginManagerTest extends TestCase
@@ -198,6 +200,28 @@
         assertTrue( SamplePlugin.c_rendered );
     }
 
+    public void testAnnotations() throws Exception
+    {
+        Collection<WikiPluginInfo> plugins = manager.modules();
+        
+        for( WikiPluginInfo wpi : plugins )
+        {
+            if( wpi.getName().equals( "SamplePlugin" ) )
+            {
+                assertEquals("author", "Urgle Burgle", wpi.getAuthor());
+                String[] aliases = wpi.getAliases();
+                
+                assertNotNull("aliases",aliases);
+                assertEquals( "aliases len", 2, aliases.length );
+                assertTrue( "data", ( aliases[0].equals( "samplealias2" ) && aliases[1].equals( "samplealias" ) )
+                            || (aliases[0].equals("samplealias") && aliases[1].equals("samplealias2")) );
+                return; // We're done
+            }
+        }
+        
+        fail("No SamplePlugin found");
+    }
+    
     public static Test suite()
     {
         return new TestSuite( PluginManagerTest.class );

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/SamplePlugin.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/SamplePlugin.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/SamplePlugin.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/SamplePlugin.java Mon Nov 10 19:49:06 2008
@@ -2,6 +2,8 @@
 
 import java.util.Map;
 
+import org.apache.jspwiki.api.ModuleData;
+
 import com.ecyrd.jspwiki.WikiContext;
 import com.ecyrd.jspwiki.parser.PluginContent;
 
@@ -10,9 +12,9 @@
  *  <P>
  *  Parameters: text - text to return.
  *  Any _body content gets appended between brackets.
- *
- *  @author Janne Jalkanen
  */
+@ModuleData( author = "Urgle Burgle", 
+             aliases = { "samplealias2", "samplealias" } )
 public class SamplePlugin
     implements WikiPlugin, ParserStagePlugin
 {

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/TableOfContentsTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/TableOfContentsTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/TableOfContentsTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/plugin/TableOfContentsTest.java Mon Nov 10 19:49:06 2008
@@ -60,7 +60,7 @@
                       "<ul>\n"+
                       "<li class=\"toclevel-1\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-HeadingBar\">Heading bar</a></li>\n"+
                       "</ul>\n</div>\n</div>\n\n</p>"+
-                      "\n<h2 id=\"section-Test-HeadingBar\">Heading bar</h2>\n",
+                      "\n<h2 id=\"section-Test-HeadingBar\">Heading bar<a class=\"hashlink\" href=\"#section-Test-HeadingBar\">#</a></h2>\n",
                       res );
     }
 
@@ -81,9 +81,9 @@
                 "<li class=\"toclevel-2\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subheading\">3.1 Subheading</a></li>\n"+
                 "<li class=\"toclevel-3\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subsubheading\">3.1.1 Subsubheading</a></li>\n"+
                 "</ul>\n</div>\n</div>\n\n</p>"+
-                "\n<h2 id=\"section-Test-HeadingBar\">Heading bar</h2>"+
-                "\n<h3 id=\"section-Test-Subheading\">Subheading</h3>"+
-                "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading</h4>\n";
+                "\n<h2 id=\"section-Test-HeadingBar\">Heading bar<a class=\"hashlink\" href=\"#section-Test-HeadingBar\">#</a></h2>"+
+                "\n<h3 id=\"section-Test-Subheading\">Subheading<a class=\"hashlink\" href=\"#section-Test-Subheading\">#</a></h3>"+
+                "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading<a class=\"hashlink\" href=\"#section-Test-Subsubheading\">#</a></h4>\n";
                 
         assertEquals(expecting,
                 res );
@@ -111,14 +111,14 @@
         "<li class=\"toclevel-1\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Heading\">4 Heading</a></li>\n"+
         "<li class=\"toclevel-2\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subheading3\">4.1 Subheading3</a></li>\n"+
         "</ul>\n</div>\n</div>\n\n</p>"+
-        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar</h2>"+
-        "\n<h3 id=\"section-Test-Subheading\">Subheading</h3>"+
-        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading</h4>"+
-        "\n<h4 id=\"section-Test-Subsubheading2\">Subsubheading2</h4>"+
-        "\n<h3 id=\"section-Test-Subheading2\">Subheading2</h3>"+
-        "\n<h4 id=\"section-Test-Subsubheading3\">Subsubheading3</h4>"+
-        "\n<h2 id=\"section-Test-Heading\">Heading</h2>"+
-        "\n<h3 id=\"section-Test-Subheading3\">Subheading3</h3>\n";
+        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar<a class=\"hashlink\" href=\"#section-Test-HeadingBar\">#</a></h2>"+
+        "\n<h3 id=\"section-Test-Subheading\">Subheading<a class=\"hashlink\" href=\"#section-Test-Subheading\">#</a></h3>"+
+        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading<a class=\"hashlink\" href=\"#section-Test-Subsubheading\">#</a></h4>"+
+        "\n<h4 id=\"section-Test-Subsubheading2\">Subsubheading2<a class=\"hashlink\" href=\"#section-Test-Subsubheading2\">#</a></h4>"+
+        "\n<h3 id=\"section-Test-Subheading2\">Subheading2<a class=\"hashlink\" href=\"#section-Test-Subheading2\">#</a></h3>"+
+        "\n<h4 id=\"section-Test-Subsubheading3\">Subsubheading3<a class=\"hashlink\" href=\"#section-Test-Subsubheading3\">#</a></h4>"+
+        "\n<h2 id=\"section-Test-Heading\">Heading<a class=\"hashlink\" href=\"#section-Test-Heading\">#</a></h2>"+
+        "\n<h3 id=\"section-Test-Subheading3\">Subheading3<a class=\"hashlink\" href=\"#section-Test-Subheading3\">#</a></h3>\n";
         
         assertEquals(expecting,
                 res );
@@ -147,15 +147,15 @@
         "<li class=\"toclevel-1\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Heading\">5 Heading</a></li>\n"+
         "<li class=\"toclevel-2\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subheading3\">5.1 Subheading3</a></li>\n"+
         "</ul>\n</div>\n</div>\n\n</p>"+
-        "\n<h3 id=\"section-Test-Subheading0\">Subheading0</h3>"+
-        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar</h2>"+
-        "\n<h3 id=\"section-Test-Subheading\">Subheading</h3>"+
-        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading</h4>"+
-        "\n<h4 id=\"section-Test-Subsubheading2\">Subsubheading2</h4>"+
-        "\n<h3 id=\"section-Test-Subheading2\">Subheading2</h3>"+
-        "\n<h4 id=\"section-Test-Subsubheading3\">Subsubheading3</h4>"+
-        "\n<h2 id=\"section-Test-Heading\">Heading</h2>"+
-        "\n<h3 id=\"section-Test-Subheading3\">Subheading3</h3>\n";
+        "\n<h3 id=\"section-Test-Subheading0\">Subheading0<a class=\"hashlink\" href=\"#section-Test-Subheading0\">#</a></h3>"+
+        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar<a class=\"hashlink\" href=\"#section-Test-HeadingBar\">#</a></h2>"+
+        "\n<h3 id=\"section-Test-Subheading\">Subheading<a class=\"hashlink\" href=\"#section-Test-Subheading\">#</a></h3>"+
+        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading<a class=\"hashlink\" href=\"#section-Test-Subsubheading\">#</a></h4>"+
+        "\n<h4 id=\"section-Test-Subsubheading2\">Subsubheading2<a class=\"hashlink\" href=\"#section-Test-Subsubheading2\">#</a></h4>"+
+        "\n<h3 id=\"section-Test-Subheading2\">Subheading2<a class=\"hashlink\" href=\"#section-Test-Subheading2\">#</a></h3>"+
+        "\n<h4 id=\"section-Test-Subsubheading3\">Subsubheading3<a class=\"hashlink\" href=\"#section-Test-Subsubheading3\">#</a></h4>"+
+        "\n<h2 id=\"section-Test-Heading\">Heading<a class=\"hashlink\" href=\"#section-Test-Heading\">#</a></h2>"+
+        "\n<h3 id=\"section-Test-Subheading3\">Subheading3<a class=\"hashlink\" href=\"#section-Test-Subheading3\">#</a></h3>\n";
         
         assertEquals(expecting,
                      res );
@@ -178,9 +178,9 @@
         "<li class=\"toclevel-2\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subheading\">FooBar-3.1 Subheading</a></li>\n"+
         "<li class=\"toclevel-3\"><a class=\"wikipage\" href=\"/Wiki.jsp?page=Test#section-Test-Subsubheading\">FooBar-3.1.1 Subsubheading</a></li>\n"+
         "</ul>\n</div>\n</div>\n\n</p>"+
-        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar</h2>"+
-        "\n<h3 id=\"section-Test-Subheading\">Subheading</h3>"+
-        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading</h4>\n";
+        "\n<h2 id=\"section-Test-HeadingBar\">Heading bar<a class=\"hashlink\" href=\"#section-Test-HeadingBar\">#</a></h2>"+
+        "\n<h3 id=\"section-Test-Subheading\">Subheading<a class=\"hashlink\" href=\"#section-Test-Subheading\">#</a></h3>"+
+        "\n<h4 id=\"section-Test-Subsubheading\">Subsubheading<a class=\"hashlink\" href=\"#section-Test-Subsubheading\">#</a></h4>\n";
         
         assertEquals(expecting,
                 res );

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/render/CreoleRendererTest.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/render/CreoleRendererTest.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/render/CreoleRendererTest.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/render/CreoleRendererTest.java Mon Nov 10 19:49:06 2008
@@ -112,6 +112,8 @@
         
         assertEquals( "<<Counter 1>> <<Counter 2>>", render(src) );
     }
+    /*
+    // FIXME: These shouldn't really be failing.
     public void testHeading1() throws Exception
     {
         String src = "!!!Hello";
@@ -132,7 +134,7 @@
         
         assertEquals( "==== Hello ====", render(src) );
     }
-
+*/
     public void testExternalAnchor() throws Exception
     {
         String src = "[http://www.jspwiki.org]";

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/util/AllTests.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/util/AllTests.java?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/util/AllTests.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/com/ecyrd/jspwiki/util/AllTests.java Mon Nov 10 19:49:06 2008
@@ -20,12 +20,13 @@
         suite.addTest( ClassUtilTest.suite() );
         suite.addTest( CommentedPropertiesTest.suite() );
         suite.addTest( CryptoUtilTest.suite() );
+        suite.addTest( JspParserTest.suite() );
         suite.addTest( MailUtilTest.suite() );
         suite.addTest( PriorityListTest.suite() );
         suite.addTest( SerializerTest.suite() );
         suite.addTest( TextUtilTest.suite() );
         suite.addTest( TimedCounterListTest.suite() );
-        suite.addTest( JspParserTest.suite() );
+        suite.addTest( UtilJ2eeCompatTest.suite() );
         
         return suite;
     }

Propchange: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/etc/jspwiki-testUserPolicy.policy
------------------------------------------------------------------------------
    svn:executable = *

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/etc/selenium/tests/all/RenameProfile.html
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/etc/selenium/tests/all/RenameProfile.html?rev=712929&r1=712928&r2=712929&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/etc/selenium/tests/all/RenameProfile.html (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/tests/etc/selenium/tests/all/RenameProfile.html Mon Nov 10 19:49:06 2008
@@ -47,7 +47,7 @@
 	<tr><td>store</td>	<td>${baseUrl}/Logout.jsp</td>			<td>logouturl</td></tr>
 	<tr><td>store</td>	<td>This page was created with an ACL by ${user}</td>	<td>PageContent</td></tr>
 
-	<tr><td rowspan="1" colspan="3"> Create a new user and group (and log in)<br/></td></tr>
+	<tr><td rowspan="1" colspan="3"> Create a new user and group (and log in) -- at the moment, this ALWAYS fails for container-managed tests.<br/></td></tr>
     <tr><td>open</td>	<td>${loginurl}?tab=profile</td>	<td>&nbsp;</td></tr>
 	<tr><td>type</td>	<td>loginname</td>	<td>${user}</td></tr>
 	<tr><td>type</td>	<td>password</td>	<td>password</td></tr>



Mime
View raw message