Permalink
Browse files

Changed compatibility to version 2.5.x

  • Loading branch information...
1 parent 165b0cb commit f07ff472f49a02d247b2174bd23674179b7448aa Mario Mueller committed Mar 18, 2011
Showing with 29 additions and 21 deletions.
  1. +1 −1 .hgignore
  2. +3 −3 pom.xml
  3. +7 −0 release.properties
  4. +1 −14 src/main/resources/atlassian-plugin.xml
  5. +17 −3 src/main/resources/websvn-repo-link.js
View
2 .hgignore
@@ -2,6 +2,6 @@ syntax: glob
target
target/**
-.idea
+.idea*
.idea/**
*.iml
View
6 pom.xml
@@ -204,7 +204,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>2.7</version>
+ <version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -215,8 +215,8 @@
</reporting>
<properties>
- <fecru.version>2.4.3-20101126023954</fecru.version>
- <fecru.data.version>2.4.3-20101126023954</fecru.data.version>
+ <fecru.version>2.5.2-20110307050326</fecru.version>
+ <fecru.data.version>2.5.2-20110307050326</fecru.data.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.resources.sourceEncoding>UTF-8</project.resources.sourceEncoding>
<atlassian.dev.mode>true</atlassian.dev.mode>
View
7 release.properties
@@ -0,0 +1,7 @@
+#release configuration
+#Fri Mar 18 16:09:09 CET 2011
+preparationGoals=clean verify
+scm.commentPrefix=[maven-release-plugin]
+exec.additionalArguments=-P defaultProfile,defaultProfile
+completedPhase=check-poms
+scm.url=scm\:hg\:https\://bitbucket.org/xenji/crucible-websvn-plugin
View
15 src/main/resources/atlassian-plugin.xml
@@ -46,27 +46,14 @@
</servlet>
<web-item key="websvn-general-changeset-link" section="system.fisheye.changeset">
- <param name="param0">$webResourceManager.requireResourcesForContext("atl.general")</param>
<link linkId="websvn-general-changeset-link" absolute="true">
- javascript:window.open(fishEyePageContext +
- "/plugins/servlet/websvn-redirect?changesetId=${helper.changeset.csid}&amp;repositoryKey=${helper.repository.path}",
- "WebSVN", "width=1024,height=768,status=yes,scrollbars=yes,resizable=yes,menubar=yes,location=yes");
+ javascript:WSVNL.openWindow("${helper.changeset.csid}","${helper.repository.path}");
</link>
- <dependency>name.mariomueller.crucible.websvn-plugin:websvn-javascript-enhancer</dependency>
<label key="WebSVN"/>
</web-item>
- <web-item key="websvn-general-header-hack" section="system.header.item">
- <param name="param0">$webResourceManager.requireResourcesForContext("atl.general")</param>
- <link linkId="websvn-general-header-hack" absolute="true">
- <![CDATA[javascript:jQuery('head').append('<script type=\'text/javascript\' src=\'{0}\'></script>');]]>
- </link>
- <label key=" "/>
- </web-item>
-
<web-resource key="websvn-javascript-enhancer" name="WebSVN JavaScript Enhanver">
<resource type="download" name="websvn-repo-link.js" location="websvn-repo-link.js"/>
- <param name="param0">$webResourceManager.requireResourcesForContext("atl.general")</param>
<context>atl.general</context>
</web-resource>
<!-- /Redirect Servlet -->
View
20 src/main/resources/websvn-repo-link.js
@@ -13,7 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+window.WSVNL = window.WSVNL || {};
+/*
+javascript:window.open(FECRU.pageContext +
+ "/plugins/servlet/websvn-redirect?changesetId=${helper.changeset.csid}&amp;repositoryKey=${helper.repository.path}",
+ "WebSVN", "width=1024,height=768,status=yes,scrollbars=yes,resizable=yes,menubar=yes,location=yes");
+ */
-function($){
- alert("Works!");
-}(jQuery);
+/**
+ * Opens a new window for the WebSVN View
+ * @param changesetId The ChangesetId
+ * @param repositoryPath The path in the repository
+ * @return void
+ */
+WSVNL.openWindow = function(changesetId, repositoryPath) {
+ var baseUrl = FECRU.pageContext + "/plugins/servlet/websvn-redirect";
+ var url = baseUrl + "?changesetId=" + changesetId + "&repositoryKey=" + repositoryPath;
+ window.open(url, "WebSVN", "width=1024,height=768,status=yes,scrollbars=yes,resizable=yes,menubar=yes,location=yes");
+}

0 comments on commit f07ff47

Please sign in to comment.