Skip to main content

How to deploy Netbeans web application to Glassfish from Java code?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
dandrocec
Offline
Joined: 2013-09-05

I am changing some Java classes on the fly and I want to deploy my Netbeans web application automatically (through) Java code to Glassfish. How to deploy Netbeans web application to Glassfish from Java code, what command should I use?

I tried to use command "ant -f D:\\DOKTORAT\\NetbeansProjects\\AiPlanningServices -DforceRedeploy=true -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true run-deploy" that is displayed in Netbeans IDE console when I manually right clicked on my web application in Netbeans and choose Deploy, but this command doesn't work.

Thanks,
Darko