https://github.com/perdian/ant-webstart
Ant JNLP creation task
https://github.com/perdian/ant-webstart
Last synced: 28 days ago
JSON representation
Ant JNLP creation task
- Host: GitHub
- URL: https://github.com/perdian/ant-webstart
- Owner: perdian
- License: apache-2.0
- Created: 2013-01-25T12:46:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T07:19:12.000Z (over 7 years ago)
- Last Synced: 2025-02-07T15:35:38.725Z (3 months ago)
- Language: Java
- Size: 75.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ant Webstart task
Ant task to generate a deployment structure for a webstart enabled application.
An example:
...
aTitle
aVendor
Short Description
...
All in all, the declaration of the target JNLP file in the Ant task ist almost
identical to the actual JNLP file, as it is defined in the specification
(http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html).
The main exception being, that wherever slashes in the specification are
allowed, (for example within theoffline-allowed
element, there are
no slashed allowed for the ant task (which means the tag is to be added asofflineallowed
).Additionally, to all the standard JNLP elements, the
resources
elements supports adding apath
child, as described in the
example above. The existence of such a child means, that the task will analyze
the contents of the path and will add ajar
child element to the
resources parent element for each of the entries found in the path. This
allows for a dynamic way to add required resources, without actually having to
declare them over and over again. The path's to the resource files (usually
JARs) will be relative to the location of the JNLP file itself (as defined in
thedestfile
attribute of the main task element).## Requirements
The ant-webstart tasks requires Java SE 6 or higher.
## Build
If you want to build the application yourself, all you have to do once you've
cloned the Git repository is to call the Ant buildscript:cd /whereever/your/project/is
ant distribute-libPlease note, that since the project uses Apache Ivy as dependency management
system, your Ant installation must also have the Apache Ivy JAR-File in it's
classpath. For further information about Apache Ivy see: https://ant.apache.org/ivy/history/latest-milestone/install.htmlOnce the build is completed, the JAR file containing the tasks can be found in
thedistribution/lib
subdirectory.