Hi -

I ran this in debugging mode and stopped in the RemoteLauncher code.

Line 191-192 is failing to do the right thing.

It's constructing the output path, by first getting the inputFile.getPath()
which in my instance is:

D:\mavenAlign\uimaj-trunk-data\uimaj-examples\src\main\data\Apache_UIMA.txt

and then trying to replace the first part of it:

D:\mavenAlign\uimaj-trunk-data\uimaj-examples\src\main\data

with the the output folder name (outputFolder.getName() - just returns the last
part of the path - the final segment of the name, in my case "lout".

The result of this code:

outputFilePath.replaceFirst(inputDirectory.getName(),
              outputFolder.getName());

is

D:\mavenAlign\uimaj-trunk-lout\uimaj-examples\src\main\data\Apache_UIMA.txt

I think this is because the "replaceFirst" method takes as its first string, a
"regular expression", not a literal string....  and the backslash is "special".

Would probably be good to scan our code for use of "replaceFirst" to see if all
uses are treating the first argument as a regular expression :-)

Maven Javadocs plugin has this same kind of problem -see
http://jira.codehaus.org/browse/MJAVADOC-312

-Marshall



On 4/6/2011 8:16 AM, Jörn Kottmann wrote:
> On 4/6/11 2:11 PM, Marshall Schor wrote:
>> hmmm, not getting any output... it runs, no errors reported in eclipse error 
>> log
>> or in console.  Where would UIMA tracing /logging be expected to go?
>>
>
> Currently you can see the output which is written to the console. Will the
> UIMA logger
> by default write to the console?
>
> I tested it again, and it works for me. Do you run on windows?
> And do you have something in your input folder which is actually processed by
> your AE?
>
>> It would be nice to be able to have some menu picks on the launcher to 
>> control
>> tracking / logging.
>>
>> Launching without having the output folder pre-created, gives:
>>
>
> That needs to be fixed.
>
> Jörn
>
>

Reply via email to