[JDEV] Re: Jabber Client Implementation
Jack Tanner
ihok at hotmail.com
Wed Jun 11 15:09:18 CDT 2003
Paul Curtis wrote:
> No CVS ... but feel free to post patches.
This isn't a patch, but I do find it helpful. Here's an ant build file
for your applet that automatically creates debug and release jars. Note
that it plays nicely with Eclipse. That is,
0. In Eclipse, under Window, Preferences, Java, New Project select the
Folders option. Leave the directory names as suggested (src and bin).
1. Create a new Java project in Eclipse, say in ~/workspace/Terrapin.
2. Put the e4applet source code in subdirectory src
(~/workspace/Terrapin/src).
3. Put this file in the root project directory (~/workspace/Terrapin),
and save it as build.xml.
4. In Eclipse, refresh so it sees the new file.
5. In Eclipse, right-click on the new file and click Run Ant. Select the
target of interest. The default, dist, will create a debug jar (which
includes debug info and prints warnings on the use of deprecated
methods). Another useful target is dist-release, which will build a jar
without debug info or deprecation warnings, but with optimization. Note
that you may need to run the clean target (deletes bin and dist dirs)
before switching between dist and dist-release or vice versa.
For both dist and dist-release, the jar will contain *.class and
*.properties (localization). The dist/lib directory will contain the jar
as well as *.html (e.g., applet.html).
-JT
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 2229 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20030611/f684c35c/attachment-0002.bin>
More information about the JDev
mailing list