You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by GitBox <gi...@apache.org> on 2020/09/25 06:14:38 UTC
[GitHub] [karaf] rmannibucau opened a new pull request #1201: add support of clean arg in main
rmannibucau opened a new pull request #1201:
URL: https://github.com/apache/karaf/pull/1201
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] jbonofre commented on pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
jbonofre commented on pull request #1201:
URL: https://github.com/apache/karaf/pull/1201#issuecomment-703749381
Superseeded by #1214
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] jbonofre commented on a change in pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
jbonofre commented on a change in pull request #1201:
URL: https://github.com/apache/karaf/pull/1201#discussion_r494776488
##########
File path: main/src/main/java/org/apache/karaf/main/Main.java
##########
@@ -232,6 +239,29 @@ public void updateInstancePidAfterShutdown() throws Exception {
}
public void launch() throws Exception {
+ if (Arrays.asList(args).contains("clean")) {
Review comment:
It does already exist. You can start `bin/karaf` with `clean` option. That's in the `sh|bat` script.
So your proposal is to remove from script to have it in `Main`, right ?
In that case, we should also upgrade the scripts.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] jbonofre commented on a change in pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
jbonofre commented on a change in pull request #1201:
URL: https://github.com/apache/karaf/pull/1201#discussion_r494776488
##########
File path: main/src/main/java/org/apache/karaf/main/Main.java
##########
@@ -232,6 +239,29 @@ public void updateInstancePidAfterShutdown() throws Exception {
}
public void launch() throws Exception {
+ if (Arrays.asList(args).contains("clean")) {
Review comment:
It does already exist. You can start `bin/karaf` with `clean` option. That's in the `sh|bat` script.
So your proposal is to remove from script to have it in `Main`, right ?
In that case, we should also upgrade the scripts.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] rmannibucau commented on a change in pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
rmannibucau commented on a change in pull request #1201:
URL: https://github.com/apache/karaf/pull/1201#discussion_r494793171
##########
File path: main/src/main/java/org/apache/karaf/main/Main.java
##########
@@ -232,6 +239,29 @@ public void updateInstancePidAfterShutdown() throws Exception {
}
public void launch() throws Exception {
+ if (Arrays.asList(args).contains("clean")) {
Review comment:
Exact need is to support this feature when no using the scripts (maven plugin, gradle, embedded case). +1 to clean the scripts - just need to check it does not fail more often on windows (saw java deletion code not that reliable some years ago)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] rmannibucau commented on a change in pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
rmannibucau commented on a change in pull request #1201:
URL: https://github.com/apache/karaf/pull/1201#discussion_r494793171
##########
File path: main/src/main/java/org/apache/karaf/main/Main.java
##########
@@ -232,6 +239,29 @@ public void updateInstancePidAfterShutdown() throws Exception {
}
public void launch() throws Exception {
+ if (Arrays.asList(args).contains("clean")) {
Review comment:
Exact need is to support this feature when no using the scripts (maven plugin, gradle, embedded case). +1 to clean the scripts - just need to check it does not fail more often on windows (saw java deletion code not that reliable some years ago)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [karaf] jbonofre closed pull request #1201: add support of clean arg in main
Posted by GitBox <gi...@apache.org>.
jbonofre closed pull request #1201:
URL: https://github.com/apache/karaf/pull/1201
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org