You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/02/01 17:40:34 UTC

svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Author: twgoetz
Date: Thu Feb  1 08:40:34 2007
New Revision: 502279

URL: http://svn.apache.org/viewvc?view=rev&rev=502279
Log:
Jira UIMA-256: add system property to specify manual location.  Found no other 
way to pre-configure the manual for the Eclipse launch configuration.

https://issues.apache.org/jira/browse/UIMA-256

Modified:
    incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.bat
    incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.sh

Modified: incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.bat
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.bat?view=diff&rev=502279&r1=502278&r2=502279
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.bat (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.bat Thu Feb  1 08:40:34 2007
@@ -22,6 +22,6 @@
 setlocal
 call "%UIMA_HOME%\bin\setUimaClassPath"
 if "%JAVA_HOME%"=="" set JAVA_HOME=%UIMA_HOME%\java\jre
-"%JAVA_HOME%\bin\java" -cp "%UIMA_CLASSPATH%" -Xms128M -Xmx256M "-Duima.home=%UIMA_HOME%" "-Duima.datapath=%UIMA_DATAPATH%" -DVNS_HOST=%VNS_HOST% -DVNS_PORT=%VNS_PORT% org.apache.uima.tools.annot_view.Gladis
+"%JAVA_HOME%\bin\java" -cp "%UIMA_CLASSPATH%" -Xms128M -Xmx256M "-Duima.home=%UIMA_HOME%" "-Duima.tools.cvd.manpath=%UIMA_HOME%/docs""-Duima.datapath=%UIMA_DATAPATH%" -DVNS_HOST=%VNS_HOST% -DVNS_PORT=%VNS_PORT% org.apache.uima.tools.annot_view.Gladis
 
 

Modified: incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.sh
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.sh?view=diff&rev=502279&r1=502278&r2=502279
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.sh (original)
+++ incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts/cvd.sh Thu Feb  1 08:40:34 2007
@@ -22,4 +22,4 @@
 then
   JAVA_HOME=$UIMA_HOME/java/jre
 fi
-"$JAVA_HOME/bin/java" -cp "$UIMA_CLASSPATH" -Xms128M -Xmx900M "-Duima.home=$UIMA_HOME" "-Duima.datapath=$UIMA_DATAPATH" -DVNS_HOST=$VNS_HOST -DVNS_PORT=$VNS_PORT org.apache.uima.tools.annot_view.Gladis
+"$JAVA_HOME/bin/java" -cp "$UIMA_CLASSPATH" -Xms128M -Xmx900M "-Duima.home=$UIMA_HOME" "-Duima.tools.cvd.manpath=${UIMA_HOME}/docs" "-Duima.datapath=$UIMA_DATAPATH" -DVNS_HOST=$VNS_HOST -DVNS_PORT=$VNS_PORT org.apache.uima.tools.annot_view.Gladis



Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Thilo Goetz <tw...@gmx.de>.
I thought I tried that...

Marshall Schor wrote:
> Thilo Goetz wrote:
>> Right, that was the second thing I tried.  And no, it doesn't work.  I 
>> agree it should, but it didn't.  The only way I could get it to work 
>> was to explicitly specify the docs directory as external class folder, 
>> which doesn't help.  If you find another way that works, let me know.
>>
>>
> 
> The following worked for me on Eclipse 3.2.0:
> 
> Change the Run configuration for the launcher - specify in the classpath 
> the "variables" - use env-var and UIMA_HOME, and follow with /docs/html
> 
> Make sure, of course, that the UIMA_HOME environment variable is set 
> properly.
> 
> I verified this by trying it several times, including putting a small 
> typo (doc2/html) and seeing that fail - so I know it's using this.
> 
> -Marshall

Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Marshall Schor <ms...@schor.com>.
Thilo Goetz wrote:
> Right, that was the second thing I tried.  And no, it doesn't work.  I 
> agree it should, but it didn't.  The only way I could get it to work 
> was to explicitly specify the docs directory as external class folder, 
> which doesn't help.  If you find another way that works, let me know.
>
>

The following worked for me on Eclipse 3.2.0:

Change the Run configuration for the launcher - specify in the classpath 
the "variables" - use env-var and UIMA_HOME, and follow with /docs/html

Make sure, of course, that the UIMA_HOME environment variable is set 
properly.

I verified this by trying it several times, including putting a small 
typo (doc2/html) and seeing that fail - so I know it's using this.

-Marshall


Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Thilo Goetz <tw...@gmx.de>.
Right, that was the second thing I tried.  And no, it doesn't work.  I 
agree it should, but it didn't.  The only way I could get it to work was 
to explicitly specify the docs directory as external class folder, which 
doesn't help.  If you find another way that works, let me know.

This is with Eclipse 3.2.1 on Windows, btw.

Marshall Schor wrote:
> Thilo Goetz wrote:
>> Marshall Schor wrote:
>>> twgoetz@apache.org wrote:
>>>> <snip>
>>>> Jira UIMA-256: add system property to specify manual location.  
>>>> Found no other way to pre-configure the manual for the Eclipse 
>>>> launch configuration.
>>>>   
>>>
>>> Maybe more direct way to pre-configure the manual to be on the class 
>>> path for the Eclipse launch configuration is to just add
>>> the path to the launcher's classpath specification (click on Menu -> 
>>> Run -> Run... pick the launch configuration, then pick the Classpath 
>>> tab, and in there, click on User Entries and add an entry for this?
>>>
>>> -Marshall
>>
>> That's what I tried.  If you can show me how to add a classpath entry 
>> for a *directory* (not a jar) based on a classpath variable, that 
>> would have been the preferred solution.  Feel free to improve.
>>
> 
> I think this will work:   In the Classpath tab, select the User Entries, 
> and click on "Advanced" :-)     The click on "Variables", pick env_var 
> with the argument UIMA_HOME, press OK, and in the previous screen follow 
> this with "/path-that-you-want".  I couldn't find where this should 
> actually point, so I didn't test it.  The CVD docs were moved into the 
> tools docbook - where should this variable reference now?
> 
> -Marshall

Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Marshall Schor <ms...@schor.com>.
Thilo Goetz wrote:
> Marshall Schor wrote:
>> twgoetz@apache.org wrote:
>>> <snip>
>>> Jira UIMA-256: add system property to specify manual location.  
>>> Found no other way to pre-configure the manual for the Eclipse 
>>> launch configuration.
>>>   
>>
>> Maybe more direct way to pre-configure the manual to be on the class 
>> path for the Eclipse launch configuration is to just add
>> the path to the launcher's classpath specification (click on Menu -> 
>> Run -> Run... pick the launch configuration, then pick the Classpath 
>> tab, and in there, click on User Entries and add an entry for this?
>>
>> -Marshall
>
> That's what I tried.  If you can show me how to add a classpath entry 
> for a *directory* (not a jar) based on a classpath variable, that 
> would have been the preferred solution.  Feel free to improve.
>

