From: <tri...@us...> - 2007-08-09 18:11:36
|
Revision: 7 http://staticwiki.svn.sourceforge.net/staticwiki/?rev=7&view=rev Author: triathlon98 Date: 2007-08-09 11:11:33 -0700 (Thu, 09 Aug 2007) Log Message: ----------- add wiki site renderer, and assure it can work for building the project site itself include checkstyle in the build (though the config is not yet completely correct) Modified Paths: -------------- trunk/pom.xml trunk/staticwiki-site-plugin/pom.xml Added Paths: ----------- trunk/config/ trunk/config/checkstyle.xml trunk/config/staticwiki-header.txt trunk/src/ trunk/src/site/ trunk/src/site/fml/ trunk/src/site/fml/faq.fml trunk/src/site/wiki/ trunk/src/site/wiki/example.wiki trunk/staticwiki-site-plugin/src/main/java/org/ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SaveException.java trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SitePlugin.java trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/StaticwikiParser.java trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/WikiSiteModule.java Added: trunk/config/checkstyle.xml =================================================================== --- trunk/config/checkstyle.xml (rev 0) +++ trunk/config/checkstyle.xml 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,209 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<!DOCTYPE module PUBLIC + "-//Puppy Crawl//DTD Check Configuration 1.1//EN" + "http://www.puppycrawl.com/dtds/configuration_1_1.dtd"> + +<!-- + + Checkstyle configuration that checks the sun coding conventions from: + + - the Java Language Specification at + http://java.sun.com/docs/books/jls/second_edition/html/index.html + + - the Sun Code Conventions at http://java.sun.com/docs/codeconv/ + + - the Javadoc guidelines at + http://java.sun.com/j2se/javadoc/writingdoccomments/index.html + + - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html + + - some best practices + + Checkstyle is very configurable. Be sure to read the documentation at + http://checkstyle.sf.net (or in your downloaded distribution). + + Most Checks are configurable, be sure to consult the documentation. + + To completely disable a check, just comment it out or delete it from the file. + + Finally, it is worth reading the documentation. + +--> + +<module name="Checker"> + + <!-- Checks that a package.html file exists for each package. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml --> + <module name="PackageHtml"/> + + <!-- Checks whether files end with a new line. --> + <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> + <module name="NewlineAtEndOfFile"/> + + <!-- Checks that property files contain the same keys. --> + <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> + <module name="Translation"/> + + <module name="TreeWalker"> + + <property name="cacheFile" value="${checkstyle.cache.file}"/> + + <!-- ************************************************************** --> + <!-- Checks that are different from the sun coding conventions ones --> + <!-- ************************************************************** --> + <property name="tabWidth" value="4"/> + <module name="LeftCurly"> + <property name="option" value="nl"/> + </module> + <module name="RightCurly"> + <property name="option" value="alone"/> + </module> + <module name="LineLength"> + <property name="ignorePattern" value="@version"/> + <property name="max" value="132"/> + </module> + <module name="MemberName"> + <property name="format" value="^[a-z]+_*[a-zA-Z0-9]*$"/> + </module> + <module name="StaticVariableName"> + <property name="format" value="^[a-z]+_*[a-zA-Z0-9]*$"/> + </module> + <module name="ConstantName"> + <property name="format" value="^(([A-Z][A-Z0-9]*(_[A-Z0-9]+)*)|log)$"/> + </module> + <module name="ParameterName"> + <property name="format" value="^[a-z]+_*[a-zA-Z0-9]*$"/> + </module> + + <!-- ************************************************************** --> + <!-- Default Sun coding conventions checks --> + <!-- ************************************************************** --> + + <!-- Checks for Javadoc comments. --> + <!-- See http://checkstyle.sf.net/config_javadoc.html --> + <module name="JavadocMethod"> + <property name="excludeScope" value="private"/> + </module> + <module name="JavadocType"/> + <module name="JavadocVariable"/> + + + <!-- Checks for Naming Conventions. --> + <!-- See http://checkstyle.sf.net/config_naming.html --> + <module name="LocalFinalVariableName"/> + <module name="LocalVariableName"/> + <module name="MethodName"/> + <module name="PackageName"/> + <module name="TypeName"/> + + + <!-- Checks for Headers --> + <!-- See http://checkstyle.sf.net/config_header.html --> + <module name="RegexpHeader"> + <!-- The follow property value demonstrates the ability --> + <!-- to have access to ANT properties. In this case it uses --> + <!-- the ${basedir} property to allow Checkstyle to be run --> + <!-- from any directory within a project. --> + <property name="headerFile" value="config/staticwiki-header.txt"/> + </module> + + <!-- Following interprets the header file as regular expressions. --> + <!-- <module name="RegexpHeader"/> --> + + + <!-- Checks for imports --> + <!-- See http://checkstyle.sf.net/config_import.html --> + <module name="AvoidStarImport"/> + <module name="IllegalImport"/> <!-- defaults to sun.* packages --> + <module name="RedundantImport"/> + <module name="UnusedImports"/> + + + <!-- Checks for Size Violations. --> + <!-- See http://checkstyle.sf.net/config_sizes.html --> + <module name="FileLength"/> + <module name="MethodLength"/> + <module name="ParameterNumber"/> + + + <!-- Checks for whitespace --> + <!-- See http://checkstyle.sf.net/config_whitespace.html --> + <module name="EmptyForIteratorPad"/> + <module name="NoWhitespaceAfter"/> + <module name="NoWhitespaceBefore"/> + <module name="OperatorWrap"/> + <module name="ParenPad"/> + <module name="TabCharacter"/> + <module name="WhitespaceAfter"/> + <module name="WhitespaceAround"/> + + + <!-- Modifier Checks --> + <!-- See http://checkstyle.sf.net/config_modifiers.html --> + <module name="ModifierOrder"/> + <module name="RedundantModifier"/> + + <module name="EmptyBlock"/> + <module name="NeedBraces"/> + + <!-- Checks for common coding problems --> + <!-- See http://checkstyle.sf.net/config_coding.html --> + <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE --> + <module name="EmptyStatement"/> + <module name="EqualsHashCode"/> + <module name="FallThrough"/> + <module name="HiddenField"> + <property name="ignoreConstructorParameter" value="true"/> + <property name="ignoreSetter" value="true"/> + </module> + <module name="IllegalInstantiation"/> + <module name="InnerAssignment"/> + <module name="MagicNumber"/> + <module name="MissingSwitchDefault"/> +<!-- <module name="OneMethodPrivateField" /> --> + <module name="RedundantThrows"/> + <module name="SimplifyBooleanExpression"/> + <module name="SimplifyBooleanReturn"/> + + <!-- Checks for class design --> + <!-- See http://checkstyle.sf.net/config_design.html --> + <module name="FinalClass"/> + <module name="HideUtilityClassConstructor"/> + <module name="VisibilityModifier"> + <module name="MissingSwitchDefault"/> + <property name="protectedAllowed" value="true"/> + </module> + + + <!-- Miscellaneous other checks. --> + <!-- See http://checkstyle.sf.net/config_misc.html --> + <module name="ArrayTypeStyle"/> +<!-- <module name="FinalParameters"/> --> + <module name="GenericIllegalRegexp"> + <property name="format" value="\s+$"/> + <property name="message" value="Line has trailing spaces."/> + </module> + <module name="UpperEll"/> + + </module> + +</module> Added: trunk/config/staticwiki-header.txt =================================================================== --- trunk/config/staticwiki-header.txt (rev 0) +++ trunk/config/staticwiki-header.txt 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,11 @@ +^/\*\**\s*$ +^ \* This file is part of the staticwiki project.*\s*$ +^ \**\s*$ +^ \* The contents of this file are subject to the GNU Lesser General Public License Version 2.1 or later (the "LGPL")*\s*$ +^ \* (the "License"); you may not use this file except in compliance with the License.*\s*$ +^ \* You may obtain a copy of the License at http://www.fsf.org/licenses/lgpl.html*\s*$ +^ \**\s*$ +^ \* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF*\s*$ +^ \* ANY KIND, either express or implied. See the License for the specific language governing rights and*\s*$ +^ \* limitations under the License.*\s*$ +^ \*/*\s*$ \ No newline at end of file Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2007-08-09 18:09:43 UTC (rev 6) +++ trunk/pom.xml 2007-08-09 18:11:33 UTC (rev 7) @@ -15,7 +15,6 @@ <modules> <module>staticwiki-renderer</module> <module>staticwiki-editor</module> - <module>staticwiki-site-plugin</module> </modules> <licenses> <license> @@ -44,12 +43,40 @@ <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <dependencies> + <!-- + fortunately these dependencies is not checked about being cyclic, though you probably need + to compile a second time to make sure the wiki stuff is part of the site + --> + <dependency> + <groupId>org.staticwiki</groupId> + <artifactId>staticwiki-site-plugin</artifactId> + <version>1.0-SNAPSHOT</version> + </dependency> + </dependencies> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <executions> + <execution> + <id>clean</id> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> <reporting> @@ -71,30 +98,20 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> - <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> - <configLocation>config/maven_checks.xml</configLocation> + <configLocation>config/checkstyle.xml</configLocation> </configuration> </plugin> - --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> <configuration> - <instrumentation></instrumentation> + <instrumentation/> </configuration> - <!--<executions> - <execution> - <goals> - <goal>clean</goal> - </goals> - </execution> - </executions> - --> </plugin> </plugins> </reporting> @@ -176,4 +193,41 @@ </site> </distributionManagement> + <profiles> + <profile> + <id>include-compile-plugin</id> + <activation> + <property> + <name>!site</name> + </property> + </activation> + <modules> + <module>staticwiki-site-plugin</module> + </modules> + </profile> + <profile> + <id>site-include-wiki</id> + <activation> + <property> + <name>site</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.staticwiki</groupId> + <artifactId>staticwiki-site-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>pre-site</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + </profiles> </project> Added: trunk/src/site/fml/faq.fml =================================================================== --- trunk/src/site/fml/faq.fml (rev 0) +++ trunk/src/site/fml/faq.fml 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,12 @@ +<faqs title="Frequently Asked Questions"> + <part id="General"> + <faq id="Why another wiki renderer"> + <question>Why another wiki renderer?</question> + <answer> + <p> + As many (open-source) projects already use confluence, and are familiar with this syntax, it would be useful to be able to use this syntax in general wikis. + </p> + </answer> + </faq> + </part> +</faqs> \ No newline at end of file Added: trunk/src/site/wiki/example.wiki =================================================================== --- trunk/src/site/wiki/example.wiki (rev 0) +++ trunk/src/site/wiki/example.wiki 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,11 @@ +h1. Example + +I want to have a simple example file, just to verify that this thing works. + +- This allows me +- to verify +- some simple markup example + +And *check* that the wiki _markup_ is properly parsed. + +{quote}Carpe diem!{quote} Modified: trunk/staticwiki-site-plugin/pom.xml =================================================================== --- trunk/staticwiki-site-plugin/pom.xml 2007-08-09 18:09:43 UTC (rev 6) +++ trunk/staticwiki-site-plugin/pom.xml 2007-08-09 18:11:33 UTC (rev 7) @@ -8,12 +8,29 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.staticwiki</groupId> <artifactId>staticwiki-site-plugin</artifactId> - <packaging>jar</packaging> + <packaging>maven-plugin</packaging> <version>1.0-SNAPSHOT</version> <name>staticwiki-site-plugin</name> <description> - Maven plugin to allow generating a maven site using staticwiki markup. + Maven plugin to allow generating maven site pages using staticwiki markup. </description> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> <dependency> <groupId>org.staticwiki</groupId> @@ -23,5 +40,25 @@ <groupId>log4j</groupId> <artifactId>log4j</artifactId> </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + <version>1.0-alpha-8</version> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-sink-api</artifactId> + <version>1.0-alpha-8</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <version>2.0.7</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-api</artifactId> + <version>2.0.7</version> + </dependency> </dependencies> </project> Added: trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SaveException.java =================================================================== --- trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SaveException.java (rev 0) +++ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SaveException.java 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,105 @@ +/** + * This file is part of the staticwiki project. + * + * The contents of this file are subject to the GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.fsf.org/licenses/lgpl.html + * + * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF + * ANY KIND, either express or implied. See the License for the specific language governing rights and + * limitations under the License. + */ + +package org.staticwiki.siteplugin; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Date; + +/** + * Save exception details to a file + * + * @author Joachim Van der Auwera <jo...@pr...> + */ +public class SaveException +{ + public static void saveException( Throwable exc ) + { + saveException( exc, "" ); + } + + public static void saveException( Throwable exc, String message ) + { + File errorFile = new File( "errors.txt" ); + try + { + PrintWriter out = new PrintWriter( new FileOutputStream( errorFile.getAbsolutePath(), true ) ); + Date date = new Date( System.currentTimeMillis() ); + out.println( "----- error on " + date.toString() ); + String msg = exc.getLocalizedMessage(); + if ( msg == null ) msg = exc.getMessage(); + if ( msg == null ) msg = exc.toString(); + msg += " " + message; + out.println( msg ); + System.err.println( msg ); + exc.printStackTrace( out ); + out.println(); + out.close(); + } + catch ( IOException ioe ) + { + System.err.println( "oops, can't write error message to file" ); + } + } + + public static void saveWarning( Throwable exc ) + { + saveWarning( exc, "" ); + } + + public static void saveWarning( Throwable exc, String message ) + { + File errorFile = new File( "errors.txt" ); + try + { + PrintWriter out = new PrintWriter( new FileOutputStream( errorFile.getAbsolutePath(), true ) ); + Date date = new Date( System.currentTimeMillis() ); + out.println( "----- warning on " + date.toString() ); + String msg = exc.getLocalizedMessage(); + if ( msg == null ) msg = exc.getMessage(); + if ( msg == null ) msg = exc.toString(); + msg += " " + message; + out.println( msg ); + System.err.println( msg ); + exc.printStackTrace( out ); + out.println(); + out.close(); + } + catch ( IOException ioe ) + { + System.err.println( "oops, can't write error message to file" ); + } + } + + + public static void log( String error ) + { + File errorFile = new File( "errors.txt" ); + try + { + PrintWriter out = new PrintWriter( new FileOutputStream( errorFile.getAbsolutePath(), true ) ); + Date date = new Date( System.currentTimeMillis() ); + out.println( "----- error on " + date.toString() ); + out.println( error ); + System.err.println( error ); + out.println(); + out.close(); + } + catch ( IOException ioe ) + { + System.err.println( "oops, can't write error message to file" ); + } + } +} \ No newline at end of file Added: trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SitePlugin.java =================================================================== --- trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SitePlugin.java (rev 0) +++ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/SitePlugin.java 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,40 @@ +/** + * This file is part of the staticwiki project. + * + * The contents of this file are subject to the GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.fsf.org/licenses/lgpl.html + * + * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF + * ANY KIND, either express or implied. See the License for the specific language governing rights and + * limitations under the License. + */ + +package org.staticwiki.siteplugin; + +import org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; + +/** + * Maven plugin to render staticwiki pages as part of the site rendering phase. + * Files should be in "wiki" directory and have ".wiki" extension. + * + * @author <a href="mailto:jo...@pr...">Joachim Van der Auwera</a> + * @goal pre-site + * @phase pre-site + */ +public class SitePlugin + extends AbstractMojo +{ + /** + * For the actual rendering, though there is nothing to do as the doxia auto-discovers the renderer/parser + * through plexus (if we declare the dependency that is). + * + * We need to copy the resources which are assumed to exist to the proper location in the site... + */ + public void execute() + throws MojoExecutionException + { + // @todo copy the resources... + } +} Added: trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/StaticwikiParser.java =================================================================== --- trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/StaticwikiParser.java (rev 0) +++ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/StaticwikiParser.java 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,62 @@ +/** + * This file is part of the staticwiki project. + * + * The contents of this file are subject to the GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.fsf.org/licenses/lgpl.html + * + * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF + * ANY KIND, either express or implied. See the License for the specific language governing rights and + * limitations under the License. + */ + +package org.staticwiki.siteplugin.doxia; + +import org.apache.maven.doxia.parser.AbstractParser; +import org.apache.maven.doxia.parser.ParseException; +import org.apache.maven.doxia.sink.Sink; +import org.staticwiki.wiki.WikiException; +import org.staticwiki.wiki.WikiFactory; +import org.staticwiki.wiki.WikiRenderer; +import org.staticwiki.siteplugin.SaveException; + +import java.io.IOException; +import java.io.Reader; +import java.io.StringWriter; + +/** + * Parser for the abstractwiki syntax pages. + * + * @plexus.component role="org.apache.maven.doxia.parser.Parser" role-hint="wiki" + * + * @author Joachim Van der Auwera <jo...@pr...> + */ +public class StaticwikiParser + extends AbstractParser +{ + public void parse( Reader reader, Sink sink ) + throws ParseException + { + try + { + WikiRenderer wr = WikiFactory.getWikiRenderer(); + StringWriter sw = new StringWriter(); + wr.render( reader, sw ); + String res = sw.getBuffer().toString(); + sink.head(); + sink.head_(); + sink.body(); + sink.rawText( res ); + sink.body_(); + sink.close(); + } + catch ( WikiException we ) + { + throw new ParseException( we ); + } + catch ( IOException ioException ) + { + throw new ParseException( ioException ); + } + } +} Added: trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/WikiSiteModule.java =================================================================== --- trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/WikiSiteModule.java (rev 0) +++ trunk/staticwiki-site-plugin/src/main/java/org/staticwiki/siteplugin/doxia/WikiSiteModule.java 2007-08-09 18:11:33 UTC (rev 7) @@ -0,0 +1,56 @@ +/** + * This file is part of the staticwiki project. + * + * The contents of this file are subject to the GNU Lesser General Public License Version 2.1 or later (the "LGPL") + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.fsf.org/licenses/lgpl.html + * + * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF + * ANY KIND, either express or implied. See the License for the specific language governing rights and + * limitations under the License. + */ + +package org.staticwiki.siteplugin.doxia; + +import org.apache.maven.doxia.site.module.SiteModule; +import org.staticwiki.siteplugin.SaveException; + +/** + * Connect with the renderer in de Doxia core, defines the parameters for the rendering. + * + * @author Joachim Van der Auwera <jo...@pr...> + * @plexus.component role="org.apache.maven.doxia.site.module.SiteModule" role-hint="wiki" + */ +public class WikiSiteModule + implements SiteModule +{ + /** + * Return the source directory, default is "wiki". + * + * @return source directory + */ + public String getSourceDirectory() + { + return "wiki"; + } + + /** + * Return the file extension, default is "wiki". + * + * @return file extension + */ + public String getExtension() + { + return "wiki"; + } + + /** + * Perser id for the files to render, use ours... + * + * @return parser id + */ + public String getParserId() + { + return "wiki"; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |