public JavaRunnableResourceDescriptor(WixGen wixGen, RunnableResource runnable, String invocationTarget, String invocationParams) throws IOException
{
super(wixGen, RunnablesManager.RunnableType.JAVA, runnable, invocationTarget, invocationParams);
Java javaDescription = runnable.getJava();
this.openConsole = javaDescription.getOpenConsole();
this.javaOpts = javaDescription.isSetJavaOpts() ? javaDescription.getJavaOpts() : "";
this.defaultParams = javaDescription.isSetParams() ? javaDescription.getParams() : "";
if (javaDescription.isSetJar())
{
this.resourceType = JavaRunnableType.JAR;
this.resourceName = javaDescription.getJar().getAbsolutePath();
}
else
{
this.resourceType = JavaRunnableType.CLASS;
this.resourceName = javaDescription.getClass1();
}
for (File resource : javaDescription.getClasspath())
{
classpath.add(LIB_FOLDER_NAME + '\\' + resource.getName());
addRelatedResources(new ResourceDescriptor(resource, '/' + LIB_FOLDER_NAME + '/' + resource.getName()));
}