versioning control using java programming

In my Java project I need to add versioning control to the files(Like SVN), maintain different versions to the same named files in same folder. Please help me how to do this in java programming.
Eg: in my project,i maintained a folder which have set of images which are uploaded by user.but user can upload same named image n number of overcome this overhead i planned to maintain versioning to each image which are same (same named).

  • SSL error between jenkins(java) and Bitbucket Plugin
  • Cobertura doesn't work with Java 7
  • How to change the JDK for a Jenkins job?
  • What's the best way to manage multiple dependent projects in Git or Mercurial?
  • How can I run FEST Swing tests in Jenkins?
  • Need to create Java JAR file and add it to Maven Dependency
  • Finding merge candidates in TFS
  • GitLab: is there a way to assign a status/comment to a branch?
  • Retrieving Branches from GIT url using java code
  • Git strategy needed to get an old source code in Git and manage it to have a single point to maintain code
  • getting git branches of a certain age
  • Maintaining git repo containing other cloned git repo
  • 2 Solutions collect form web for “versioning control using java programming”

    Source control code is not the way to do this. Rename the files to a uuid as they get uploaded and build a map of original filename->uuid filename with timestamps that you can then lookup or expire as needed.

    I agree with awm. Version control is not for binary files. However, if you insist to do it like that, SVN has an API that you can use. You can access it directly from your code to commit code, update code, etc.

    Here’s a place to start:

    Go checkout out the SVNClientManager under “Subversion Client and IDE Integrations
    Subversion clients and IDE integrations”

    Good look.

    (of course, I haven’t used SVN in ages… I ‘git’ joy from a much better tool… :-))

    Git Baby is a git and github fan, let's start git clone.