JDeveloper does not recognize existing subversion working directory

Posted by Bob Webster on Oracle Blogs See other posts from Oracle Blogs or by Bob Webster
Published on Wed, 20 Jun 2012 20:31:01 +0000 Indexed on 2012/06/20 21:20 UTC
Read the original article Hit count: 235

Filed under:

Just a quick note about an issue where JDeveloper no longer recognized an existing
subversion working directory.

Symptom: 

JDeveloper Versioning menu offers to Version an Application that is already versioned in svn.


Jdev_svn


Cause:

The repository url contained in the hidden .svn folders of the working directory is no longer valid.

Solution:

Determine the correct url for the Subversion repository and update the .svn working directory.
Fix the url contained in the svn folders of the working directory using the svn switch command.

Example:

          In a shell change directory to the Application folder.

          Run the svn info command to confirm the current settings.

               $ svn info
                  Path: .
                  URL: http://192.168.1.128/repos/jdeveloperrepo/AsyncExamples/BPELCallAsync/trunk
                  Repository Root: http://192.168.1.128/repos/jdeveloperrepo
                  Repository UUID: 3dc5eb88-3001-0010-8d6e-fd6f73825647
                  Revision: 145
                  Node Kind: directory
                  Schedule: normal
                  Last Changed Rev: 145
                  Last Changed Date: 2012-06-07 07:15:56 -0700 (Thu, 07 Jun 2012)

           In this case, the IP address in the repository URL is incorrect,
           the svn server is located at 192.168.56.1
           Note: The IP Address currently set is displayed after the Project Name in the
           Application Navigator.  See the screen snapshot above.


           Run the svn switch command with the --relocate option
           Provide as much of the urls as necessary to correctly rewrite the url from current to new.
           For example,
           to change the repository server address from 192.168.1.128   to   192.168.56.1

                    $  svn switch --relocate  http://192.168.1.128   http://192.168.56.1  .

                              (Note the trailing period in the above command)

          When the url is correct, JDeveloper should recognize the Subversion Working Directory.

© Oracle Blogs or respective owner

Related posts about /Oracle