You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org> on 2008/10/14 23:55:44 UTC

[jira] Created: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
------------------------------------------------------------------------------------------------------

                 Key: UIMA-1206
                 URL: https://issues.apache.org/jira/browse/UIMA-1206
             Project: UIMA
          Issue Type: Improvement
          Components: Examples
    Affects Versions: 2.2.2
         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
Java : java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
UIMA svn revision : 704699
            Reporter: Fabien POULARD
            Priority: Minor


Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653348#action_12653348 ] 

Marshall Schor commented on UIMA-1206:
--------------------------------------

Patching worked for me once I saved the file, and applied the file using Eclipse (and didn't use the "clipboard" approach).  Eclipse handles the line-ends when you do it this way.

A question: Can I change the code:

{code}mFiles = new ArrayList<File>( browseDir(directory) );
 // to
mFiles = browseDir(directory);
{code}

because browseDir is already making a new ArrayList?

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabien POULARD updated UIMA-1206:
---------------------------------

    Attachment: browse-subdirectories.patch

The attached patch is a proposition to enable the component to browse sub-directories of the Input Directory.

It does not change the default behavior as this capability is turned down by default, but it can be turned on using the appropriate optional parameter of the component.

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650538#action_12650538 ] 

Fabien POULARD commented on UIMA-1206:
--------------------------------------

I generated the patch from the uimaj/trunk/uimaj-examples, so that may be the reason why you cannot apply it. Have you tried to apply it from this directory ?

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor resolved UIMA-1206.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: Fabien POULARD

Applied patch.  Some minor changes done.  Can you please confirm this works, for both the cases where the parameter is specified and when it is omitted?

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Assignee: Fabien POULARD
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Burn Lewis (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650691#action_12650691 ] 

Burn Lewis commented on UIMA-1206:
----------------------------------

My windows patch program worked only after I made it a pure DOS file ... currently only some lines end with cntl-M

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Fabien POULARD (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653355#action_12653355 ] 

Fabien POULARD commented on UIMA-1206:
--------------------------------------

Yes of course, I guess I did not realise the ArrayList<File> was redondant here.

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (UIMA-1206) Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader

Posted by "Marshall Schor (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650458#action_12650458 ] 

Marshall Schor commented on UIMA-1206:
--------------------------------------

I cannot seem to apply this patch, (which I was doing on a trial basis just to see what was changed).   Can anyone figure out how to apply it, and if not, figure out what's wrong with the patch that's preventing application?  

> Add the capability to browse subdirectories to org.apache.uima.examples.cpe.FileSystemCollectionReader
> ------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1206
>                 URL: https://issues.apache.org/jira/browse/UIMA-1206
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 2.2.2
>         Environment: Operating System : GNU/Linux Ubuntu Hardy Heron
> Java : java version "1.6.0_06"
> Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> UIMA svn revision : 704699
>            Reporter: Fabien POULARD
>            Priority: Minor
>         Attachments: browse-subdirectories.patch
>
>
> Make the component org.apache.uima.examples.cpe.FileSystemCollectionReader able to browse sub-directories of the InputDirectory through an option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.