• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i implemnt versing in java / java web applications  RSS feed

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
i need to find simple but effective way to implement versing in java/java web application
so i could do something like
myapp.jar -version
and it will give me the version number of the application
is there any standard way to do it in java ?
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but that looks too difficult a question for this forum. Moving.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write the version number in code and return it when that particular parameter is passed?
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moving where ?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell moved your thread from Beginner Java to Java in General.
Notice this against your thread in the beginner forum
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12156
256
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might like to take a look at "Storing the version of code in code itself" as one recent example of how you might use your version control system's version number and/or tag as the version reported by an application.
 
salvin francis
Bartender
Posts: 1664
37
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pardon me if i am heading in a totally wrong direction,

Are you referring to Sub versioning such as cvs or svn ?

In that case i would suggest a svn server such as google (free, refer to project hosting at google)
and you can use an svn client to check out and check in code.

the versions are mantained at the server as a trunk with branches.

The difference here would be that you wont run
but you would execute an svn command to query the latest revision.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Notice this against your thread in the beginner forum
If you click the name of the thread in the original forum the browser will be redirected automatically.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!