r698 - in trunk: wikitty-api/src/main/java/org/nuiton/wikitty wikitty-hessian-server/src/main/java/org/nuiton/wikitty
Author: bpoussin Date: 2011-01-31 12:56:44 +0100 (Mon, 31 Jan 2011) New Revision: 698 Url: http://nuiton.org/repositories/revision/wikitty/698 Log: Evolution #1276: move WikittyServerStart from Hessian server module to api module Added: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServerStart.java Removed: trunk/wikitty-hessian-server/src/main/java/org/nuiton/wikitty/WikittyServerStart.java Copied: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServerStart.java (from rev 676, trunk/wikitty-hessian-server/src/main/java/org/nuiton/wikitty/WikittyServerStart.java) =================================================================== --- trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServerStart.java (rev 0) +++ trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServerStart.java 2011-01-31 11:56:44 UTC (rev 698) @@ -0,0 +1,53 @@ +/* + * #%L + * Wikitty :: hessian server + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2010 CodeLutin, Benjamin Poussin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ +package org.nuiton.wikitty; + + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * Read wikitty config file and create WikittyService as asked in config. + * WikittyService????Server must be declared in config file otherwize server + * don't start + * + * @author poussin + * @version $Revision$ + * @since 3.1 + * + * Last update: $Date$ + * by : $Author$ + */ +public class WikittyServerStart { + + /** to use log facility, just put in your code: log.info(\"...\"); */ + static private Log log = LogFactory.getLog(WikittyServerStart.class); + + static public void main(String ... args) { + WikittyConfig config = new WikittyConfig(args); + WikittyService ws = WikittyServiceFactory.buildWikittyService(config); + } + +} Deleted: trunk/wikitty-hessian-server/src/main/java/org/nuiton/wikitty/WikittyServerStart.java =================================================================== --- trunk/wikitty-hessian-server/src/main/java/org/nuiton/wikitty/WikittyServerStart.java 2011-01-27 10:41:22 UTC (rev 697) +++ trunk/wikitty-hessian-server/src/main/java/org/nuiton/wikitty/WikittyServerStart.java 2011-01-31 11:56:44 UTC (rev 698) @@ -1,52 +0,0 @@ -/* - * #%L - * Wikitty :: hessian server - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2010 CodeLutin, Benjamin Poussin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. - * #L% - */ -package org.nuiton.wikitty; - - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -/** - * Read wikitty config file and create WikittyService as asked in config. - * WikittyServiceHessianServer must be declared in config file otherwize server - * don't start - * - * @author poussin - * @version $Revision$ - * - * Last update: $Date$ - * by : $Author$ - */ -public class WikittyServerStart { - - /** to use log facility, just put in your code: log.info(\"...\"); */ - static private Log log = LogFactory.getLog(WikittyServerStart.class); - - static public void main(String ... args) { - WikittyConfig config = new WikittyConfig(args); - WikittyService ws = WikittyServiceFactory.buildWikittyService(config); - } - -}
participants (1)
-
bpoussin@users.nuiton.org