ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From salvador <>
Subject embedded jetty and remote server
Date Tue, 19 Mar 2013 18:36:28 GMT

writing servers is very new to me, so I have some basic question.

I have java classes, which start the jetty server and which define servlets.
I don't use any web.xml-files, all code is in java. In java code is the
server adress defined (for now only localhost)

Now I want to build the project with ant, and I need to start my server by
remote access, so I need to use deployment. But all examples, that i saw use
the standard webapp and not embedded server. In these examples the remote
server addresse is defined in deploy task.

I thought, I need to replace mylocalhost in the java code with the remote
server address, build the jar, and then use deploy task depending on
building the jar file and then use ant run. Am i correct?

for now, my script compiles source, builds the jar and executes it with run
task, i can start the server on my local host.

what exactly i need to add to my ant or java code, to start the server

Thanks for any help

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message