I think this will work:   In the Classpath tab, select the User Entries, 
and click on "Advanced" :-)     The click on "Variables", pick env_var 
with the argument UIMA_HOME, press OK, and in the previous screen follow 
this with "/path-that-you-want".  I couldn't find where this should 
actually point, so I didn't test it.  The CVD docs were moved into the 
tools docbook - where should this variable reference now?

-Marshall

Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Thilo Goetz <tw...@gmx.de>.
Marshall Schor wrote:
> twgoetz@apache.org wrote:
>> <snip>
>> Jira UIMA-256: add system property to specify manual location.  Found 
>> no other way to pre-configure the manual for the Eclipse launch 
>> configuration.
>>   
> 
> Maybe more direct way to pre-configure the manual to be on the class 
> path for the Eclipse launch configuration is to just add
> the path to the launcher's classpath specification (click on Menu -> Run 
> -> Run... pick the launch configuration, then pick the Classpath tab, 
> and in there, click on User Entries and add an entry for this?
> 
> -Marshall

That's what I tried.  If you can show me how to add a classpath entry 
for a *directory* (not a jar) based on a classpath variable, that would 
have been the preferred solution.  Feel free to improve.

--Thilo


Re: svn commit: r502279 - in /incubator/uima/uimaj/trunk/uimaj-distr/src/main/scripts: cvd.bat cvd.sh

Posted by Marshall Schor <ms...@schor.com>.
twgoetz@apache.org wrote:
> <snip>
> Jira UIMA-256: add system property to specify manual location.  Found no other 
> way to pre-configure the manual for the Eclipse launch configuration.
>   

Maybe more direct way to pre-configure the manual to be on the class 
path for the Eclipse launch configuration is to just add
the path to the launcher's classpath specification (click on Menu -> Run 
-> Run... pick the launch configuration, then pick the Classpath tab, 
and in there, click on User Entries and add an entry for this?

-Marshall