nadment commented on code in PR #5619:
URL: https://github.com/apache/hop/pull/5619#discussion_r2281019119


##########
assemblies/static/src/main/resources/hop.bat:
##########
@@ -0,0 +1,129 @@
+@echo off
+REM
+REM Licensed to the Apache Software Foundation (ASF) under one or more
+REM contributor license agreements.  See the NOTICE file distributed with
+REM this work for additional information regarding copyright ownership.
+REM The ASF licenses this file to You under the Apache License, Version 2.0
+REM (the "License"); you may not use this file except in compliance with
+REM the License.  You may obtain a copy of the License at
+REM
+REM       http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM
+
+setlocal
+
+REM switch to script directory
+cd /D %~dp0
+
+REM Option to change the Characterset of the Windows Shell to show foreign 
caracters
+if not "%HOP_WINDOWS_SHELL_ENCODING%"=="" chcp %HOP_WINDOWS_SHELL_ENCODING%
+
+set LIBSPATH=lib\core;lib\beam
+set CLASSPATH=lib\core\*;lib\beam\*;lib\swt\win64\*
+
+set _temphelp=0
+if [%1]==[help] set _temphelp=1
+if [%1]==[Help] set _temphelp=1
+if %_temphelp%==1 (GOTO Help) ELSE (GOTO NormalStart)
+
+:Help
+echo ===[HopRun - hop-run.bat]=================================================
+echo.
+echo Example:
+echo   hop-run.bat 
--file=C:\Users\usbra\Desktop\converted_financial_metrics\update_dashboard_financials.hwf
 --environment=converted_financial_metrics 
--project=converted_financial_metrics --runconfig=local
+echo
+echo The above gives a full path to a file. It assumes a project has been 
created for that file called 'converted_financial_metrics'
+echo The project also has an environment called 'converted_financial_metrics', 
that was created when creating the project.
+echo Finally, 'local' is the name of the local configuration json file present 
in the project's metadata folder.  There is one for workflows and another for 
pipelines.
+echo ==========================================================================
+GOTO End
+
+:NormalStart
+REM set java primary is HOP_JAVA_HOME fallback to JAVA_HOME or default java
+if not "%HOP_JAVA_HOME%"=="" (
+    set _HOP_JAVA="%HOP_JAVA_HOME%\bin\java"
+) else if not "%JAVA_HOME%"=="" (
+    set _HOP_JAVA="%JAVA_HOME%\bin\java"
+) else (
+    set _HOP_JAVA="java"
+)
+
+REM # Settings for all OSses
+
+if "%HOP_OPTIONS%"=="" set HOP_OPTIONS="-Xmx2048m"
+
+REM
+REM See if we need to enable some remote debugging options for our developers.
+REM
+for %%arg in (%*) do (

Review Comment:
   This part of the batch fails, so I deleted this section of code to make the 
batch work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to