on 02-24-2005 1:34 PM
Hi everybody out there,
has anybody tried using Ant for building and deploying a Par-File.
A example script would be highly appreciated.
Greetings
Walter
Hi Walter,
for building PARs there is the build.xml included within Java Devleopment Role --> Development --> Download --> ANT support.
For deployment you would have to write your own ANT task.
Hope it helps
Detlev
PS: This was a long vacation, wasn't it?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Walter,
> the part which deploys the par-file
> to the server is missing.
No really... this is why I wrote
For deployment you would have to write
your own ANT task.
BUT:
To make it easy, just implement a helper class with a main method and call it by an ant JAVA task. Pass all parameters needed, and within the main method of your helper class, write
File par = new File(dir, fileName);
DeployEngine engine = new DeployEngine(host, port, pwd, user);
engine.setDeleteMode(DeployEngine.DELETE_TRY);
engine.deploy(par);
The DeployEngine.class you will find within the standard Eclipse plugins.
Hope it helps
Detlev
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.