mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JavaFx: Warn the user if the JDK can't build JavaFX artifact (IDEA-200215)
This commit is contained in:
+6
-2
@@ -97,11 +97,15 @@ public abstract class AbstractJavaFxPackager {
|
||||
|
||||
final File tempDirectory = new File(tempUnzippedArtifactOutput, "deploy");
|
||||
try {
|
||||
|
||||
final String taskDefJar = homePath + "/lib/ant-javafx.jar";
|
||||
if (!new File(taskDefJar).exists()) {
|
||||
registerJavaFxPackagerError("Can't build artifact - fx:deploy is not available in this JDK");
|
||||
return;
|
||||
}
|
||||
final StringBuilder buf = new StringBuilder();
|
||||
buf.append("<project default=\"build artifact\">\n");
|
||||
buf.append("<taskdef resource=\"com/sun/javafx/tools/ant/antlib.xml\" uri=\"javafx:com.sun.javafx.tools.ant\" ")
|
||||
.append("classpath=\"").append(homePath).append("/lib/ant-javafx.jar\"/>\n");
|
||||
.append("classpath=\"").append(taskDefJar).append("\"/>\n");
|
||||
buf.append("<target name=\"build artifact\" xmlns:fx=\"javafx:com.sun.javafx.tools.ant\">");
|
||||
final String artifactFileName = getArtifactRootName();
|
||||
final List<JavaFxAntGenerator.SimpleTag> tags =
|
||||
|
||||
Reference in New Issue
Block a user