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: Santi B. <san...@us...> - 2008-01-08 22:31:49
|
Update of /cvsroot/babeldoc/babeldoc/modules/sql/build/com/babeldoc/sql/config In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/sql/build/com/babeldoc/sql/config Removed Files: SqlConfigurationLoader.class SqlConfigService.class Log Message: File system reorganization and eclipse project basic settings. --- SqlConfigurationLoader.class DELETED --- --- SqlConfigService.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core/pipeline/feeder In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core/pipeline/feeder Removed Files: MemoryQueue.class SynchronousFeeder.class IFeederQueue.class FeedDocument.class FeederConfigInfo.class AsynchronousFeeder.class DiskQueue.class SynchronousFeeder$1.class AsynchronousFeeder$2.class FeederFactory.class AsynchronousFeeder$1.class IFeeder.class DiskQueue$1.class DiskQueueTest.class Log Message: File system reorganization and eclipse project basic settings. --- IFeederQueue.class DELETED --- --- FeedDocument.class DELETED --- --- DiskQueue.class DELETED --- --- SynchronousFeeder.class DELETED --- --- AsynchronousFeeder$1.class DELETED --- --- AsynchronousFeeder.class DELETED --- --- FeederFactory.class DELETED --- --- DiskQueue$1.class DELETED --- --- SynchronousFeeder$1.class DELETED --- --- AsynchronousFeeder$2.class DELETED --- --- MemoryQueue.class DELETED --- --- DiskQueueTest.class DELETED --- --- FeederConfigInfo.class DELETED --- --- IFeeder.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core/pipeline In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core/pipeline Removed Files: PipelineStageFactoryInfo.class IPipelineStageErrorHandler.class IPipelineStage.class PipelineDocument.class PipelineException.class IPipelineStageResolver.class PipelineStageInfo.class PipelineDocumentTest.class PipelineStageFactory.class PipelineStageConnection.class PipelineConfigException.class PipelineFactory.class PipelineStage.class PipelineStageFactoryType.class PipelineFactoryFactory.class PipelineStageNamePair.class DefaultPipelineStageErrorHandler.class PipelineStageResult.class IPipelineStageFactory.class PipelineStageType.class IPipelineFactory.class PipelineStageResolver.class Log Message: File system reorganization and eclipse project basic settings. --- PipelineFactory.class DELETED --- --- PipelineStageFactoryType.class DELETED --- --- PipelineStageResult.class DELETED --- --- PipelineDocument.class DELETED --- --- IPipelineStageFactory.class DELETED --- --- PipelineFactoryFactory.class DELETED --- --- PipelineStage.class DELETED --- --- IPipelineFactory.class DELETED --- --- PipelineStageResolver.class DELETED --- --- PipelineDocumentTest.class DELETED --- --- IPipelineStageErrorHandler.class DELETED --- --- PipelineConfigException.class DELETED --- --- PipelineStageType.class DELETED --- --- DefaultPipelineStageErrorHandler.class DELETED --- --- PipelineStageConnection.class DELETED --- --- PipelineStageFactoryInfo.class DELETED --- --- IPipelineStage.class DELETED --- --- IPipelineStageResolver.class DELETED --- --- PipelineStageNamePair.class DELETED --- --- PipelineException.class DELETED --- --- PipelineStageFactory.class DELETED --- --- PipelineStageInfo.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:49
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/core/user In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/core/user Removed Files: resource-factory.properties factory.properties Log Message: File system reorganization and eclipse project basic settings. --- resource-factory.properties DELETED --- --- factory.properties DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core/user In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core/user Removed Files: UserFactory.class IUserCredential.class UserResource.class User.class UserFactoryType.class IUser.class IOrganization.class IUserOperation.class IUserFactory.class UserContext.class UserResourceFactoryType.class UserCredentialException.class UserException.class PasswordUserCredential.class IUserContext.class UserResourceFactory.class UserResourceException.class UserCreateException.class UserType.class IUserResourceFactory.class Log Message: File system reorganization and eclipse project basic settings. --- IUserCredential.class DELETED --- --- UserException.class DELETED --- --- IUserFactory.class DELETED --- --- UserCredentialException.class DELETED --- --- IUserResourceFactory.class DELETED --- --- UserFactory.class DELETED --- --- IUserOperation.class DELETED --- --- UserResourceException.class DELETED --- --- PasswordUserCredential.class DELETED --- --- IOrganization.class DELETED --- --- UserResourceFactory.class DELETED --- --- UserResource.class DELETED --- --- IUserContext.class DELETED --- --- IUser.class DELETED --- --- User.class DELETED --- --- UserFactoryType.class DELETED --- --- UserCreateException.class DELETED --- --- UserContext.class DELETED --- --- UserResourceFactoryType.class DELETED --- --- UserType.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/build/com/babeldoc/scanner In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/scanner/build/com/babeldoc/scanner Removed Files: Scanner.class ScannerSchedule.class ScannerWorkerStatus.class ScannerException.class IScannerWorker.class ScannerConfigurationException.class ScannerWorkerInfo.class ScannerWorkerVO.class ScannerWorkerScheduler.class ScannerThread.class ScannerFactory.class ScannerWorker.class ScannerFactoryTest.class ScannerWorkerTest.class ScannerController.class ScannerWorkerType.class Log Message: File system reorganization and eclipse project basic settings. --- ScannerException.class DELETED --- --- ScannerWorkerVO.class DELETED --- --- ScannerWorkerStatus.class DELETED --- --- ScannerSchedule.class DELETED --- --- ScannerController.class DELETED --- --- IScannerWorker.class DELETED --- --- ScannerThread.class DELETED --- --- ScannerWorkerInfo.class DELETED --- --- ScannerConfigurationException.class DELETED --- --- Scanner.class DELETED --- --- ScannerFactory.class DELETED --- --- ScannerWorkerScheduler.class DELETED --- --- ScannerWorker.class DELETED --- --- ScannerWorkerType.class DELETED --- --- ScannerFactoryTest.class DELETED --- --- ScannerWorkerTest.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/build/com/babeldoc/scanner/worker In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/scanner/build/com/babeldoc/scanner/worker Removed Files: HttpScannerInfo.class ExternalApplicationScanner.class NullScanner$1.class SqlScanner.class FtpScanner.class SqlScannerInfo.class MailboxScanner.class FtpScanner$1MsFtpFileListParser.class DirectoryScanner.class HttpScanner.class DirectoryScanner$1.class NullScanner.class MailboxScannerInfo.class ExternalApplicationScannerInfo.class FtpScannerInfo.class DirectoryScannerInfo.class Log Message: File system reorganization and eclipse project basic settings. --- MailboxScannerInfo.class DELETED --- --- FtpScanner.class DELETED --- --- SqlScanner.class DELETED --- --- FtpScanner$1MsFtpFileListParser.class DELETED --- --- DirectoryScanner.class DELETED --- --- NullScanner$1.class DELETED --- --- MailboxScanner.class DELETED --- --- ExternalApplicationScannerInfo.class DELETED --- --- NullScanner.class DELETED --- --- HttpScanner.class DELETED --- --- HttpScannerInfo.class DELETED --- --- ExternalApplicationScanner.class DELETED --- --- SqlScannerInfo.class DELETED --- --- FtpScannerInfo.class DELETED --- --- DirectoryScanner$1.class DELETED --- --- DirectoryScannerInfo.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:47
|
Update of /cvsroot/babeldoc/babeldoc/modules/web/build/console/journal In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/web/build/console/journal Removed Files: index.vm ticketstep.vm forked-tickets.vm view-document.vm new-tickets.vm Log Message: File system reorganization and eclipse project basic settings. --- view-document.vm DELETED --- --- new-tickets.vm DELETED --- --- ticketstep.vm DELETED --- --- index.vm DELETED --- --- forked-tickets.vm DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core/pipeline/stage Removed Files: JavaXmlDecoderPipelineStage.class XpathSplitterPipelineStage.class XpathSplitterPipelineStage$1.class RSSChannelPipelineStage.class JavaXmlDecoderPipelineStage$1.class DomifyPipelineStage.class DecompressionPipelineStage$1.class DomifyPipelineStage$1.class FileWriterPipelineStage$1.class JournalUpdatePipelineStage.class RouterPipelineStage.class XslTransformPipelineStage$1.class GenericWriterPipelineStage.class CallStagePipelineStage.class ExternalApplicationPipelineStage$1.class XpathExtractPipelineStage$1.class VelocityTemplatizePipelineStage.class XsltCacheItem.class RSSChannelPipelineStage$1.class XslTransformPipelineStage.class ExternalApplicationPipelineStage.class EnrichDocumentPipelineStage.class EnrichDocumentPipelineStage$1.class CallStagePipelineStage$1.class ZipArchiveWriterPipelineStage.class FileXsltCacheItem.class VelocityTemplatizePipelineStage$1.class EntityResolverDiskCache.class FtpWriterPipelineStage$1.class DomifyPipelineStage$1BabelErrorHandler.class SocketWriterPipelineStage.class XpathExtractPipelineStage.class SmtpWriterPipelineStage.class CompressionPipelineStage.class NullPipelineStage.class JTidyPipelineStage$1.class SmtpWriterPipelineStage$1.class ReaderPipelineStage.class FileWriterPipelineStage.class SmtpWriterPipelineStage$1PipelineDocumentDataSource.class ZipArchiveWriterPipelineStage$1.class ScriptingPipelineStage.class JTidyPipelineStage.class DomifyPipelineStage$2.class SocketWriterPipelineStage$1.class DecompressionPipelineStage.class StreamHandler.class NullPipelineStage$1.class ScriptingPipelineStage$1.class RouterPipelineStage$1.class EntityResolverMemoryCache.class JournalUpdatePipelineStage$1.class ReaderPipelineStage$1.class CompressionPipelineStage$1.class FtpWriterPipelineStage.class Log Message: File system reorganization and eclipse project basic settings. --- ScriptingPipelineStage$1.class DELETED --- --- XslTransformPipelineStage$1.class DELETED --- --- DomifyPipelineStage$1BabelErrorHandler.class DELETED --- --- RouterPipelineStage.class DELETED --- --- DecompressionPipelineStage.class DELETED --- --- ExternalApplicationPipelineStage.class DELETED --- --- XslTransformPipelineStage.class DELETED --- --- RouterPipelineStage$1.class DELETED --- --- SmtpWriterPipelineStage$1PipelineDocumentDataSource.class DELETED --- --- CompressionPipelineStage$1.class DELETED --- --- VelocityTemplatizePipelineStage.class DELETED --- --- FtpWriterPipelineStage$1.class DELETED --- --- CompressionPipelineStage.class DELETED --- --- FileWriterPipelineStage.class DELETED --- --- SmtpWriterPipelineStage.class DELETED --- --- EnrichDocumentPipelineStage$1.class DELETED --- --- XpathExtractPipelineStage.class DELETED --- --- DomifyPipelineStage.class DELETED --- --- NullPipelineStage.class DELETED --- --- JavaXmlDecoderPipelineStage$1.class DELETED --- --- NullPipelineStage$1.class DELETED --- --- ReaderPipelineStage.class DELETED --- --- JTidyPipelineStage.class DELETED --- --- JournalUpdatePipelineStage$1.class DELETED --- --- DomifyPipelineStage$1.class DELETED --- --- ScriptingPipelineStage.class DELETED --- --- XpathSplitterPipelineStage.class DELETED --- --- SocketWriterPipelineStage$1.class DELETED --- --- EntityResolverDiskCache.class DELETED --- --- CallStagePipelineStage$1.class DELETED --- --- VelocityTemplatizePipelineStage$1.class DELETED --- --- FileWriterPipelineStage$1.class DELETED --- --- EntityResolverMemoryCache.class DELETED --- --- ExternalApplicationPipelineStage$1.class DELETED --- --- ZipArchiveWriterPipelineStage.class DELETED --- --- JTidyPipelineStage$1.class DELETED --- --- JournalUpdatePipelineStage.class DELETED --- --- FileXsltCacheItem.class DELETED --- --- DecompressionPipelineStage$1.class DELETED --- --- EnrichDocumentPipelineStage.class DELETED --- --- ZipArchiveWriterPipelineStage$1.class DELETED --- --- RSSChannelPipelineStage$1.class DELETED --- --- XsltCacheItem.class DELETED --- --- RSSChannelPipelineStage.class DELETED --- --- CallStagePipelineStage.class DELETED --- --- XpathSplitterPipelineStage$1.class DELETED --- --- FtpWriterPipelineStage.class DELETED --- --- JavaXmlDecoderPipelineStage.class DELETED --- --- StreamHandler.class DELETED --- --- XpathExtractPipelineStage$1.class DELETED --- --- SmtpWriterPipelineStage$1.class DELETED --- --- SocketWriterPipelineStage.class DELETED --- --- ReaderPipelineStage$1.class DELETED --- --- GenericWriterPipelineStage.class DELETED --- --- DomifyPipelineStage$2.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:46
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/build/com/babeldoc/init In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/init/build/com/babeldoc/init Removed Files: BabeldocClassloader.class AdaptiveClassLoader$1.class Main$1.class AdaptiveClassLoader$ClassCacheEntry.class Main.class AdaptiveClassLoader.class Log Message: File system reorganization and eclipse project basic settings. --- BabeldocClassloader.class DELETED --- --- AdaptiveClassLoader$1.class DELETED --- --- Main.class DELETED --- --- AdaptiveClassLoader.class DELETED --- --- Main$1.class DELETED --- --- AdaptiveClassLoader$ClassCacheEntry.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:46
|
Update of /cvsroot/babeldoc/babeldoc/.externalToolBuilders In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/.externalToolBuilders Added Files: org.eclipse.jdt.core.javabuilder.launch babeldoc_builder.launch Removed Files: babeldoc.launch org.eclipse.wst.validation.validationbuilder (1).launch org.eclipse.wst.common.project.facet.core.builder.launch org.eclipse.jdt.core.javabuilder (1).launch org.eclipse.wst.validation.validationbuilder.launch Log Message: File system reorganization and eclipse project basic settings. --- org.eclipse.wst.common.project.facet.core.builder.launch DELETED --- --- org.eclipse.wst.validation.validationbuilder.launch DELETED --- --- org.eclipse.wst.validation.validationbuilder (1).launch DELETED --- --- org.eclipse.jdt.core.javabuilder (1).launch DELETED --- --- NEW FILE: babeldoc_builder.launch --- <?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType"> <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="setup,buildexpress,"/> <stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="setup,buildexpress,"/> <booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/> <booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="true"/> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> <listEntry value="/babeldoc/build.xml"/> </listAttribute> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> <listEntry value="1"/> </listAttribute> <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> <listAttribute key="org.eclipse.jdt.launching.CLASSPATH"> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" path="1" type="4"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.antHome"> <memento default="true"/> </runtimeClasspathEntry> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry id="org.eclipse.ant.ui.classpathentry.extraClasspathEntries"> <memento/> </runtimeClasspathEntry> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/babeldoc/support/ant/lib/ant.jar" path="3" type="2"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/babeldoc/support/ant/lib/junit.jar" path="3" type="2"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/babeldoc/support/ant/lib/optional.jar" path="3" type="2"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/babeldoc/support/ant/lib/xercesImpl.jar" path="3" type="2"/> "/> <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/babeldoc/support/ant/lib/xml-apis.jar" path="3" type="2"/> "/> </listAttribute> <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,"/> <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/babeldoc}"/> <stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/> </launchConfiguration> --- NEW FILE: org.eclipse.jdt.core.javabuilder.launch --- <?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType"> <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.jdt.core.javabuilder"/> <mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/> <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> </launchConfiguration> --- babeldoc.launch DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:46
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core/journal In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core/journal Removed Files: JournalConfigInfo.class JournalFactory.class JournalOperation.class Journal.class JournalTest.class IJournalTicket.class JournalTicket.class IJournalStatus.class JournalStatus.class JournalException.class IJournal.class JournalType.class Log Message: File system reorganization and eclipse project basic settings. --- Journal.class DELETED --- --- JournalType.class DELETED --- --- IJournalTicket.class DELETED --- --- JournalOperation.class DELETED --- --- IJournal.class DELETED --- --- IJournalStatus.class DELETED --- --- JournalTest.class DELETED --- --- JournalConfigInfo.class DELETED --- --- JournalFactory.class DELETED --- --- JournalException.class DELETED --- --- JournalTicket.class DELETED --- --- JournalStatus.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:46
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/gensrc/com/babeldoc/j2ee/pipeline In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/j2ee/gensrc/com/babeldoc/j2ee/pipeline Removed Files: EjbPipelineStageFactoryHome.java EjbPipelineStageFactory.java EjbPipelineStageFactoryLocalHome.java EjbPipelineStageFactoryRemote.java Log Message: File system reorganization and eclipse project basic settings. --- EjbPipelineStageFactoryLocalHome.java DELETED --- --- EjbPipelineStageFactory.java DELETED --- --- EjbPipelineStageFactoryRemote.java DELETED --- --- EjbPipelineStageFactoryHome.java DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/soap/build/soap/i18n In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/soap/build/soap/i18n Removed Files: messages.properties Log Message: File system reorganization and eclipse project basic settings. --- messages.properties DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/web/build/com/babeldoc/web/pipeline/stage In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/web/build/com/babeldoc/web/pipeline/stage Removed Files: HttpClientPipelineStage$1.class HttpClientPipelineStage.class Log Message: File system reorganization and eclipse project basic settings. --- HttpClientPipelineStage.class DELETED --- --- HttpClientPipelineStage$1.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/web/build/console/WEB-INF/classes/com/babeldoc/web/context In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/web/build/console/WEB-INF/classes/com/babeldoc/web/context Removed Files: BabelContext.class JournalListingContext.class ModuleListingContext.class PipelineListingContext.class Log Message: File system reorganization and eclipse project basic settings. --- PipelineListingContext.class DELETED --- --- JournalListingContext.class DELETED --- --- BabelContext.class DELETED --- --- ModuleListingContext.class DELETED --- |
From: Santi B. <san...@us...> - 2008-01-08 22:31:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/web/build/console/WEB-INF/classes/com/babeldoc/web/module In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/web/build/console/WEB-INF/classes/com/babeldoc/web/module Removed Files: WebModule.class Log Message: File system reorganization and eclipse project basic settings. --- WebModule.class DELETED --- |
Update of /cvsroot/babeldoc/babeldoc/modules/core/build/com/babeldoc/core In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11056/modules/core/build/com/babeldoc/core Removed Files: INamed.class Main.class I18n.class VelocityUtilityContext.class GeneralException.class EnvironmentLoader.class NameValuePair.class BabeldocCommand.class RmiRegistry.class Pair.class VariableProcessor.class BabeldocCommand$1ShutMeDownNicely.class LogService.class Named.class IShutdownListener.class ResourceLoader.class Type.class Log Message: File system reorganization and eclipse project basic settings. --- Pair.class DELETED --- --- I18n.class DELETED --- --- VelocityUtilityContext.class DELETED --- --- VariableProcessor.class DELETED --- --- RmiRegistry.class DELETED --- --- Main.class DELETED --- --- Type.class DELETED --- --- Named.class DELETED --- --- BabeldocCommand.class DELETED --- --- EnvironmentLoader.class DELETED --- --- ResourceLoader.class DELETED --- --- LogService.class DELETED --- --- BabeldocCommand$1ShutMeDownNicely.class DELETED --- --- NameValuePair.class DELETED --- --- GeneralException.class DELETED --- --- INamed.class DELETED --- --- IShutdownListener.class DELETED --- |
From: paspes <pa...@us...> - 2008-01-08 18:02:36
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/config/i18n In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15342/modules/scanner/config/i18n Modified Files: messages.properties Log Message: VFS Scanner Event monitor active Index: messages.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/config/i18n/messages.properties,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** messages.properties 3 Dec 2007 16:37:19 -0000 1.23 --- messages.properties 8 Jan 2008 17:01:57 -0000 1.24 *************** *** 74,78 **** scanner.FtpScannerInfo.option.localBackupFolder=Folder on local file system where scanned documents should be copied scanner.FtpScannerInfo.option.ftpFileType=Folder on local file system where scanned documents should be copied ! scanner.MailboxScanner.error.getFrom=Invalid value '{0}' for getFrom property! Only 'attachment' and 'body' values allowed! --- 74,78 ---- scanner.FtpScannerInfo.option.localBackupFolder=Folder on local file system where scanned documents should be copied scanner.FtpScannerInfo.option.ftpFileType=Folder on local file system where scanned documents should be copied ! scanner.FtpScannerInfo.option.maxDepth=Max number of subdirectories that can read scanner.MailboxScanner.error.getFrom=Invalid value '{0}' for getFrom property! Only 'attachment' and 'body' values allowed! *************** *** 114,117 **** --- 114,134 ---- scanner.SqlScanner.option.updateStatement=SQL Statement that is executed after selecting rows and creating documents. It is used for marking rows as processed so they don't need to be processed later. + #VfsScanner + scanner.VFSScanner.error.notDir=Configuration {0} has a value {1} which is not exists! + scanner.DirectoryScanner.error.filters=You cannot specify both includeFilter and excludeFilter! + scanner.DirectoryScanner.error.finishing=Error finishing message + scanner.DirectoryScanner.error.getting=Error getting message + scanner.VfsScannerInfo.description=The Virtual File System scanner is used for scanning various different file systems. It presents a uniform view of the files from various different sources, such as the files on local disk, on an HTTP server, or inside a Zip archive. It can be configured to scan subdirectories of given folder recursively and it can use filter for files that be scanned or for files that should not be scanned (ie exclusion and inclusion) parameters. This is very useful for integrating Babeldoc into larger systems. An example would be reading documents placed in a directory by another application running on the computer or another computer to a shared, networked filesystem. + scanner.VFSScannerInfo.option.inDirectory =Directory to be scanned + scanner.VFSScannerInfo.option.doneDirectory=Folder that is used for storing scanned files. Note that scanned files will be removed from inDirectory + scanner.VFSScannerInfo.option.includeSubdirs=Specifies if scanning should be recursive, and include subfolders. If yes, files will be copied to doneDirectory with path relative to inDirectory. + scanner.VFSScannerInfo.option.filter=Regular expression filter. Only files that do match will be included. If not specified all files will be included + scanner.VFSScannerInfo.option.minimumFileAge=Minimum age of file in ms (attempts to guard against incomplete reads) + scanner.VFSScannerInfo.option.minimumFileDate=Start date (Format YYYY/MM/DD o YYYY/MM/DD HH:MM) to process files. This option can scanning a directory and it can ignored old files. Default value is scanner creation time. + scanner.VFSScannerInfo.option.delete=Delete all process documents from indirectory after procesed + scanner.VFSScannerInfo.option.domain=Domain of username that is used for connecting to directory {0} + scanner.VFSScannerInfo.option.username=Username that is used for connecting to directory {0} + scanner.VFSScannerInfo.option.password=Password that is used for connecting to directory {0} + scanner.001=Started |
From: paspes <pa...@us...> - 2008-01-08 17:04:29
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15342/modules/scanner/src/com/babeldoc/scanner/worker Modified Files: VFSScanner.java Log Message: VFS Scanner Event monitor active Index: VFSScanner.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/worker/VFSScanner.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** VFSScanner.java 21 Dec 2007 12:05:33 -0000 1.5 --- VFSScanner.java 8 Jan 2008 17:01:57 -0000 1.6 *************** *** 72,75 **** --- 72,77 ---- import java.util.Collection; import java.util.Date; + import java.util.GregorianCalendar; + import java.util.Iterator; import org.apache.commons.vfs.FileChangeEvent; *************** *** 77,81 **** import org.apache.commons.vfs.FileListener; import org.apache.commons.vfs.FileObject; - import org.apache.commons.vfs.FileSystem; import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.FileSystemManager; --- 79,82 ---- *************** *** 86,90 **** import org.apache.commons.vfs.auth.StaticUserAuthenticator; import org.apache.commons.vfs.impl.DefaultFileSystemConfigBuilder; ! import org.apache.commons.vfs.provider.ftp.FtpFileSystemConfigBuilder; import com.babeldoc.core.I18n; --- 87,91 ---- 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; *************** *** 109,124 **** /** Configuration options */ public static final String IN_DIR = "inDirectory"; public static final String DONE_DIR = "doneDirectory"; public static final String BUFFER_LEN = "bufferLen"; public static final String INCLUDE_SUB_DIRS = "includeSubfolders"; public static final String FILTER_FILENAME = "filter"; public static final String MINIMUM_FILE_AGE = "minimumFileAge"; - public static final String DELETE = "deleteIn"; public static final String IN_DOMAIN = "inDomain"; public static final String IN_USERNAME = "inUsername"; public static final String IN_PASSWORD = "inPassword"; public static final String OUT_DOMAIN = "outDomain"; public static final String OUT_USERNAME = "outUsername"; public static final String OUT_PASSWORD = "outPassword"; --- 110,138 ---- /** Configuration options */ public static final String IN_DIR = "inDirectory"; + public static final String DONE_DIR = "doneDirectory"; + public static final String BUFFER_LEN = "bufferLen"; + public static final String INCLUDE_SUB_DIRS = "includeSubfolders"; + public static final String FILTER_FILENAME = "filter"; + public static final String MINIMUM_FILE_AGE = "minimumFileAge"; + public static final String MINIMUM_FILE_DATE = "minimumFileDate"; + + public static final String DELETE = "deleteIn"; + public static final String IN_DOMAIN = "inDomain"; + public static final String IN_USERNAME = "inUsername"; + public static final String IN_PASSWORD = "inPassword"; + public static final String OUT_DOMAIN = "outDomain"; + public static final String OUT_USERNAME = "outUsername"; + public static final String OUT_PASSWORD = "outPassword"; *************** *** 136,144 **** private FileSystemManager fsManager; private FileSystemOptions optsIn; private FileSystemOptions optsOut; ! ! private FileSystem fs; ! private TestListener listener; /** URI to scan */ --- 150,163 ---- private FileSystemManager fsManager; + private FileSystemOptions optsIn; + private FileSystemOptions optsOut; ! ! /* Monitor that add FileObjects to Queue */ ! private DefaultFileMonitor fm; ! ! /* Queue of FileObjects to process */ ! private VFSQueue queue; /** URI to scan */ *************** *** 148,154 **** private FileObject doneDirectory; - /** flag to include sub directories */ - private boolean includeSubDirs = false; - /** flag to delete procesed files */ private boolean delete = true; --- 167,170 ---- *************** *** 159,162 **** --- 175,184 ---- */ private long minimumFileAge = 0; + + /** + * Minimum time in ms since file was last modified. Attempts to guard + * against incomplete reads when the writer of the file is "slow". + */ + private Date minimumFileDate = null; /** *************** *** 169,173 **** public void doScan() throws ScannerException { try { ! processVFS(this.getInDirectory()); } catch (FileSystemException e) { // TODO Auto-generated catch block --- 191,195 ---- public void doScan() throws ScannerException { try { ! processVFS(queue.getQueue()); } catch (FileSystemException e) { // TODO Auto-generated catch block *************** *** 185,217 **** try { fsManager = VFS.getManager(); ! ! // Create connection options (autentication) ! StaticUserAuthenticator authIn = new StaticUserAuthenticator(this.getInfo().getStrValue(IN_DOMAIN),this.getInfo().getStrValue(IN_USERNAME), this.getInfo().getStrValue(IN_PASSWORD)); ! optsIn = new FileSystemOptions(); ! DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(optsIn, authIn); ! ! StaticUserAuthenticator authOut = new StaticUserAuthenticator(this.getInfo().getStrValue(OUT_DOMAIN),this.getInfo().getStrValue(OUT_USERNAME), this.getInfo().getStrValue(OUT_PASSWORD)); ! optsOut = new FileSystemOptions(); ! DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(optsOut, authOut); ! ! ! //Create in directory setInDirectory(this.getInfo().getStrValue(IN_DIR)); if (!getInDirectory().exists() || !getInDirectory().isReadable() || getInDirectory().getType() != FileType.FOLDER) { ! throw new ScannerConfigurationException(I18n.get( ! "scanner.VFSScanner.error.notDir", IN_DIR, ! getInDirectory()), null); } - - fs= getInDirectory().getParent().getFileSystem(); - listener = new TestListener(getInDirectory()); - fs.addListener(getInDirectory(), listener); - listener.addCreateEvent(); - listener.addChangeEvent(); - ! //Create out directory setDoneDirectory(this.getInfo().getStrValue(DONE_DIR)); --- 207,239 ---- try { fsManager = VFS.getManager(); ! ! // Create connection options (autentication) ! StaticUserAuthenticator authIn = new StaticUserAuthenticator(this ! .getInfo().getStrValue(IN_DOMAIN), this.getInfo() ! .getStrValue(IN_USERNAME), this.getInfo().getStrValue( ! IN_PASSWORD)); ! optsIn = new FileSystemOptions(); ! DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator( ! optsIn, authIn); ! ! StaticUserAuthenticator authOut = new StaticUserAuthenticator(this ! .getInfo().getStrValue(OUT_DOMAIN), this.getInfo() ! .getStrValue(OUT_USERNAME), this.getInfo().getStrValue( ! OUT_PASSWORD)); ! optsOut = new FileSystemOptions(); ! DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator( ! optsOut, authOut); ! ! // Create in directory setInDirectory(this.getInfo().getStrValue(IN_DIR)); if (!getInDirectory().exists() || !getInDirectory().isReadable() || getInDirectory().getType() != FileType.FOLDER) { ! String name = I18n.get("scanner.VFSScanner.error.notDir", ! IN_DIR, getInDirectory().toString()); ! throw new ScannerConfigurationException(name, null); } ! // Create out directory setDoneDirectory(this.getInfo().getStrValue(DONE_DIR)); *************** *** 224,244 **** } } else { ! getLog().logInfo("Done directory not specified. All processed file will be deleted!!!"); setDoneDirectory(null); } ! //Other configuration options ! setIncludeSubDirs("true".equals(this.getInfo().getStrValue(INCLUDE_SUB_DIRS))); ! ! setDeleteProcesedFiles("true".equals(this.getInfo().getStrValue(DELETE))); ! setMinimumFileAge(this.getInfo().getIntValue(MINIMUM_FILE_AGE)); - if (getMinimumFileAge() > 0) { ! LogService.getInstance().logInfo("Minimum file age: " + getMinimumFileAge() + " ms"); } ! // Add filename filter if exist addFilter(FILTER_FILENAME); } catch (FileSystemException e1) { // TODO Auto-generated catch block --- 246,286 ---- } } else { ! getLog() ! .logInfo( ! "Done directory not specified. All processed file will be deleted!!!"); setDoneDirectory(null); } ! // Other configuration options ! setDeleteProcesedFiles("true".equals(this.getInfo().getStrValue( ! DELETE))); setMinimumFileAge(this.getInfo().getIntValue(MINIMUM_FILE_AGE)); if (getMinimumFileAge() > 0) { ! LogService.getInstance().logInfo( ! "Minimum file age: " + getMinimumFileAge() + " ms"); } ! ! try{ ! setMinimumFileDate(this.getInfo().getStrValue(MINIMUM_FILE_DATE)); ! if (getMinimumFileDate() !=null) { ! LogService.getInstance().logInfo("Minimum file date: " + getMinimumFileDate()); ! } ! }catch (Exception e){ ! getLog().logInfo("Invalid "+MINIMUM_FILE_DATE+":" + this.getInfo().getStrValue(MINIMUM_FILE_DATE)); ! } ! // Add filename filter if exist addFilter(FILTER_FILENAME); + + // Monitor event + queue = new VFSQueue(); + initializeQueue(getInDirectory(),"true".equals(this.getInfo().getStrValue(INCLUDE_SUB_DIRS))); + + fm = new DefaultFileMonitor(new CustomFileListener(queue, log)); + fm.setRecursive("true".equals(this.getInfo().getStrValue( + INCLUDE_SUB_DIRS))); + fm.addFile(getInDirectory()); + fm.start(); + } catch (FileSystemException e1) { // TODO Auto-generated catch block *************** *** 246,249 **** --- 288,312 ---- } } + + /** + * Load into queue existing files + * @param recursive + */ + private void initializeQueue(FileObject dir ,boolean recursive) throws FileSystemException{ + dir.refresh(); + FileObject[] files = getInDirectory().getChildren(); + + for (int i = 0; i < files.length; i++) { + if (files[i].getType() == FileType.FOLDER && recursive) { + initializeQueue(files[i],recursive); + } + else { + if (acceptFile(files[i])) { // File filter + queue.addQueue(files[i]); + } + } + } + + } /** *************** *** 272,282 **** if (getDoneDirectory() != null) { ! String path = file.getParent().getURL().toString(); int index = path.length() + 1; ! //String name = path.substring(index);// ! ! FileObject outDir = fsManager.resolveFile(getDoneDirectory()+ ! path.substring(getInDirectory().getURL().toString().length(),index - 1)); // create out dir if not exist --- 335,345 ---- if (getDoneDirectory() != null) { ! String path = file.getParent().getURL().toString(); int index = path.length() + 1; ! ! FileObject outDir = fsManager.resolveFile(getDoneDirectory() ! + path.substring(getInDirectory().getURL().toString() ! .length(), index - 1)); // create out dir if not exist *************** *** 286,290 **** // create file with the same name (path) in out dir ! FileObject outfile = fsManager.resolveFile(outDir.getName().getURI() + File.separatorChar + file.getName().getBaseName()); --- 349,354 ---- // create file with the same name (path) in out dir ! FileObject outfile = fsManager.resolveFile(outDir.getName() ! .getURI() + File.separatorChar + file.getName().getBaseName()); *************** *** 293,307 **** outfile.delete(); } ! ! FileTypeSelector filter = new FileTypeSelector(FileType.FILE); outfile.createFile(); outfile.copyFrom(file, filter); outfile.close(); - // rename file - /* - * if(!file.canRenameTo(outfile)) throw new - * ScannerException(I18n.get("scanner.VFSScanner.error.finishing")); - * - */ } --- 357,365 ---- outfile.delete(); } ! ! FileTypeSelector filter = new FileTypeSelector(FileType.FILE); outfile.createFile(); outfile.copyFrom(file, filter); outfile.close(); } *************** *** 310,317 **** .get("scanner.VFSScanner.error.finishing"), e); } ! ! if(getDeleteProcesedFiles()){ if (!file.delete()) { ! throw new ScannerException(I18n.get("scanner.VFSScanner.error.finishing")+" can't delete procesed file " + file.getName().getBaseName(), null); } return; --- 368,378 ---- .get("scanner.VFSScanner.error.finishing"), e); } ! ! if (getDeleteProcesedFiles()) { if (!file.delete()) { ! throw new ScannerException(I18n ! .get("scanner.VFSScanner.error.finishing") ! + " can't delete procesed file " ! + file.getName().getBaseName(), null); } return; *************** *** 319,323 **** } ! /** * Process all files in this directory --- 380,384 ---- } ! /** * Process all files in this directory *************** *** 327,372 **** * @throws FileSystemException */ ! private void processVFS(FileObject dir) throws FileSystemException { ! dir.refresh(); ! // inner class that implements FileFilter interface ! /*org.apache.commons.vfs.FileFilter filter = new org.apache.commons.vfs.FileFilter() { ! public boolean accept(FileSelectInfo currentInfo) { ! FileObject currentFile = currentInfo.getFile(); try { ! if (currentFile.getType() == FileType.FOLDER) { ! // if iclude subDirs if it is scpecified ! return isIncludeSubDirs(); ! } else { ! // if file fulfils configured criteria ! return acceptFile(currentFile); ! } ! } catch (FileSystemException e) { ! // TODO Auto-generated catch block ! e.printStackTrace(); ! return false; ! } ! } ! }; ! */ ! ! ! FileObject[] files = dir.getChildren(); ! ! for (int i = 0; i < files.length; i++) { ! if (files[i].getType() == FileType.FOLDER) { ! if(isIncludeSubDirs()){ //Directory filter ! // add files from this folder ! processVFS(files[i]); ! } ! } else { ! if(acceptFile(files[i])){ //File filter ! // create scan document and queue it! ! try { ! processFile(files[i]); ! moveFile(files[i]); ! } catch (Exception ex) { ! log.logError( ! "Error getting document from file " + files[i], ex); ! } } } --- 388,403 ---- * @throws FileSystemException */ ! private void processVFS(ArrayList alQueue) throws FileSystemException { ! Iterator it = alQueue.iterator(); ! while (it.hasNext()) { ! FileObject file = (FileObject) it.next(); ! if (acceptFile(file)) { // File filter ! // create scan document and queue it! try { ! processFile(file); ! moveFile(file); ! } catch (Exception ex) { ! log.logError("Error getting document from file " ! + file.getName().toString(), ex); } } *************** *** 431,441 **** // Check name filter first, and then age. if (acceptEntry(FILTER_FILENAME, file.getName().toString())) { ! if (getMinimumFileAge() <= getFileAge(file)) { ! return true; ! } else { ! if (log.isDebugEnabled()) ! log.logDebug("Ignoring " + file.getName().getPathDecoded() ! + " (age " + getFileAge(file) + " < " ! + getMinimumFileAge() + ")"); } // Potentially add additional checks here. --- 462,476 ---- // Check name filter first, and then age. if (acceptEntry(FILTER_FILENAME, file.getName().toString())) { ! long modificationDate = file.getContent().getLastModifiedTime(); ! if(getMinimumFileDate().getTime() >0 && getMinimumFileDate().getTime() <= modificationDate){ ! if (getMinimumFileAge() <= getFileAge(file)) { ! return true; ! } ! } ! ! if (log.isInfoEnabled()){ ! log.logInfo("Ignoring " + file.getName().getPathDecoded() ! + " (age " + getFileAge(file) + " < "+ getMinimumFileAge() + ") or" ! + " (modification date " + new Date(modificationDate).toString() + " < " + getMinimumFileDate().toString() +")" ); } // Potentially add additional checks here. *************** *** 443,447 **** return false; } - /** --- 478,481 ---- *************** *** 463,468 **** public void setInDirectory(String inDirectory) throws FileSystemException { ! //FtpFileSystemConfigBuilder.getInstance().setPassiveMode(optsIn, true); ! this.inDirectory = fsManager.resolveFile(inDirectory,optsIn); } --- 497,503 ---- public void setInDirectory(String inDirectory) throws FileSystemException { ! // FtpFileSystemConfigBuilder.getInstance().setPassiveMode(optsIn, ! // true); ! this.inDirectory = fsManager.resolveFile(inDirectory, optsIn); } *************** *** 473,487 **** public void setDoneDirectory(String doneDirectory) throws FileSystemException { ! this.doneDirectory = fsManager.resolveFile(doneDirectory,optsOut); ! } ! ! public boolean isIncludeSubDirs() { ! return includeSubDirs; } - public void setIncludeSubDirs(boolean includeSubDirs) { - this.includeSubDirs = includeSubDirs; - } - public boolean getDeleteProcesedFiles() { return delete; --- 508,514 ---- public void setDoneDirectory(String doneDirectory) throws FileSystemException { ! this.doneDirectory = fsManager.resolveFile(doneDirectory, optsOut); } public boolean getDeleteProcesedFiles() { return delete; *************** *** 491,496 **** this.delete = delete; } - - public long getMinimumFileAge() { --- 518,521 ---- *************** *** 503,506 **** --- 528,553 ---- this.minimumFileAge = minimumFileAge; } + + public Date getMinimumFileDate() { + return minimumFileDate; + } + + public void setMinimumFileDate(String tmpDate) throws Exception{ + if(tmpDate!=null){ + int hour = 0; + int min = 0; + int yyyy = new Integer(tmpDate.substring(0,4)).intValue(); + int mm = new Integer(tmpDate.substring(5, 7)).intValue()-1; + int dd = new Integer(tmpDate.substring(8, 10)).intValue(); + + if(tmpDate.length()>10){ + hour = new Integer(tmpDate.substring(11, 13)).intValue(); + min = new Integer(tmpDate.substring(14)).intValue(); + } + GregorianCalendar c = new GregorianCalendar(); + c.set(yyyy, mm, dd,hour,min); + minimumFileDate = c.getTime(); + } + } } *************** *** 553,676 **** IConfigOptionType.INTEGER, null, false, I18n .get("scanner.VFSScannerInfo.option.minimumFileAge"))); options.add(new ConfigOption(VFSScanner.DELETE, IConfigOptionType.BOOLEAN, "true", false, I18n .get("scanner.VFSScannerInfo.option.delete"))); ! options.add(new ConfigOption(VFSScanner.IN_DOMAIN, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.domain",VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.IN_USERNAME, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.username",VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.IN_PASSWORD, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.password",VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_DOMAIN, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.domain",VFSScanner.DONE_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_USERNAME, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.username",VFSScanner.DONE_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_PASSWORD, ! IConfigOptionType.STRING, null, false, I18n ! .get("scanner.VFSScannerInfo.option.password",VFSScanner.DONE_DIR))); ! ! return options; } } ! ! /*** ! * A test listener. ! */ ! class TestListener implements FileListener ! { ! private final FileObject file; ! private final ArrayList events = new ArrayList(); ! private static final Object CREATE = "create"; ! private static final Object DELETE = "delete"; ! private static final Object CHANGED = "changed"; ! ! public TestListener(final FileObject file) ! { ! this.file = file; ! } ! ! /*** ! * Called when a file is created. ! */ ! public void fileCreated(final FileChangeEvent event) ! { ! System.out.println("fileCreated"); ! /* assertTrue("Unexpected create event", events.size() > 0); ! assertSame("Expecting a create event", CREATE, events.remove(0)); ! assertSame(file, event.getFile()); ! try ! { ! assertTrue(file.exists()); ! } ! catch (FileSystemException e) ! { ! fail(); ! } ! */ ! } ! ! /*** ! * Called when a file is deleted. ! */ ! public void fileDeleted(final FileChangeEvent event) ! { ! System.out.println("fileDeleted"); ! /* assertTrue("Unexpected delete event", events.size() > 0); ! assertSame("Expecting a delete event", DELETE, events.remove(0)); ! assertSame(file, event.getFile()); ! try ! { ! assertTrue(!file.exists()); ! } ! catch (FileSystemException e) ! { ! fail(); ! } ! */ ! } ! ! public void fileChanged(FileChangeEvent event) throws Exception ! { ! System.out.println("fileChanged"); ! /*assertTrue("Unexpected changed event", events.size() > 0); ! assertSame("Expecting a changed event", CHANGED, events.remove(0)); ! assertSame(file, event.getFile()); ! try ! { ! assertTrue(!file.exists()); ! } ! catch (FileSystemException e) ! { ! fail(); ! } ! */ ! } ! ! public void addCreateEvent() ! { ! events.add(CREATE); ! } ! ! public void addChangeEvent() ! { ! events.add(CHANGED); ! } ! ! public void assertFinished() ! { ! //assertEquals("Missing event", 0, events.size()); ! } } \ No newline at end of file --- 600,794 ---- IConfigOptionType.INTEGER, null, false, I18n .get("scanner.VFSScannerInfo.option.minimumFileAge"))); + + //Default minium date (is creating date) + GregorianCalendar g = new GregorianCalendar(); + int min = g.get(GregorianCalendar.MINUTE); + int hor = g.get(GregorianCalendar.HOUR_OF_DAY); + int d = g.get(GregorianCalendar.DATE); + int m = g.get(GregorianCalendar.MONTH)+1; + int y = g.get(GregorianCalendar.YEAR); + String defaultDate = ""+y; + + if(m<10)defaultDate += "/0"+m; + else defaultDate += "/"+m; + + if(d<10) defaultDate = "/0"+d; + else defaultDate = "/"+d; + + if(hor<10) defaultDate += " 0"+hor; + else defaultDate += " "+hor; + + if(min<10) defaultDate += ":0"+min; + else defaultDate += ":"+min; + + g.toString(); + options.add(new ConfigOption(VFSScanner.MINIMUM_FILE_DATE, + IConfigOptionType.STRING,defaultDate, false, I18n + .get("scanner.VFSScannerInfo.option.minimumFileDate"))); options.add(new ConfigOption(VFSScanner.DELETE, IConfigOptionType.BOOLEAN, "true", false, I18n .get("scanner.VFSScannerInfo.option.delete"))); ! options.add(new ConfigOption(VFSScanner.IN_DOMAIN, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.domain", ! VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.IN_USERNAME, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.username", ! VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.IN_PASSWORD, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.password", ! VFSScanner.IN_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_DOMAIN, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.domain", ! VFSScanner.DONE_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_USERNAME, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.username", ! VFSScanner.DONE_DIR))); ! options.add(new ConfigOption(VFSScanner.OUT_PASSWORD, ! IConfigOptionType.STRING, null, false, I18n.get( ! "scanner.VFSScannerInfo.option.password", ! VFSScanner.DONE_DIR))); ! return options; } } ! ! /** ! * VFSQueue is a synchronized queue ! * ! * @author paspes ! * ! */ ! class VFSQueue { ! private static int OPERATION_ADD = 1; ! ! private static int OPERATION_GET = 2; ! ! private ArrayList alQueue; ! ! public VFSQueue() { ! alQueue = new ArrayList(); ! } ! ! /** ! * Get FileObject queue ! * ! * @return Arraylist with FileObjects ! */ ! public ArrayList getQueue() { ! return queue(OPERATION_GET, null); ! } ! ! /** ! * Add FileObject to queue ! * ! * @param file ! * FileObject to add ! */ ! public void addQueue(FileObject file) { ! queue(OPERATION_ADD, file); ! } ! ! /** ! * Method to add and remove FileObjects to queue ! * ! * @param operation ! * (add fileObject or get queue) ! * @param fileObject ! * to add ! * @return queue of FileObjects ! */ ! private synchronized ArrayList queue(int operation, FileObject file) { ! if (operation == OPERATION_ADD) { ! alQueue.add(file); ! return alQueue; ! } ! if (operation == OPERATION_GET) { ! ArrayList alReturn = (ArrayList) alQueue.clone(); ! alQueue.clear(); ! return alReturn; ! } ! return null; ! ! } ! } ! ! /** ! * CustomFileListener send FileObjects to VFSScanner ! * ! * @author paspes ! * ! */ ! class CustomFileListener implements FileListener { ! ! private VFSQueue queue; ! ! private LogService log; ! ! public CustomFileListener(VFSQueue queue, LogService log) { ! this.queue = queue; ! this.log = log; ! } ! ! /** ! * Called when a file is created. ! */ ! public void fileCreated(final FileChangeEvent event) { ! if (log.isDebugEnabled()) { ! log.logDebug("fileCreated into VSFScanner: " ! + event.getFile().getName()); ! } ! queue.addQueue(event.getFile()); ! /* ! * assertTrue("Unexpected create event", events.size() > 0); ! * assertSame("Expecting a create event", CREATE, events.remove(0)); ! * assertSame(file, event.getFile()); try { assertTrue(file.exists()); } ! * catch (FileSystemException e) { fail(); } ! */ ! } ! ! /** ! * Called when a file is deleted. ! */ ! public void fileDeleted(final FileChangeEvent event) { ! if (log.isDebugEnabled()) { ! log.logDebug("fileDeleted into VSFScanner: " ! + event.getFile().getName()); ! } ! /* ! * assertTrue("Unexpected delete event", events.size() > 0); ! * assertSame("Expecting a delete event", DELETE, events.remove(0)); ! * assertSame(file, event.getFile()); try { assertTrue(!file.exists()); } ! * catch (FileSystemException e) { fail(); } ! */ ! } ! ! /** ! * Called when a file is changed. ! */ ! public void fileChanged(FileChangeEvent event) throws Exception { ! if (log.isDebugEnabled()) { ! log.logDebug("fileChanged into VSFScanner: " ! + event.getFile().getName()); ! } ! queue.addQueue(event.getFile()); ! /* ! * assertTrue("Unexpected changed event", events.size() > 0); ! * assertSame("Expecting a changed event", CHANGED, events.remove(0)); ! * assertSame(file, event.getFile()); try { assertTrue(!file.exists()); } ! * catch (FileSystemException e) { fail(); } ! */ ! } ! } \ No newline at end of file |
From: paspes <pa...@us...> - 2008-01-07 13:02:27
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9705/modules/scanner/src/com/babeldoc/scanner Modified Files: Scanner.java Log Message: Format error message Index: Scanner.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/Scanner.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Scanner.java 3 Dec 2007 16:37:18 -0000 1.35 --- Scanner.java 7 Jan 2008 13:02:27 -0000 1.36 *************** *** 278,282 **** } catch (Exception e) { getLog().logError( ! "Error starting scanner worker " + sw[i].getName(), e); sw[i].stop(); --- 278,282 ---- } catch (Exception e) { getLog().logError( ! "Error starting scanner worker " + sw[i].getName() + " " , e); sw[i].stop(); |
From: paspes <pa...@us...> - 2008-01-07 10:02:34
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28777/modules/init/src/com/babeldoc/init Modified Files: Main.java Log Message: Load lib files to BABELDOC_USER/lib directory into the classpath Index: Main.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/Main.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Main.java 4 Jan 2008 13:47:05 -0000 1.10 --- Main.java 7 Jan 2008 09:36:59 -0000 1.11 *************** *** 84,87 **** --- 84,88 ---- * applications. This class loads all the library files in the * %BABELDOC_HOME/lib directory into the classpath. + * %BABELDOC_USER/lib directory into the classpath. */ public class Main { *************** *** 177,181 **** /** * The starting point for commandline Babeldoc. This then checks the ! * BABELDOC_HOME variable. Gets all the jar and zip files. Proceed with * this. * --- 178,182 ---- /** * The starting point for commandline Babeldoc. This then checks the ! * BABELDOC_HOME i BABELDOC_USER variables. Gets all the jar and zip files. Proceed with * this. * *************** *** 185,188 **** --- 186,194 ---- public static void main(String[] args) { String home = System.getProperty(BABELDOC_HOME); + String user = System.getProperty(BABELDOC_USER); + + File[] filesUser = null; + File[] filesHome = null; + File[] files = null; if (home != null) { *************** *** 190,198 **** if (fileHome.exists() && fileHome.isDirectory()) { ! runBabeldocMain(getLibraryFiles(home), args); ! return; } } System.err.println("Babeldoc home: " + home + " is invalid"); --- 196,222 ---- if (fileHome.exists() && fileHome.isDirectory()) { ! filesHome = getLibraryFiles(home); ! } ! } ! if (user != null) { ! File fileUser = new File(user); ! if (fileUser.exists() && fileUser.isDirectory()) { ! filesUser = getLibraryFiles(user); } } + + files = copyTo(filesHome, filesUser); + /* + for(int i=0; i<files.length;i++){ + System.out.println(files[i].getAbsoluteFile()); + } + */ + + if(files!=null){ + runBabeldocMain(files, args); + + return; + } System.err.println("Babeldoc home: " + home + " is invalid"); *************** *** 330,334 **** private static File[] copyTo(File[] files1, File[] files2) { ! if (files1 != null) { return files2; } --- 354,358 ---- private static File[] copyTo(File[] files1, File[] files2) { ! if (files1 == null) { return files2; } |
From: paspes <pa...@us...> - 2008-01-04 13:47:05
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16065/modules/init/src/com/babeldoc/init Modified Files: Main.java Log Message: NO VA. intentant carregar babeldoc.user al inici = que el babeldoc.home Index: Main.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/Main.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Main.java 10 Aug 2004 10:49:06 -0000 1.9 --- Main.java 4 Jan 2008 13:47:05 -0000 1.10 *************** *** 80,333 **** /** ! * Initial entry point for Babeldoc using a custom class loader to avoid the very ! * large classpaths that need to set for reasonably sized Java applications. This ! * class loads all the library files in the %BABELDOC_HOME/lib directory into the ! * classpath. */ public class Main { - - // private static ClassLoader loader; - public static final String BABELDOC_HOME = "babeldoc.home"; - public static final String BABELDOC_CP = "babeldoc.cp"; - public static final String BABELDOC_SCANDIR = "babeldoc.scandir"; - public static final String BABELDOC_MAIN = "com.babeldoc.core.Main"; - public static final String BABELDOC_CLASSLOADER = "babeldoc.classloader"; ! public static final String ADAPTIVE = "adaptive"; ! public static final String LIB = "lib"; ! public static final String DOT_JAR = ".jar"; ! public static final String DOT_ZIP = ".zip"; ! public static final String MAIN = "main"; ! public static final String INTERRUPT = "interrupt"; ! private Object babelDocThread; ! /** ! * Creates a new <code>Main</code> instance. ! * This is usefull for classes which need to programatically launch and stop ! * Babeldoc. ! * ! */ ! public Main(String[] args) { ! String home = System.getProperty(BABELDOC_HOME); ! if (home != null) { ! File fileHome = new File(home); ! ! if (fileHome.exists() && fileHome.isDirectory()) { ! File[] files = getLibraryFiles(home); ! if (files != null) { ! try { ! ClassLoader loader = setupClassLoader(files); ! Class main = loader.loadClass(BABELDOC_MAIN); ! // Constructor[] constructors = main.getConstructors(); ! Constructor constructor = main.getConstructor(new Class[]{String[].class}); ! babelDocThread = constructor.newInstance(new Object[]{args}); ! } ! catch (Throwable e) { ! System.err.println(e); ! e.printStackTrace(); ! } ! return; } - } - } ! System.err.println("Babeldoc home: " + home + " is invalid"); ! } ! public void interrupt() { ! if (babelDocThread != null) { ! try { ! // invoke the interrupt() method ! Method method = babelDocThread.getClass().getDeclaredMethod(INTERRUPT, null); ! method.invoke(babelDocThread,null); ! } ! catch (Throwable e) { ! System.err.println(e); ! } ! } ! } ! /** ! * The starting point for commandline Babeldoc. This then ! * checks the BABELDOC_HOME variable. Gets all the jar and ! * zip files. Proceed with this. ! * ! * @param args command line arguments. Set in script: babeldoc.sh/.bat ! */ ! public static void main(String[] args) { ! String home = System.getProperty(BABELDOC_HOME); ! if (home != null) { ! File fileHome = new File(home); ! if (fileHome.exists() && fileHome.isDirectory()) { ! runBabeldocMain(getLibraryFiles(home), args); ! return; ! } } ! System.err.println("Babeldoc home: " + home + " is invalid"); ! } ! /** ! * Get the urls for all the jars and zips in the library directory ! * ! * @param home path to the $BABELDOC_HOME directory ! * ! * @return list of zips and jars from 'lib' subdirectory ! */ ! private static File[] getLibraryFiles(String home) { ! File fileLib = new File(home, LIB); ! if (fileLib.exists() && fileLib.isDirectory()) { ! System.setProperty(BABELDOC_SCANDIR, fileLib.getAbsolutePath()); ! File[] libs = fileLib.listFiles(new FilenameFilter() { ! public boolean accept(File dir, String name) { ! if (name.endsWith(DOT_JAR) || name.endsWith(DOT_ZIP)) { ! return true; ! } else { ! return false; } ! } ! }); ! return libs; ! } else { ! System.err.println("The directory: " + fileLib + ! " does not exist or is not a directory. Babeldoc cannot find its library files and is quitting now."); } ! return null; ! } ! /** ! * Create a ClassLoader with the list of jars and zips and add them to the ! * classpath. Then call into the CORE Main method. ! * ! * @param files all the zip and the jar files ! * @param args command line arguments ! */ ! private static void runBabeldocMain(File[] files, String[] args) { ! if (files != null) { ! ClassLoader loader = setupClassLoader(files); ! try { ! Class main = loader.loadClass(BABELDOC_MAIN); ! Method method = main.getDeclaredMethod(MAIN, new Class[]{String[].class}); ! Object[] methodArgs = new Object[] { args }; ! ! method.invoke(main, methodArgs); ! return; ! ! } ! catch (java.lang.reflect.InvocationTargetException e) { ! System.err.println(e); ! } ! catch (java.lang.IllegalAccessException e) { ! System.err.println(e); ! } ! catch (java.lang.NoSuchMethodException e) { ! System.err.println(e); ! } ! catch (ClassNotFoundException e) { ! System.err.println(e); ! } } - } ! /** ! * Setup the particular classloader. There are two: Adaptive ! * and URLClassLoader. Configure either one ! * with the library files. ! * <br/> ! * <strong>NOTE</strong> At the end of the method, this new ! * classloader is applied to the current thread. ! * ! * @param inFiles files discovered in the lib directory ! * @return the classloader with all the library files added. ! */ ! private static ClassLoader setupClassLoader(File[] inFiles) { ! File [] files = incorporateClassPath(inFiles); ! ClassLoader loader = null; ! if(ADAPTIVE.equals(System.getProperty(BABELDOC_CLASSLOADER))) { ! Vector vec = new Vector(files.length); ! for (int i = 0; i < files.length; i++) { ! vec.add(files[i]); ! } ! loader = new AdaptiveClassLoader(vec, false); ! } else { ! URL [] urls = new URL[files.length]; ! for (int i = 0; i < files.length; i++) { ! try { ! urls[i] = files[i].toURL(); ! } catch (MalformedURLException e) { ! System.err.println(e); } - } - loader = new URLClassLoader(urls); } - Thread.currentThread().setContextClassLoader(loader); - return loader; - } ! /** ! * Load those classpath entries into the grand list of ! * files to place in the classpath ! * ! * @param files ! * @return ! */ ! private static File[] incorporateClassPath(File[] files) { ! File [] cpFiles = getClasspathFiles(); ! if(cpFiles!=null&&cpFiles.length>0) { ! File [] newFiles = new File[cpFiles.length+files.length]; ! int j = 0; ! for (int i = 0; i < files.length; i++) { ! newFiles[j++] = files[i]; ! } ! for(int i = 0; i < cpFiles.length; i++) { ! newFiles[j++] = cpFiles[i]; ! } ! files = newFiles; } - return files; - } ! /** ! * Get the files from the classpath - this is a hack to get around the ! * hidden classpath issue when running -jar (which is how babeldoc runs) ! * ! * @return array of files representing the classpath ! */ ! private static File[] getClasspathFiles() { ! String cp = System.getProperty(BABELDOC_CP); ! if(cp!=null) { ! StringTokenizer st = new StringTokenizer(cp, File.pathSeparator); ! Collection files = new ArrayList(); ! while(st.hasMoreTokens()) { ! String token = st.nextToken(); ! File file = new File(token); ! if (file.exists() && ( ! (token.endsWith(DOT_JAR)) || ! (token.endsWith(DOT_ZIP)) || ! (file.isDirectory()) ) ) { ! //System.out.println("Adding: "+token); ! files.add(file); } else { ! //System.out.println("Ignoring : "+token); } - } - return (File[])files.toArray(new File[0]); - } else { - return null; } - } } --- 80,379 ---- /** ! * Initial entry point for Babeldoc using a custom class loader to avoid the ! * very large classpaths that need to set for reasonably sized Java ! * applications. This class loads all the library files in the ! * %BABELDOC_HOME/lib directory into the classpath. */ public class Main { ! // private static ClassLoader loader; ! public static final String BABELDOC_HOME = "babeldoc.home"; ! public static final String BABELDOC_USER = "babeldoc.user"; ! public static final String BABELDOC_CP = "babeldoc.cp"; ! public static final String BABELDOC_SCANDIR = "babeldoc.scandir"; ! public static final String BABELDOC_MAIN = "com.babeldoc.core.Main"; ! ! public static final String BABELDOC_CLASSLOADER = "babeldoc.classloader"; ! ! public static final String ADAPTIVE = "adaptive"; ! ! public static final String LIB = "lib"; ! ! public static final String DOT_JAR = ".jar"; ! ! public static final String DOT_ZIP = ".zip"; ! ! public static final String MAIN = "main"; ! ! public static final String INTERRUPT = "interrupt"; ! ! private Object babelDocThread; ! ! /** ! * Creates a new <code>Main</code> instance. This is usefull for classes ! * which need to programatically launch and stop Babeldoc. ! * ! */ ! public Main(String[] args) { ! String home = System.getProperty(BABELDOC_HOME); ! String user = System.getProperty(BABELDOC_USER); ! ! File[] filesUser = null; ! File[] filesHome = null; ! File[] files = null; ! ! if (user != null) { ! File fileUser = new File(user); ! if (fileUser.exists() && fileUser.isDirectory()) { ! filesUser = getLibraryFiles(user); ! } } ! if (home != null) { ! File fileHome = new File(home); ! if (fileHome.exists() && fileHome.isDirectory()) { ! filesHome = getLibraryFiles(home); ! } ! } ! files = copyTo(filesHome, filesUser); ! if (files != null) { ! try { ! ClassLoader loader = setupClassLoader(files); ! Class main = loader.loadClass(BABELDOC_MAIN); ! // Constructor[] constructors = main.getConstructors(); ! Constructor constructor = main ! .getConstructor(new Class[] { String[].class }); ! babelDocThread = constructor.newInstance(new Object[] { args }); ! } catch (Throwable e) { ! System.err.println(e); ! e.printStackTrace(); ! } ! return; ! } ! System.err.println("Babeldoc home: " + home + " is invalid"); ! } ! public void interrupt() { ! if (babelDocThread != null) { ! try { ! // invoke the interrupt() method ! Method method = babelDocThread.getClass().getDeclaredMethod( ! INTERRUPT, null); ! method.invoke(babelDocThread, null); ! } catch (Throwable e) { ! System.err.println(e); ! } ! } } ! /** ! * The starting point for commandline Babeldoc. This then checks the ! * BABELDOC_HOME variable. Gets all the jar and zip files. Proceed with ! * this. ! * ! * @param args ! * command line arguments. Set in script: babeldoc.sh/.bat ! */ ! public static void main(String[] args) { ! String home = System.getProperty(BABELDOC_HOME); ! if (home != null) { ! File fileHome = new File(home); ! if (fileHome.exists() && fileHome.isDirectory()) { ! runBabeldocMain(getLibraryFiles(home), args); ! return; } ! } ! System.err.println("Babeldoc home: " + home + " is invalid"); } ! /** ! * Get the urls for all the jars and zips in the library directory ! * ! * @param home ! * path to the $BABELDOC_HOME directory ! * ! * @return list of zips and jars from 'lib' subdirectory ! */ ! private static File[] getLibraryFiles(String home) { ! File fileLib = new File(home, LIB); ! if (fileLib.exists() && fileLib.isDirectory()) { ! System.setProperty(BABELDOC_SCANDIR, fileLib.getAbsolutePath()); ! File[] libs = fileLib.listFiles(new FilenameFilter() { ! public boolean accept(File dir, String name) { ! if (name.endsWith(DOT_JAR) || name.endsWith(DOT_ZIP)) { ! return true; ! } else { ! return false; ! } ! } ! }); ! return libs; ! } else { ! System.err ! .println("The directory: " ! + fileLib ! + " does not exist or is not a directory. Babeldoc cannot find its library files and is quitting now."); ! } ! ! return null; } ! /** ! * Create a ClassLoader with the list of jars and zips and add them to the ! * classpath. Then call into the CORE Main method. ! * ! * @param files ! * all the zip and the jar files ! * @param args ! * command line arguments ! */ ! private static void runBabeldocMain(File[] files, String[] args) { ! if (files != null) { ! ClassLoader loader = setupClassLoader(files); ! try { ! Class main = loader.loadClass(BABELDOC_MAIN); ! Method method = main.getDeclaredMethod(MAIN, ! new Class[] { String[].class }); ! ! Object[] methodArgs = new Object[] { args }; ! ! method.invoke(main, methodArgs); ! return; ! ! } catch (java.lang.reflect.InvocationTargetException e) { ! System.err.println(e); ! } catch (java.lang.IllegalAccessException e) { ! System.err.println(e); ! } catch (java.lang.NoSuchMethodException e) { ! System.err.println(e); ! } catch (ClassNotFoundException e) { ! System.err.println(e); ! } } } ! /** ! * Setup the particular classloader. There are two: Adaptive and ! * URLClassLoader. Configure either one with the library files. <br/> ! * <strong>NOTE</strong> At the end of the method, this new classloader is ! * applied to the current thread. ! * ! * @param inFiles ! * files discovered in the lib directory ! * @return the classloader with all the library files added. ! */ ! private static ClassLoader setupClassLoader(File[] inFiles) { ! File[] files = incorporateClassPath(inFiles); ! ClassLoader loader = null; ! if (ADAPTIVE.equals(System.getProperty(BABELDOC_CLASSLOADER))) { ! Vector vec = new Vector(files.length); ! for (int i = 0; i < files.length; i++) { ! vec.add(files[i]); ! } ! loader = new AdaptiveClassLoader(vec, false); ! } else { ! URL[] urls = new URL[files.length]; ! for (int i = 0; i < files.length; i++) { ! try { ! urls[i] = files[i].toURL(); ! } catch (MalformedURLException e) { ! System.err.println(e); ! } ! } ! loader = new URLClassLoader(urls); ! } ! Thread.currentThread().setContextClassLoader(loader); ! return loader; } ! /** ! * Load those classpath entries into the grand list of files to place in the ! * classpath ! * ! * @param files ! * @return ! */ ! private static File[] incorporateClassPath(File[] files) { ! File[] cpFiles = getClasspathFiles(); ! if (cpFiles != null && cpFiles.length > 0) { ! File[] newFiles = new File[cpFiles.length + files.length]; ! int j = 0; ! for (int i = 0; i < files.length; i++) { ! newFiles[j++] = files[i]; ! } ! ! for (int i = 0; i < cpFiles.length; i++) { ! newFiles[j++] = cpFiles[i]; ! } ! files = newFiles; ! } ! return files; ! } ! ! private static File[] copyTo(File[] files1, File[] files2) { ! ! if (files1 != null) { ! return files2; ! } ! if (files2 != null && files2.length > 0) { ! File[] newFiles = new File[files1.length + files2.length]; ! int j = 0; ! for (int i = 0; i < files1.length; i++) { ! newFiles[j++] = files1[i]; ! } ! ! for (int i = 0; i < files2.length; i++) { ! newFiles[j++] = files2[i]; ! } ! return newFiles; ! } ! return files1; ! } ! ! /** ! * Get the files from the classpath - this is a hack to get around the ! * hidden classpath issue when running -jar (which is how babeldoc runs) ! * ! * @return array of files representing the classpath ! */ ! private static File[] getClasspathFiles() { ! String cp = System.getProperty(BABELDOC_CP); ! if (cp != null) { ! StringTokenizer st = new StringTokenizer(cp, File.pathSeparator); ! Collection files = new ArrayList(); ! while (st.hasMoreTokens()) { ! String token = st.nextToken(); ! File file = new File(token); ! if (file.exists() ! && ((token.endsWith(DOT_JAR)) ! || (token.endsWith(DOT_ZIP)) || (file ! .isDirectory()))) { ! // System.out.println("Adding: "+token); ! files.add(file); ! } else { ! // System.out.println("Ignoring : "+token); ! } ! } ! return (File[]) files.toArray(new File[0]); } else { ! return null; } } } |
From: paspes <pa...@us...> - 2008-01-03 17:17:30
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32408/modules/core/src/com/babeldoc/core/pipeline Modified Files: PipelineStageResolver.java Log Message: bug pipeline.getAllStagesNames Index: PipelineStageResolver.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/PipelineStageResolver.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PipelineStageResolver.java 30 Jul 2004 01:33:02 -0000 1.10 --- PipelineStageResolver.java 3 Jan 2008 16:19:00 -0000 1.11 *************** *** 116,130 **** */ public String[] getAllPipelineStageNames() { ! String[] names = new String[stageConfig.getNumberChildren()]; ! ! // Iterate over all getChildrenNameSet ! int i = 0; for (Iterator keys = stageConfig.getChildrenNameSet().iterator(); keys.hasNext();) { String key = (String) keys.next(); ! names[i++] = key; } ! ! return names; } --- 116,137 ---- */ public String[] getAllPipelineStageNames() { ! ArrayList aNames = new ArrayList(); ! //new String[stageConfig.getNumberChildren()]; for (Iterator keys = stageConfig.getChildrenNameSet().iterator(); keys.hasNext();) { String key = (String) keys.next(); ! if(!key.trim().equals(IPipelineStageResolver.ENTRY_STAGE)) ! aNames.add(key); } ! ! String[] Names = new String[aNames.size()]; ! ! // Iterate over all getChildrenNameSet ! int i = 0; ! Iterator it= aNames.iterator(); ! while (it.hasNext()) ! Names[i++] = (String)it.next(); ! ! return Names ; } |
From: paspes <pa...@us...> - 2007-12-21 12:08:22
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12206/modules/core/src/com/babeldoc/core/pipeline/stage Modified Files: CallStagePipelineStage.java Log Message: Activate param discard_results i quit test parameter Index: CallStagePipelineStage.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/CallStagePipelineStage.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** CallStagePipelineStage.java 30 Jul 2004 01:33:03 -0000 1.9 --- CallStagePipelineStage.java 21 Dec 2007 12:06:54 -0000 1.10 *************** *** 90,95 **** /** configuration option for the discard results. */ public static final String DISCARD_RESULTS = "discardResults"; - /** configuration option for test. */ - public static final String TEST = "test"; --- 90,93 ---- *************** *** 113,119 **** options.add(new ConfigOption(DISCARD_RESULTS, IConfigOptionType.BOOLEAN, "true", false, I18n.get("core.pipeline.stage.callstage.discard"))); - options.add(new ConfigOption(TEST, IConfigOptionType.BOOLEAN, - "true", false, "If this option is set and it evaluates to true, the call is made otherwise")); - return options; } --- 111,114 ---- *************** *** 132,139 **** String callStage = getOptions(CALL_STAGE); ! // If the test is null or evaluates to true, then go, else ignore. ! String test = this.getOptions(TEST); ! if(Boolean.valueOf(test).booleanValue()) { ! if(this.hasOption(DISCARD_RESULTS)&&this.getOptions(DISCARD_RESULTS).equals(BooleanConfigOptionType.TRUE)) { PipelineDocument pdoc = (PipelineDocument)this.getDocument().clone(); PipelineFactoryFactory.process(callStage, this.getDocument(), --- 127,131 ---- String callStage = getOptions(CALL_STAGE); ! if(!this.hasOption(DISCARD_RESULTS) || this.getOptions(DISCARD_RESULTS).equals(BooleanConfigOptionType.TRUE)) { PipelineDocument pdoc = (PipelineDocument)this.getDocument().clone(); PipelineFactoryFactory.process(callStage, this.getDocument(), *************** *** 156,162 **** return docs; } - } else { - return this.processHelper(); - } } } --- 148,151 ---- |