FileNotFoundException with addSourceToJars under Windows when UIMA_HOME 
contains whitespace
-------------------------------------------------------------------------------------------

                 Key: UIMA-1291
                 URL: https://issues.apache.org/jira/browse/UIMA-1291
             Project: UIMA
          Issue Type: Bug
          Components: Tools
    Affects Versions: 2.2.2
         Environment: Windowx XP
            Reporter: Kai Schlamp
            Priority: Trivial


When executing addSourceToJars MS-DOS batch file under Windows and the 
UIMA_HOME variable has whitespace in it (like C:\Program Files\apache-uima), 
then one gets errors of the following type:

C:\..........\uimaj-2.2.2-incubating\jVinci\src\main\java>jar -uvf C:\Program 
Files\apache-uima\lib\jVinci.jar *
java.io.FileNotFoundException: C:\Program (The system cannot find the file 
specified)

A solution is to simply surround the %UIMA_HOME% strings in addSourceToJars 
with quotations, for example:
jar -uvf "%UIMA_HOME%\lib\jVinci.jar" *


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

Reply via email to