You can subscribe to this list here.
2003 |
Jan
|
Feb
(14) |
Mar
(107) |
Apr
(211) |
May
(93) |
Jun
(158) |
Jul
(159) |
Aug
(368) |
Sep
(188) |
Oct
(151) |
Nov
(115) |
Dec
(98) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(25) |
Feb
|
Mar
(33) |
Apr
(28) |
May
(116) |
Jun
(2) |
Jul
(117) |
Aug
(19) |
Sep
(9) |
Oct
(2) |
Nov
|
Dec
(4) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(9) |
Dec
|
2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(267) |
Sep
|
Oct
|
Nov
(6) |
Dec
(512) |
2008 |
Jan
(187) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: paspes <pa...@us...> - 2008-01-09 09:43:01
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8881/modules/core/lib Modified Files: commons-net.jar Added Files: oro.jar Log Message: add vfs dependent libs for ftp --- NEW FILE: oro.jar --- (This appears to be a binary file; contents omitted.) Index: commons-net.jar =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/lib/commons-net.jar,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvsIszC39 and /tmp/cvskm6Hvp differ |
From: paspes <pa...@us...> - 2008-01-09 09:41:58
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8326/modules/scanner/src/com/babeldoc/scanner/worker Modified Files: FtpScanner.java Log Message: add new method requeried by new lib Index: FtpScanner.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/FtpScanner.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** FtpScanner.java 7 Nov 2005 01:51:33 -0000 1.25 --- FtpScanner.java 9 Jan 2008 09:41:56 -0000 1.26 *************** *** 419,422 **** --- 419,426 ---- return result; } + + public FTPFile[] parseFileList(InputStream listStream,String str) throws IOException{ + return parseFileList(listStream); + } /** |
From: Santi B. <san...@us...> - 2008-01-08 23:23:30
|
Update of /cvsroot/babeldoc/babeldoc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30947 Modified Files: .classpath Log Message: Classpath corrected. Index: .classpath =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/.classpath,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** .classpath 8 Jan 2008 23:12:17 -0000 1.9 --- .classpath 8 Jan 2008 23:23:33 -0000 1.10 *************** *** 21,78 **** <classpathentry kind="lib" path="C:/babeldoc_1.3.1/support/ant/lib/xercesImpl.jar"/> <classpathentry kind="lib" path="C:/babeldoc_1.3.1/support/ant/lib/xml-apis.jar"/> - <classpathentry kind="lib" path="build/lib/activation.jar"/> - <classpathentry kind="lib" path="build/lib/avalon-framework.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_babelfish.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_conversion.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_core.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_crypto.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_gui.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_init.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_j2ee.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_soap.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_sql.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_web.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc_xslfo.jar"/> - <classpathentry kind="lib" path="build/lib/babeldoc-scanner.jar"/> - <classpathentry kind="lib" path="build/lib/batik.jar"/> - <classpathentry kind="lib" path="build/lib/bsf.jar"/> - <classpathentry kind="lib" path="build/lib/classes12.jar"/> - <classpathentry kind="lib" path="build/lib/commons-beanutils.jar"/> - <classpathentry kind="lib" path="build/lib/commons-cli.jar"/> - <classpathentry kind="lib" path="build/lib/commons-codec-1.3.jar"/> - <classpathentry kind="lib" path="build/lib/commons-collections.jar"/> - <classpathentry kind="lib" path="build/lib/commons-dbcp.jar"/> - <classpathentry kind="lib" path="build/lib/commons-digester.jar"/> - <classpathentry kind="lib" path="build/lib/commons-discovery.jar"/> - <classpathentry kind="lib" path="build/lib/commons-httpclient.jar"/> - <classpathentry kind="lib" path="build/lib/commons-lang.jar"/> - <classpathentry kind="lib" path="build/lib/commons-logging.jar"/> - <classpathentry kind="lib" path="build/lib/commons-net.jar"/> - <classpathentry kind="lib" path="build/lib/commons-pool.jar"/> - <classpathentry kind="lib" path="build/lib/commons-vfs-1.1-SNAPSHOT.jar"/> - <classpathentry kind="lib" path="build/lib/concurrent.jar"/> - <classpathentry kind="lib" path="build/lib/csv19.jar"/> - <classpathentry kind="lib" path="build/lib/docbook-xalan.jar"/> - <classpathentry kind="lib" path="build/lib/dom4j-full.jar"/> - <classpathentry kind="lib" path="build/lib/fop.jar"/> - <classpathentry kind="lib" path="build/lib/j2ee.jar"/> - <classpathentry kind="lib" path="build/lib/jaxm-api.jar"/> - <classpathentry kind="lib" path="build/lib/jaxm-runtime.jar"/> - <classpathentry kind="lib" path="build/lib/js.jar"/> - <classpathentry kind="lib" path="build/lib/jtds-0.8.1.jar"/> - <classpathentry kind="lib" path="build/lib/JTidy.jar"/> - <classpathentry kind="lib" path="build/lib/log4j.jar"/> - <classpathentry kind="lib" path="build/lib/mail.jar"/> - <classpathentry kind="lib" path="build/lib/mm.mysql-2.0.14-bin.jar"/> - <classpathentry kind="lib" path="build/lib/ostermiller-utils.jar"/> - <classpathentry kind="lib" path="build/lib/poi.jar"/> - <classpathentry kind="lib" path="build/lib/saaj-api.jar"/> - <classpathentry kind="lib" path="build/lib/saaj-ri.jar"/> - <classpathentry kind="lib" path="build/lib/servlet.jar"/> - <classpathentry kind="lib" path="build/lib/velocity.jar"/> - <classpathentry kind="lib" path="build/lib/xalan.jar"/> - <classpathentry kind="lib" path="build/lib/xerces.jar"/> - <classpathentry kind="lib" path="build/lib/xml-apis.jar"/> - <classpathentry kind="lib" path="build/lib/xmlsec.jar"/> <classpathentry kind="lib" path="support/jalopy/lib/aelfred-1.2.jar"/> <classpathentry kind="lib" path="support/jalopy/lib/jalopy-1.0b10.jar"/> --- 21,24 ---- *************** *** 84,87 **** --- 30,83 ---- <classpathentry kind="lib" path="support/jalopy/lib/sax-2.0.1.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="modules/conversion/lib/poi.jar"/> + <classpathentry kind="lib" path="modules/j2ee/lib/j2ee.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xdoclet-1.2b4.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xdoclet-ejb-module-1.2b4.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xdoclet-jboss-module-1.2b4.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xdoclet-jmx-module-1.2b4.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xdoclet-web-module-1.2b4.jar"/> + <classpathentry kind="lib" path="modules/j2ee/support/xjavadoc-1.0.jar"/> + <classpathentry kind="lib" path="modules/jabber/lib/smack.jar"/> + <classpathentry kind="lib" path="modules/jabber/lib/smackx.jar"/> + <classpathentry kind="lib" path="modules/soap/lib/jaxm-api.jar"/> + <classpathentry kind="lib" path="modules/soap/lib/jaxm-runtime.jar"/> + <classpathentry kind="lib" path="modules/soap/lib/saaj-api.jar"/> + <classpathentry kind="lib" path="modules/soap/lib/saaj-ri.jar"/> + <classpathentry kind="lib" path="modules/sql/lib/classes12.jar"/> + <classpathentry kind="lib" path="modules/sql/lib/jtds-0.8.1.jar"/> + <classpathentry kind="lib" path="modules/sql/lib/mm.mysql-2.0.14-bin.jar"/> + <classpathentry kind="lib" path="modules/web/lib/servlet.jar"/> + <classpathentry kind="lib" path="modules/xslfo/lib/batik.jar"/> + <classpathentry kind="lib" path="modules/xslfo/lib/fop.jar"/> + <classpathentry kind="lib" path="modules/core/lib/activation.jar"/> + <classpathentry kind="lib" path="modules/core/lib/avalon-framework.jar"/> + <classpathentry kind="lib" path="modules/core/lib/bsf.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-beanutils.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-cli.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-codec-1.3.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-collections.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-dbcp.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-digester.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-discovery.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-httpclient.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-lang.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-logging.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-net.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-pool.jar"/> + <classpathentry kind="lib" path="modules/core/lib/commons-vfs-1.1-SNAPSHOT.jar"/> + <classpathentry kind="lib" path="modules/core/lib/concurrent.jar"/> + <classpathentry kind="lib" path="modules/core/lib/csv19.jar"/> + <classpathentry kind="lib" path="modules/core/lib/docbook-xalan.jar"/> + <classpathentry kind="lib" path="modules/core/lib/dom4j-full.jar"/> + <classpathentry kind="lib" path="modules/core/lib/js.jar"/> + <classpathentry kind="lib" path="modules/core/lib/JTidy.jar"/> + <classpathentry kind="lib" path="modules/core/lib/log4j.jar"/> + <classpathentry kind="lib" path="modules/core/lib/mail.jar"/> + <classpathentry kind="lib" path="modules/core/lib/ostermiller-utils.jar"/> + <classpathentry kind="lib" path="modules/core/lib/velocity.jar"/> + <classpathentry kind="lib" path="modules/core/lib/xalan.jar"/> + <classpathentry kind="lib" path="modules/core/lib/xerces.jar"/> + <classpathentry kind="lib" path="modules/core/lib/xml-apis.jar"/> + <classpathentry kind="lib" path="modules/core/lib/xmlsec.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
From: Santi B. <san...@us...> - 2008-01-08 23:23:30
|
Update of /cvsroot/babeldoc/babeldoc/.externalToolBuilders In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30947/.externalToolBuilders Modified Files: babeldoc_builder.launch Log Message: Classpath corrected. Index: babeldoc_builder.launch =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/.externalToolBuilders/babeldoc_builder.launch,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** babeldoc_builder.launch 8 Jan 2008 22:31:47 -0000 1.1 --- babeldoc_builder.launch 8 Jan 2008 23:23:33 -0000 1.2 *************** *** 25,31 **** <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> - <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_13"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="babeldoc"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/babeldoc/build.xml}"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> --- 25,32 ---- <stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/> <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="babeldoc"/> + <stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME" value="jdk1.5.0_13"/> + <stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID" value="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/babeldoc/build.xml}"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> |
From: Santi B. <san...@us...> - 2008-01-08 23:12:14
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/pipeline/stage In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/src/com/babeldoc/jabber/pipeline/stage Added Files: MessageStatusException.java PipelineMessageEventNotificationListener.java MessageDeliveryStatus.java XmppWriterPipelineStage.java XmppPipelineMessageListener.java Messages.java Log Message: First version of Jabber module added. --- NEW FILE: MessageDeliveryStatus.java --- package com.babeldoc.jabber.pipeline.stage; import java.util.HashMap; import org.jivesoftware.smackx.packet.MessageEvent; public class MessageDeliveryStatus { public static final String DELIVERED = MessageEvent.DELIVERED; public static final String OFFLINE = MessageEvent.OFFLINE; public static final String CANCELLED = MessageEvent.CANCELLED; public static final String COMPOSING = MessageEvent.COMPOSING; public static final String DISPLAYED = MessageEvent.DISPLAYED; public static final String SENDING = "SENDING"; public static final String ERROR = "ERROR"; public static final String NOT_INITIATED = "NOT INITIATED"; private HashMap map; private MessageDeliveryStatus() { } private static MessageDeliveryStatus messageStatus; public MessageDeliveryStatus newMessage(String packetID) { if (this.map.containsKey(packetID)){ return (this); } else { this.map.put(packetID, "false"); return(this); } } public static synchronized MessageDeliveryStatus getMessageDeliveryStatus() { if(messageStatus == null) messageStatus = new MessageDeliveryStatus(); return messageStatus; } // public String getDeliveryStatus (String packetID) throws MessageStatusException { // if(messageStatus == null){ // throw new MessageStatusException("Message Status not init."); // } // else if (!map.containsKey(packetID)){ // throw new MessageStatusException("This message is not init."); // } // else // return map.get(packetID).toString(); // } /** * This metod was modified to don't raise a exception. * We can assume that if the singleton is not init we can do safely */ public String getDeliveryStatus (String packetID){ if(messageStatus == null) messageStatus = new MessageDeliveryStatus(); if(!map.containsKey(packetID)) setDeliveryStatus(packetID, MessageDeliveryStatus.NOT_INITIATED); return map.get(packetID).toString(); } // public synchronized void setDeliveryStatus(String packetID, String status) throws MessageStatusException { // // if(messageStatus == null) // throw new MessageStatusException("Message not registered."); // if(map.containsKey(packetID)){ // // They are the same // if(map.get(packetID) == status) // throw new MessageStatusException("Can't put the same state twice"); // // } // else { // map.put(packetID, status); // } // } /** * The same as for the getDeliveryStatus. */ public synchronized void setDeliveryStatus(String packetID, String status){ if(messageStatus == null) messageStatus = new MessageDeliveryStatus(); if(map.containsKey(packetID) && map.get(packetID)==status){ setDeliveryStatus(packetID, MessageDeliveryStatus.ERROR); } else map.put(packetID, status); } } --- NEW FILE: Messages.java --- package com.babeldoc.jabber.pipeline.stage; import java.util.MissingResourceException; import java.util.ResourceBundle; public class Messages { private static final String BUNDLE_NAME = "i18n.messages"; //$NON-NLS-1$ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle .getBundle(BUNDLE_NAME); private Messages() { } public static String getString(String key) { try { return RESOURCE_BUNDLE.getString(key); } catch (MissingResourceException e) { return '!' + key + '!'; } } } --- NEW FILE: XmppWriterPipelineStage.java --- /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header: /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/pipeline/stage/XmppWriterPipelineStage.java,v 1.1 2008/01/08 23:12:16 santibegue Exp $ * $DateTime$ * $Author: santibegue $ * */ package com.babeldoc.jabber.pipeline.stage; import java.util.ArrayList; import java.util.Collection; import org.apache.commons.lang.StringUtils; import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.packet.Message; import org.jivesoftware.smackx.MessageEventManager; import org.jivesoftware.smackx.muc.MultiUserChat; import com.babeldoc.core.option.ConfigOption; import com.babeldoc.core.option.IConfigOptionType; import com.babeldoc.core.pipeline.PipelineException; import com.babeldoc.core.pipeline.PipelineStageInfo; import com.babeldoc.core.pipeline.PipelineStageResult; import com.babeldoc.core.pipeline.stage.GenericWriterPipelineStage; /** * This class is using for sending messaging using XMPP protocol (jabber). * * @author dejank * */ public class XmppWriterPipelineStage extends GenericWriterPipelineStage { /** * */ private static final long serialVersionUID = -4487658270290844665L; public static final String HOST = "host"; //$NON-NLS-1$ public static final String PORT = "port"; //$NON-NLS-1$ public static final String USERNAME = "username"; //$NON-NLS-1$ public static final String PASSWORD = "password"; //$NON-NLS-1$ public static final String RECIPIENTS = "recipients"; //$NON-NLS-1$ public static final String CHATROOM = "chatroom"; //$NON-NLS-1$ public static final String NICKNAME = "nickname"; //$NON-NLS-1$ public static final String SSL = "ssl"; //$NON-NLS-1$ public static final String WAIT_DELIVERY = "waitUntilDelivery"; //$NON-NLS-1$ public static final String MESSAGE = "notificationMessage"; //$NON-NLS-1$ public static final String ANSWER = "answer"; //$NON-NLS-1$ MessageDeliveryStatus deliveryStatus = null; public XmppWriterPipelineStage() { super(new PipelineStageInfo() { /** * */ private static final long serialVersionUID = 1L; public String getName() { return "XmppWriter"; //$NON-NLS-1$ } public String getDescription() { return "Pipeline stage that use XMPP (Jabber) protocol for sending messages"; } public Collection getTypeSpecificOptions() { ArrayList options = new ArrayList(); options .add(new ConfigOption( HOST, IConfigOptionType.STRING, "jabber.org", false, "Jabber server name")); //$NON-NLS-1$ options.add(new ConfigOption(PORT, IConfigOptionType.INTEGER, "5222", false, //$NON-NLS-1$ "Port using for connecting. Defaults to 5222")); options.add(new ConfigOption(USERNAME, IConfigOptionType.STRING, null, true, "Jabber account name")); options.add(new ConfigOption(PASSWORD, IConfigOptionType.STRING, null, true, "Jabber account password")); options.add(new ConfigOption(RECIPIENTS, IConfigOptionType.STRING, null, false, "Comma separated list of recipients that should receive IM")); options.add(new ConfigOption(CHATROOM, IConfigOptionType.STRING, null, false, "Name of chatroom that should receive IM")); options.add(new ConfigOption(NICKNAME, IConfigOptionType.STRING, null, false, "Nickname used for chatrooms")); options .add(new ConfigOption( SSL, IConfigOptionType.BOOLEAN, "false", false, "Use ssl connections")); //$NON-NLS-1$ options .add(new ConfigOption( WAIT_DELIVERY, IConfigOptionType.BOOLEAN, "false", false, "Wait until delivery event notification")); //$NON-NLS-1$ options.add(new ConfigOption(MESSAGE, IConfigOptionType.STRING, null, false, "Notification message to send")); options.add(new ConfigOption(ANSWER, IConfigOptionType.STRING, null, false, "Expected answer for send document")); return options; } }); } /* * (non-Javadoc) * * @see com.babeldoc.core.pipeline.PipelineStage#process() */ public PipelineStageResult[] process() throws PipelineException { final String host = this.getInfo().getStrValue(HOST); final int port = this.getInfo().getIntValue(PORT); final String username = this.getInfo().getStrValue(USERNAME); final String password = this.getInfo().getStrValue(PASSWORD); final String[] recipients = StringUtils.split(this.getInfo().getStrValue( RECIPIENTS), ","); //$NON-NLS-1$ final String chatroom = this.getInfo().getStrValue(CHATROOM); final String nickname = this.getInfo().getStrValue(NICKNAME); final boolean useSSL = this.getInfo().getBooleanValue(SSL); boolean waitDelivery = this.getInfo().getBooleanValue(WAIT_DELIVERY); final String notificationMessage = this.getInfo().getStrValue(MESSAGE); final String answer = this.getInfo().getStrValue(ANSWER); deliveryStatus = MessageDeliveryStatus.getMessageDeliveryStatus(); ConnectionConfiguration connConfig = null; XMPPConnection conn = null; MultiUserChat groupChat = null; Message message = null; try { if (useSSL) { // conn = new SSLXMPPConnection(host); throw new PipelineException("SSL Protocol not supported"); } else { connConfig = new ConnectionConfiguration(host, port); conn = new XMPPConnection(connConfig); } MessageEventManager messageEventManager = new MessageEventManager( conn); messageEventManager .addMessageEventNotificationListener(new PipelineMessageEventNotificationListener()); conn.login(username, password); for (int i = 0; i < recipients.length; i++) { Chat chat = conn.getChatManager().createChat(recipients[i], new XmppPipelineMessageListener()); message = new Message(); message.setBody(notificationMessage); message.setType(Message.Type.chat); MessageEventManager.addNotificationsRequests(message, true, true, true, true); deliveryStatus.setDeliveryStatus(message.getPacketID(), MessageDeliveryStatus.SENDING); chat.sendMessage(message); } if (chatroom != null && !"".equals(chatroom)) { //$NON-NLS-1$ // GroupChat chat = conn.createGroupChat(chatroom); // chat.sendMessage(message); // If send message to a group dont wait for delivery waitDelivery = false; groupChat.join(nickname, password); message = groupChat.createMessage(); message.setSubject(notificationMessage); message.setBody(notificationMessage); message.setType(Message.Type.groupchat); // MessageEventManager.addNotificationsRequests(message, true, true, true, true); groupChat.sendMessage(message); } if (waitDelivery) { try { while (deliveryStatus.getDeliveryStatus(message .getPacketID()) == MessageDeliveryStatus.SENDING) { Thread.sleep(15); } if(deliveryStatus.getDeliveryStatus(message.getPacketID()) == MessageDeliveryStatus.ERROR || deliveryStatus.getDeliveryStatus(message.getPacketID()) == MessageDeliveryStatus.NOT_INITIATED){ throw new PipelineException("Can't determine de delivery status."); } if(deliveryStatus.getDeliveryStatus(message.getPacketID()) == MessageDeliveryStatus.OFFLINE) throw new PipelineException("Can't send the message, the user is offline."); } catch (InterruptedException e) { throw new PipelineException( "Pipeline aborted while waiting for delivery."); } } conn.disconnect(); } catch (XMPPException xme) { throw new PipelineException("Error sending message", xme); // xme.printStackTrace(); } return this.processHelper(); } } --- NEW FILE: PipelineMessageEventNotificationListener.java --- package com.babeldoc.jabber.pipeline.stage; import org.jivesoftware.smackx.MessageEventNotificationListener; public class PipelineMessageEventNotificationListener implements MessageEventNotificationListener { private static MessageDeliveryStatus deliveredStatus = null; public void cancelledNotification(String arg0, String arg1) { // Ignore this notification } public void composingNotification(String arg0, String arg1) { // Ignore this notification } public void deliveredNotification(String arg0, String arg1) { // Message was delivered, wait until displayed deliveredStatus = MessageDeliveryStatus.getMessageDeliveryStatus(); deliveredStatus.setDeliveryStatus(arg0, arg1); } public void displayedNotification(String arg0, String arg1) { // Message was displayed, piepline success deliveredStatus = MessageDeliveryStatus.getMessageDeliveryStatus(); deliveredStatus.setDeliveryStatus(arg0, arg1); } public void offlineNotification(String arg0, String arg1) { // The user is offline, pipeline fails deliveredStatus = MessageDeliveryStatus.getMessageDeliveryStatus(); deliveredStatus.setDeliveryStatus(arg0, arg1); } } --- NEW FILE: XmppPipelineMessageListener.java --- /** * */ package com.babeldoc.jabber.pipeline.stage; import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.MessageListener; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.packet.Message; import com.babeldoc.core.pipeline.PipelineException; /** * @author santi * */ public class XmppPipelineMessageListener implements MessageListener { /* * (non-Javadoc) * * @see org.jivesoftware.smack.MessageListener#processMessage(org.jivesoftware.smack.Chat, * org.jivesoftware.smack.packet.Message) */ public void processMessage(Chat chat, Message message){ // Simple message processing parrot-bot try { chat.sendMessage(Messages.getString("XmppPipelineMessageListener.0") + message.toString()); //$NON-NLS-1$ } catch (XMPPException e) { // throw new pipeline exception new PipelineException(Messages.getString("XmppPipelineMessageListener.1"),e); //$NON-NLS-1$ } } } --- NEW FILE: MessageStatusException.java --- package com.babeldoc.jabber.pipeline.stage; import com.babeldoc.core.GeneralException; public class MessageStatusException extends GeneralException { /** * */ private static final long serialVersionUID = -3324619817342835619L; /** * */ public MessageStatusException() { super(); } /** * @param message * @param exception */ public MessageStatusException(String message, Throwable exception) { super(message, exception); } /** * @param message */ public MessageStatusException(String message) { super(message); } } |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603 Modified Files: .classpath Log Message: First version of Jabber module added. Index: .classpath =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/.classpath,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** .classpath 8 Jan 2008 22:31:56 -0000 1.8 --- .classpath 8 Jan 2008 23:12:17 -0000 1.9 *************** *** 15,18 **** --- 15,19 ---- <classpathentry kind="src" path="support/src"/> <classpathentry kind="src" path="modules/sql/src"/> + <classpathentry kind="src" path="modules/jabber/src"/> <classpathentry kind="lib" path="C:/babeldoc_1.3.1/support/ant/lib/ant.jar"/> <classpathentry kind="lib" path="C:/babeldoc_1.3.1/support/ant/lib/junit.jar"/> |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber Added Files: build.xml .cvsignore build.properties Log Message: First version of Jabber module added. --- NEW FILE: .cvsignore --- build --- NEW FILE: build.xml --- <project name="jabber" basedir="." default="build"> <property file="build.properties"/> <property name="module_name" value="babeldoc_${Module}"/> <property name="module_path" value="./build"/> <property name="base_dir" value="${basedir}"/> <property name="babeldoc_home" value="${babeldoc_home}"/> <target name="setup"> <mkdir dir="./build"/> <mkdir dir="./build/lib"/> <mkdir dir="./build/examples"/> <mkdir dir="./build/readme"/> <mkdir dir="./build/support"/> </target> <target name="clean"> <echo message="Cleaning ${Module}"/> <delete dir="${build}"/> </target> <target name="build"> <echo message="Building ${Module}"/> <mkdir dir="${module_path}"/> <javac destdir="${module_path}" srcdir="./src" deprecation="${compile.deprecation}" debug="${compile.debug}"> <classpath> <fileset dir="lib"> <include name="*"/> </fileset> <fileset dir="${base_dir}/build/lib"> <include name="*.jar"/> </fileset> <fileset dir="lib"> <include name="*.jar"/> </fileset> <pathelement location="${base_dir}/support/ant/lib/junit.jar"/> </classpath> </javac> <!-- Copy the configuration files to build/jabber/... --> <mkdir dir="${module_path}/${Module}"/> <copy toDir="${module_path}/${Module}"> <fileset dir="config"> <include name="*/**"/> </fileset> </copy> <!-- copy over the services file --> <mkdir dir="${module_path}/META-INF/services"/> <copy toDir="${module_path}/META-INF/services"> <fileset dir="services"/> </copy> <jar jarfile="${base_dir}/build/lib/${Jarfile}" basedir="${module_path}" excludes="**/${Jarfile}"> <manifest> <attribute name="Built-By" value="${user.name}"/> <section name="Babeldoc"> <attribute name="Module" value="${Module}"/> <attribute name="Depends" value="${Depends}"/> <attribute name="ModuleClass" value="${ModuleClass}"/> </section> </manifest> </jar> <copy toDir="${base_dir}/build"> <fileset dir="."> <include name="examples/**"/> <include name="lib/**"/> </fileset> </copy> </target> <target name="deploy"> <echo message="Deploying ${Module}"/> </target> <target name="test"> <echo message="Testing ${Module}"/> </target> <target name="format"> <!-- <echo message="Formatting ${Module}"/> <jalopy fileformat="${jalopy.fileformat}" convention="${jalopy.convention}" history="${jalopy.history}" loglevel="${jalopy.loglevel}" threads="${jalopy.threads}"> <fileset dir="./src"> <include name="**/*.java" /> </fileset> </jalopy> --> </target> </project> --- NEW FILE: build.properties --- Module=jabber Depends=core Jarfile=babeldoc_jabber.jar ModuleClass=com.babeldoc.jabber.module.XmppWriterModule #babeldoc_home=../babeldoc/build #custom = true |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/module In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/src/com/babeldoc/jabber/module Added Files: XmppWriterModule.java Log Message: First version of Jabber module added. --- NEW FILE: XmppWriterModule.java --- /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header: /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/module/XmppWriterModule.java,v 1.1 2008/01/08 23:12:16 santibegue Exp $ * $DateTime$ * $Author: santibegue $ * */ package com.babeldoc.jabber.module; import com.babeldoc.core.module.BabeldocModule; import java.util.HashSet; import java.util.Set; /** * This is the jfreereports module - it doesn't do very much except support the * dependsOn. * * @author MCA * @version 1.0 */ public class XmppWriterModule extends BabeldocModule { /** * */ private static final long serialVersionUID = 7745617813378787658L; public static final String MODULE = "jabber"; /** * jabber module only depends on core * * @return */ public Set getDependsOn() { Set set = new HashSet(); set.add("core"); return set; } /** * The Name of the module is jfreereports * * @return */ public String getName() { return MODULE; } } |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/services In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/services Added Files: com.babeldoc.core.module.BabeldocModule Log Message: First version of Jabber module added. --- NEW FILE: com.babeldoc.core.module.BabeldocModule --- com.babeldoc.jabber.module.XmppWriterModule |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/lib In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/lib Added Files: smackx.jar smack.jar Log Message: First version of Jabber module added. --- NEW FILE: smack.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: smackx.jar --- (This appears to be a binary file; contents omitted.) |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/scanner/src/com/babeldoc/scanner/worker Modified Files: VFSScanner.java Log Message: First version of Jabber module added. Index: VFSScanner.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/VFSScanner.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** VFSScanner.java 8 Jan 2008 17:01:57 -0000 1.6 --- VFSScanner.java 8 Jan 2008 23:12:16 -0000 1.7 *************** *** 86,91 **** import org.apache.commons.vfs.VFS; import org.apache.commons.vfs.auth.StaticUserAuthenticator; - import org.apache.commons.vfs.impl.DefaultFileSystemConfigBuilder; import org.apache.commons.vfs.impl.DefaultFileMonitor; import com.babeldoc.core.I18n; --- 86,91 ---- import org.apache.commons.vfs.VFS; import org.apache.commons.vfs.auth.StaticUserAuthenticator; import org.apache.commons.vfs.impl.DefaultFileMonitor; + import org.apache.commons.vfs.impl.DefaultFileSystemConfigBuilder; import com.babeldoc.core.I18n; |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/config/i18n In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/config/i18n Added Files: messages.properties Log Message: First version of Jabber module added. --- NEW FILE: messages.properties --- XmppPipelineMessageListener.0=Received message: XmppPipelineMessageListener.1=Can't send message to recipient. XmppWriterPipelineStage.4=Pipeline interrupted waiting for message delivery XmppWriterPipelineStage.22=SSL Protocol not supported XmppWriterPipelineStage.24=Error sending message |
From: Santi B. <san...@us...> - 2008-01-08 23:12:13
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/config/service In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27603/modules/jabber/config/service Added Files: query.properties Log Message: First version of Jabber module added. --- NEW FILE: query.properties --- PipelineStage.XmppWriter=com.babeldoc.jabber.pipeline.stage.XmppWriterPipelineStage |
From: Santi B. <san...@us...> - 2008-01-08 23:11:32
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:32
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/lib In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/lib Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/lib added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/module In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src/com/babeldoc/jabber/module Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/module added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src/com/babeldoc/jabber Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/config/service In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/config/service Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/config/service added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/config In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/config Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/config added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/config/i18n In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/config/i18n Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/config/i18n added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src/com/babeldoc Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src/com Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src/com added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/pipeline In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/src/com/babeldoc/jabber/pipeline Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/src/com/babeldoc/jabber/pipeline added to the repository |
From: Santi B. <san...@us...> - 2008-01-08 23:11:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/jabber/services In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27517/modules/jabber/services Log Message: Directory /cvsroot/babeldoc/babeldoc/modules/jabber/services added to the repository |