mirror of
https://github.com/corda/corda.git
synced 2025-01-16 01:40:17 +00:00
Initial custom resource script for Windows bundle.
This commit is contained in:
parent
975bba0295
commit
38fb84a96b
24
tools/demobench/package/windows/DemoBench-post-image.wsf
Normal file
24
tools/demobench/package/windows/DemoBench-post-image.wsf
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" ?>
|
||||
<package>
|
||||
<job id="postImage">
|
||||
<script language="JScript">
|
||||
<![CDATA[
|
||||
var oShell = new ActiveXObject("wscript.shell");
|
||||
var binDir = oShell.ExpandEnvironmentStrings("%JAVA_HOME%") + "\\jre\\bin\\";
|
||||
var javaExe = binDir + "java.exe";
|
||||
var javawExe = binDir + "javaw.exe";
|
||||
|
||||
var oFSO = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var oFolder = oFSO.getFolder(".");
|
||||
var to = oFolder.path + "\\DemoBench\\runtime\\bin";
|
||||
if (!oFSO.FolderExists(to)) {
|
||||
oFSO.CreateFolder(to);
|
||||
}
|
||||
to += "\\";
|
||||
|
||||
oFSO.CopyFile(javaExe, to);
|
||||
oFSO.CopyFile(javawExe, to);
|
||||
]]>
|
||||
</script>
|
||||
</job>
|
||||
</package>
|
Loading…
Reference in New Issue
Block a user