You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jk...@apache.org on 2011/02/01 01:01:31 UTC

svn commit: r1065870 - /incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat

Author: jkosin
Date: Tue Feb  1 00:01:30 2011
New Revision: 1065870

URL: http://svn.apache.org/viewvc?rev=1065870&view=rev
Log:
OPENNLP-113: added setting of the path based on the extraction of the short path name to the batch file ie: \home\j\bin\ then adding a .. getting us up a directory level, lastly OPENNLP_HOME is used for the \lib\opennlp-tools-*.jar file specifying the location.

Modified:
    incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat

Modified: incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat?rev=1065870&r1=1065869&r2=1065870&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat (original)
+++ incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat Tue Feb  1 00:01:30 2011
@@ -25,7 +25,7 @@ IF "%JAVA_CMD%" == "" (
 	)
 )
 
-REM #  TODO windows doesn't have an easy way to get the directory...
-IF "%OPENNLP_HOME%" == "" SET OPENNLP_HOME=.
+REM #  Should work with Windows XP and greater.  If not, specify the path to where it is installed.
+IF "%OPENNLP_HOME%" == "" SET OPENNLP_HOME=%~sp0..
 
 %JAVA_CMD% -Xmx4096m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*



Re: svn commit: r1065870 - /incubator/opennlp/trunk/opennlp-distr/src/main/bin/opennlp.bat

Posted by Jörn Kottmann <ko...@gmail.com>.
On 2/1/11 1:01 AM, jkosin@apache.org wrote:
> Author: jkosin
> Date: Tue Feb  1 00:01:30 2011
> New Revision: 1065870
>
> URL: http://svn.apache.org/viewvc?rev=1065870&view=rev
> Log:
> OPENNLP-113: added setting of the path based on the extraction of the short path name to the batch file ie: \home\j\bin\ then adding a .. getting us up a directory level, lastly OPENNLP_HOME is used for the \lib\opennlp-tools-*.jar file specifying the location.
>

Ohh, looks like OPENNLP-113 is a different issue, if you don't mind edit 
the commit
comment and change it to the correct issue id.

Jörn