Skip to content

Commit

Permalink
Added wrapper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shabaz Basha Kowthalam committed Nov 5, 2024
1 parent f87f260 commit 68a60ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ tasks.register("dist", Zip) {
}

from("src/main/zip") {
include("*.xml")
filter {
it.replace("@RELEASE_VERSION@", "$pluginVersion")
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/zip/javawrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
eval exec "\"${JAVA_HOME}/bin/java\" $JAVA_OPTS \"\$@\""
2 changes: 2 additions & 0 deletions src/main/zip/javawrapper.sh.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
"%JAVA_HOME%/bin/java.exe" %JAVA_OPTS% %*
4 changes: 2 additions & 2 deletions src/main/zip/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
]]>
</post-processing>
<command program="${JAVA_HOME}/bin/java">
<command program="${PLUGIN_HOME}/javawrapper.sh">
<arg value="-cp"/>
<arg path="${PLUGIN_HOME}/*"/>
<arg value="com.ibm.ucd.sample.automation.plugin.FirstStep"/>
Expand Down Expand Up @@ -72,7 +72,7 @@
}
]]>
</post-processing>
<command program="${JAVA_HOME}/bin/java">
<command program="${PLUGIN_HOME}/javawrapper.sh">
<arg value="-cp"/>
<arg path="${PLUGIN_HOME}/*"/>
<arg value="com.ibm.ucd.sample.automation.plugin.SecondStep"/>
Expand Down

0 comments on commit 68a60ab

Please sign in to comment.