public CharSequence createDoDeployTarget(final AntTask task) {
CharSequence _xblockexpression = null;
{
Deploy _deploy = task.getDeploy();
Application _application = _deploy.getApplication();
final String projectName = _application.getName();
Deploy _deploy_1 = task.getDeploy();
Application _application_1 = _deploy_1.getApplication();
final String mainClass = _application_1.getMainclass();
Deploy _deploy_2 = task.getDeploy();
final String appletWidth = _deploy_2.getWidth();
Deploy _deploy_3 = task.getDeploy();
final String appletHeight = _deploy_3.getHeight();
Deploy _deploy_4 = task.getDeploy();
Info _info = _deploy_4.getInfo();
final String appTitle = _info.getTitle();
Deploy _deploy_5 = task.getDeploy();
Application _application_2 = _deploy_5.getApplication();
final String appVersion = _application_2.getVersion();
Deploy _deploy_6 = task.getDeploy();
Application _application_3 = _deploy_6.getApplication();
final String preloaderClass = _application_3.getPreloaderclass();
String preloaderPath = "";
boolean _equals = Objects.equal(preloaderClass, null);
if (_equals) {
preloaderPath = null;
} else {
String _replace = preloaderClass.replace(".", "/");
preloaderPath = _replace;
}
Deploy _deploy_7 = task.getDeploy();
Application _application_4 = _deploy_7.getApplication();
final String fallBackClass = _application_4.getFallbackclass();
StringConcatenation _builder = new StringConcatenation();
_builder.append("<target name=\"do-deploy\" depends=\"setup-staging-area, do-compile, init-fx-tasks\">");
_builder.newLine();
_builder.append("\t");
_builder.append("<delete file=\"dist\"/>");
_builder.newLine();
_builder.append("\t");
_builder.append("<delete file=\"deploy\" />");
_builder.newLine();
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("<mkdir dir=\"dist\" />");
_builder.newLine();
_builder.append("\t");
_builder.append("<mkdir dir=\"dist/libs\" />");
_builder.newLine();
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("<copy todir=\"dist/libs\">");
_builder.newLine();
_builder.append("\t\t");
_builder.append("<fileset dir=\"externalLibs\">");
_builder.newLine();
_builder.append("\t\t\t");
_builder.append("<include name=\"*\" />");
_builder.newLine();
_builder.append("\t\t");
_builder.append("</fileset>");
_builder.newLine();
_builder.append("\t");
_builder.append("</copy>");
_builder.newLine();
_builder.append("\t");
_builder.newLine();
{
boolean _notEquals = (!Objects.equal(preloaderClass, null));
if (_notEquals) {
_builder.append("\t");
_builder.append("<jar destfile=\"dist/libs/");
_builder.append(projectName, " ");
_builder.append("-preloader.jar\">");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("\t");
_builder.append("<fileset dir=\"build/classes\">");
_builder.newLine();
_builder.append("\t");
_builder.append("\t\t");
_builder.append("<include name=\"");
_builder.append(preloaderPath, " ");
_builder.append(".class\"/>");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("\t");
_builder.append("</fileset>");
_builder.newLine();
_builder.append("\t");
_builder.append("</jar>");
_builder.newLine();
}
}
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("<fx:resources id=\"appRes\">");
_builder.newLine();
{
boolean _notEquals_1 = (!Objects.equal(preloaderClass, null));
if (_notEquals_1) {
_builder.append("\t\t");
_builder.append("<fx:fileset dir=\"dist\" requiredFor=\"preloader\"");
_builder.newLine();
_builder.append("\t\t");
_builder.append("\t");
_builder.append("includes=\"");
_builder.append(projectName, " ");
_builder.append("-preloader.jar\"/>");
_builder.newLineIfNotEmpty();
}
}
_builder.append("\t\t");
_builder.append("<fx:fileset dir=\"dist\" includes=\"");
_builder.append(projectName, " ");
_builder.append(".jar\"/>");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("<fx:fileset dir=\"dist\" includes=\"libs/*\"/>");
_builder.newLine();
_builder.append("\t");
_builder.append("</fx:resources> ");
_builder.newLine();
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("<fx:application id=\"fxApplication\"");
_builder.newLine();
_builder.append("\t\t");
_builder.append("name=\"");
_builder.append(projectName, " ");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("\t\t");
_builder.append("mainClass=\"");
_builder.append(mainClass, " ");
_builder.append("\"");
_builder.newLineIfNotEmpty();
{
boolean _notEquals_2 = (!Objects.equal(preloaderClass, null));
if (_notEquals_2) {
_builder.append("\t\t");
_builder.append("preloaderClass=\"");
_builder.append(preloaderClass, " ");
_builder.append("\"");
_builder.newLineIfNotEmpty();
}
}
{
boolean _notEquals_3 = (!Objects.equal(fallBackClass, null));
if (_notEquals_3) {
_builder.append("\t\t");
_builder.append("fallbackClass=\"");
_builder.append(fallBackClass, " ");
_builder.append("\"");
_builder.newLineIfNotEmpty();
}
}
{
Deploy _deploy_8 = task.getDeploy();
Application _application_5 = _deploy_8.getApplication();
String _toolkit = _application_5.getToolkit();
boolean _notEquals_4 = (!Objects.equal(_toolkit, null));
if (_notEquals_4) {
_builder.append("\t\t");
_builder.append("toolkit=\"");
Deploy _deploy_9 = task.getDeploy();
Application _application_6 = _deploy_9.getApplication();
String _toolkit_1 = _application_6.getToolkit();
_builder.append(_toolkit_1, " ");
_builder.append("\"");
_builder.newLineIfNotEmpty();
}
}