public class DeployFXTask
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.DynamicAttribute
<fx:deploy width="600" height="400" outdir="web-dist" outfile="Fish"> <info title="Sample application"/> <fx:application refid="myapp"/> <fx:resources refid="myresources"/> </fx:deploy>Above example will generate HTML/JNLP files into the web-dist directory and use "Fish" as prefix for generated files. Details about application and its resources are defined elsewhere in the application and resource elements.
Minimal complete example:
<fx:deploy width="600" height="400" outdir="web-dist" outfile="Fish"> <info title="Sample application"/> <fx:application name="SampleApp" mainClass="testapp.MainApp" preloaderClass="testpreloader.Preloader"/> <fx:resources> <fx:fileset requiredFor="preloader" dir="dist"> <include name="preloader.jar"/> </fx:fileset> <fx:fileset dir="dist"> <include name="helloworld.jar"/> </fx:fileset> </fx:resources> </fx:deploy>Same as above but here application and resource details are defined in place. Note that using references helps with reducing code duplication as fx:jar need to be used for double clickable jars.
Modifier and Type | Class and Description |
---|---|
static class |
DeployFXTask.BundleArgument
An argument to be passed off to the bundlers.
|
static class |
DeployFXTask.Template
Template to preprocess.
|
Constructor and Description |
---|
DeployFXTask() |
Modifier and Type | Method and Description |
---|---|
Application |
createApplication() |
DeployFXTask.BundleArgument |
createBundleArgument() |
Callbacks |
createCallbacks() |
Info |
createInfo() |
Permissions |
createPermissions() |
Platform |
createPlatform() |
Preferences |
createPreferences() |
Resources |
createResources() |
SecondaryLauncher |
createSecondaryLauncher() |
DeployFXTask.Template |
createTemplate() |
void |
execute() |
void |
setCodebase(String str) |
void |
setDynamicAttribute(String name,
String value) |
void |
setEmbeddedHeight(String w)
Application width for embedding application into Web page
|
void |
setEmbeddedWidth(String w)
Application width for embedding application into Web page
|
void |
setEmbedJNLP(boolean v)
Enable embedding JNLP descriptor into Web page.
|
void |
setExtension(boolean v)
Set to true if we are generating an 'extension' JNLP.
|
void |
setHeight(String v)
Application height.
|
void |
setIncludeDT(Boolean v)
If true then web deployment is done using javascript files
on java.com.
|
void |
setNativeBundles(String v) |
void |
setOfflineAllowed(boolean v)
Indicates if the application can be launched offline.
|
void |
setOutdir(String v)
Directory where application package will be saved.
|
void |
setOutfile(String v)
Prefix to be used for new generated files.
|
void |
setPlaceholderId(String id)
Id of the placeholder in the web page where application will be embedded.
|
void |
setPlaceholderRef(String p)
Placeholder in the web page where application will be embedded.
|
void |
setSignBundle(boolean signBundle) |
void |
setUpdateMode(String v)
Indicates the preferences for when checks for application updates
are performed.
|
void |
setVerbose(boolean v) |
void |
setWidth(String v)
Application width.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setVerbose(boolean v)
public void setCodebase(String str)
public void execute()
execute
in class org.apache.tools.ant.Task
public void setExtension(boolean v)
public void setNativeBundles(String v)
public void setUpdateMode(String v)
public void setOfflineAllowed(boolean v)
public void setEmbeddedWidth(String w)
public void setWidth(String v)
public void setEmbeddedHeight(String w)
public void setHeight(String v)
public void setEmbedJNLP(boolean v)
public void setOutdir(String v)
public void setOutfile(String v)
public void setIncludeDT(Boolean v)
public void setPlaceholderRef(String p)
public void setPlaceholderId(String id)
public void setSignBundle(boolean signBundle)
public Info createInfo()
public Application createApplication()
public Preferences createPreferences()
public Callbacks createCallbacks()
public Resources createResources()
public DeployFXTask.Template createTemplate()
public Platform createPlatform()
public Permissions createPermissions()
public DeployFXTask.BundleArgument createBundleArgument()
public SecondaryLauncher createSecondaryLauncher()
Copyright © 2020. All rights reserved.