Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:57:44+00:00 2026-06-09T19:57:44+00:00

I’m trying to determine the exact absolute path of the local file from only

  • 0

I’m trying to determine the exact absolute path of the local file from only having available the absolute path from the SVN. The whole idea is that I’m writing an eclipse plugin that from knowing the URL to a file in the SVN you could click a row and the corresponding file locally from within eclipse would be opened.

Where I’m running into difficulty is trying to determine exactly where the SVN path ends and the actual file begins locally. Let me give an actual example to demonstrate.

Let’s say the absolute URL to the file in the SVN is:

http://webappsecure.com/svn/discovery/sentinel2jirav4/src/main/java/com/whitehatsecurity/jira/configurations/IPluginConfigurationSettings.java

That same file can be found in eclipse at this location on the users computer:

C:\Users\Steve\workspace\Jira Plugins\Sentinel2Jirav4\sentinel2jirav4\src\main\java\com\whitehatsecurity\jira\configurations\IPluginConfigurationSettings.java

There are some differences for sure in the structures of the paths.

You see how in the SVN the URL is:

/svn/discovery/sentinel2jirav4/

The local path from eclipse is:

\Jira Plugins\Sentinel2Jirav4\sentinel2jirav4\

It looks like I may be able to have a preference page where I have the user add the path to the svn so like: /svn/discovery/

Therefore every absolute URL I get from the SVN would then be chopped off all the way to /svn/discovery.

Is there a better way to correlate the SVN path to its path locally? Does the SVN store that local path info?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:57:45+00:00Added an answer on June 9, 2026 at 7:57 pm

    First, you should read about local structure of svn (.svn folder and entries file inside .svn folder), that obtained in result of checkout
    Second, you need to parse .svn/entries for all folders inside you %WORKSPACE%.
    After that you would exactly know relation between local folder and url in the SVN

    For instance: src/main/java/com/whitehatsecurity/jira/configurations/IPluginConfigurationSettings.java
    inside root folder src should be folder named .svn, in which should be located file entries. Inside of file .svn/entries should be following lines:

    dir
    3
    http://webappsecure.com/svn/discovery/sentinel2jirav4/src
    http://webappsecure.com/svn
    

    Or you can just run svn info C:\Users\Steve\workspace\Jira Plugins\Sentinel2Jirav4\sentinel2jirav4\src for each folder, which contains .svn inside.
    And as a result get something like

    Path: workspace\Jira Plugins\Sentinel2Jirav4\sentinel2jirav4\src
    URL: http://webappsecure.com/svn/discovery/sentinel2jirav4/src
    Repository Root: http://webappsecure.com/src
    etc...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.