Sha256: 5160948dfef4f835f97f3d365eb223b57fdf91376944ab20a9191564a91f0a58

Contents?: true

Size: 1.6 KB

Versions: 8

Compression:

Stored size: 1.6 KB

Contents

Renaming a Symbolic Link is done from the properties view of the page containing the link.  Each link in the list will have a '''Rename''' link that will initiate the renaming.  The link contains a URL of the form:
!***********************************************< HIDDEN
!define CODE {!-<pre><font size=-1>-!}
!define code {!-</font></pre>-!}
!define B    {!-<b>-!}
!define b    {!-</b>-!}
!define VAR  {!-<font color=blue><em>-!}
!define var  {!-</em></font>-!}
********************************************************!
${CODE}${B}!-http://host/PathToPage?responder=symlink&rename=-!${b}${VAR}nameOfLink${var}${B}&newname=${b}${VAR}newNameForLink${var}${code}

But first we need to create a link to rename.
!include CreateRelativeSymbolicLink

When we look at the properties page we'll see the rename link.
!|Response Requester.|
|uri   |status?|
|LinkingPage?properties|200|
!|Response Examiner.|
|type  |pattern|matches?|contents?|
|contents|SymLink|true||
|contents|<a href="javascript:symbolicLinkRename\(.*\);">Rename</a>|true||

Now click the '''Rename''' link.
!|Response Requester.|
|uri   |status?|
|LinkingPage?responder=symlink&rename=SymLink&newname=NewLink|303|

This should change the name of the symbolic link and redirect back to the properties view.
!|Response Examiner.|
|type  |pattern|matches?|contents?|
|contents|Location: /LinkingPage\?properties|true||

When we look at the properties page again, the symbolic link will have a different name.
!|Response Requester.|
|uri   |status?|
|LinkingPage?properties|200|
!|Response Examiner.|
|type  |pattern|matches?|
|contents|NewLink|true|
|contents|SymLink|false|

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSymbolicLinkTests/TestRenameSymbolicLink/content.txt