• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How do I intrepret this line in ant.xml and why put it in private.properties etc ?

 
Ranch Hand
Posts: 821
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I came across many projects from github that are using ant to do build and deployment.  And I am totally lost.  I have watched youtube tutorial on how to use ant but still I am lost.

Could someone tells me what's the reason these info below are declared in private.properties ?  The author is using netbean and I am using Eclipse so is it necessary for me to use the below or is it ok that I deleted this file away? cos I am using external tomcat as a server.



Also, I am totally lost how to intrepret the below infor....

My question is if I am going to use maven, can I delete the below, as I see that it doesn't contain any dependencies library...



tks.

 
Saloon Keeper
Posts: 24295
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In answer to your first question, most of those properties appear to be to tell Ant where Netbeans is and where its copy of Tomcat is. Which is mostly useless except with Netbeans. Looks like maybe Netbeans was expected to launch a test browser as well, but I'm not sure.

In answer to your second question, those Ant actions are to deploy the WAR that has been built to the Tomcat server. Maven has a "deploy" goal instead, so you don't need any of that, although the information regarding the server location, application context, and other variable data would have to be translated into POM equivalents for the deploy goal to use.

As an editorial opinion, I've never been big on making Ant or Maven deploy my webapps. For development and testing I have Tomcat set to use the WAR as it was built (withing the source project) instead of exporting it to somewhere else. And for production, I build a stand-alone deployable that generally has to be handed over to the operations staff for security reasons. Or, if Jenkins is in control, I let Jenkins handle that part.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic