javascript - how to call JScript after application image created while creating an native package in maven -
i using maven. have jscript create runtime/jre/lib/ext folder while installing application because default self-contained application not contain full copy of java runtime using https connection required jre/lib/ext/sunjce_provider.jar. https connections not work if jre/lib/ext/sunjce_provider.jar missing
for added script -
<?xml version="1.0" ?> <package> <job id="postimage"> <script language="jscript"> <![cdata[ var ofso = new activexobject("scripting.filesystemobject"); var ofolder = ofso.getfolder("."); var = ofolder.path + "\\myapp\\lib\\sunjce_provider.jar"; var = ofolder.path + "\\myapp\\runtime\\jre\\lib\\ext"; if (!ofso.folderexists(to)) { ofso.createfolder(to); } += "\\"; ofso.copyfile(from, to); ]]> </script> </job> </package> but how call script while creating package pom.xml? script should executed after application image created.please suggest
Comments
Post a Comment