You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "valepakh (via GitHub)" <gi...@apache.org> on 2024/05/30 10:27:47 UTC

[PR] IGNITE-22380 Add Windows start script [ignite-3]

valepakh opened a new pull request, #3848:
URL: https://github.com/apache/ignite-3/pull/3848

   https://issues.apache.org/jira/browse/IGNITE-22380


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-22380 Add Windows start script [ignite-3]

Posted by "Pochatkin (via GitHub)" <gi...@apache.org>.
Pochatkin commented on code in PR #3848:
URL: https://github.com/apache/ignite-3/pull/3848#discussion_r1620576110


##########
packaging/common/bootstrap-functions.bat:
##########
@@ -0,0 +1,42 @@
+@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
+
+set ADD_OPENS_JAVA_OPTS=--add-opens java.base/java.lang=ALL-UNNAMED ^

Review Comment:
   Can we unify it somehow? I mean maybe to add some placeholder here and replace it in gradle task? Just we have many places where copy pasting it.



##########
packaging/db/build.gradle:
##########
@@ -62,18 +62,24 @@ def tokens = [
         APP_JAR             : "${project(':ignite-runner').name}-${project(':ignite-runner').version}.jar".toString(),
         MAIN_CLASS          : 'org.apache.ignite.internal.app.IgniteRunner',
         VARS_FILE_NAME      : 'vars.env',
+        VARS_FILE_NAME_WIN  : 'vars.bat',
         BOOTSTRAP_FILE_NAME : 'bootstrap-functions.sh',
+        BOOTSTRAP_FILE_NAME_WIN : 'bootstrap-functions.bat',
         SETUP_JAVA_FILE_NAME: 'setup-java.sh'
 ]
 
 // ZIP packaging
 
 def zipStartScriptTokens = tokens + [
         LOG_DIR             : '${IGNITE_HOME}/log',
+        LOG_DIR_WIN         : '%IGNITE_HOME%\\log',

Review Comment:
   Maybe would be better to create separate Map for Windows?



##########
packaging/zip/vars.bat:
##########
@@ -0,0 +1,39 @@
+@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.
+
+
+set NODE_NAME=defaultNode
+
+set WORK_DIR=%IGNITE_HOME%\work
+set LOG_DIR=%IGNITE_HOME%\log
+set LIBS_DIR=%IGNITE_HOME%\lib
+set CONF_DIR=%IGNITE_HOME%\etc
+set INSTALL_DIR=%IGNITE_HOME%
+
+set LOG_FILE_PATTERN=%LOG_DIR%\ignite3db-%g.log
+set CONFIG_FILE=%CONF_DIR%\ignite-config.conf
+
+@rem JVM props
+set JVM_MAX_MEM=16384m
+set JVM_MIN_MEM=16384m

Review Comment:
   The same about copy pasting



##########
packaging/zip/ignite3db.bat:
##########
@@ -0,0 +1,93 @@
+@rem
+@rem Copyright 2015 the original author or authors.

Review Comment:
   Is it correct copyright?



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-22380 Add Windows start script [ignite-3]

Posted by "Pochatkin (via GitHub)" <gi...@apache.org>.
Pochatkin merged PR #3848:
URL: https://github.com/apache/ignite-3/pull/3848


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org