Jason Hinch avatar Jason Hinch committed 9a3ec25

Updating sysinfo plugin for 1.3 and remove deprecated API usages

Comments (0)

Files changed (2)

     </build>
 
     <properties>
-        <stash.version>1.2.0</stash.version>
-        <stash.data.version>1.2.0</stash.data.version>
+        <stash.version>1.3.0</stash.version>
+        <stash.data.version>1.3.0</stash.data.version>
         <amps.version>3.11</amps.version>
     </properties>
 

src/main/java/com/atlassian/stash/plugin/reposysinfo/RepositorySysInfoServlet.java

 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import java.io.File;
-import java.io.FileFilter;
 import java.io.FilenameFilter;
 import java.io.IOException;
 import java.util.Arrays;
     }
 
     protected File getRepositoryDirectory(Repository repository) {
-        return applicationPropertiesService.getRepositoryDirectory(repository);
+        return applicationPropertiesService.getRepositoryDir(repository);
     }
 
     protected List<String> findRepositoryHooks(Repository repository, File repositoryDirectory) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.