I need to compile a webapp created with Netbeans (7.2) in Jenkins and I have an error indicating that I need to pass this argument to Ant:
-Dj2ee.server.home=<app_server_installation_directory>
I would like to compile the project without Tomcat or Glassfish dependency in Windows and Linux. Is it possible?
The solution is to create a -pre-build task in build.xml Ant script to download Tomcat (or Glassfish) and set j2ee.server.home dependency to the correct library path.
¡¡Bien!!
It works like a charm!!