Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-12-09 10:21:20 +0000
committerSteffen Pingel2013-12-09 10:26:30 +0000
commite6a96f8a7e7464bf2fb75538f6e95a81c8ccec5e (patch)
tree3fe594b7ddad3180e00a21d934efa891e7295a56
parentc7a492fae1b88712188f58d178bf7f0f077075d1 (diff)
downloadorg.eclipse.mylyn-e6a96f8a7e7464bf2fb75538f6e95a81c8ccec5e.tar.gz
org.eclipse.mylyn-e6a96f8a7e7464bf2fb75538f6e95a81c8ccec5e.tar.xz
org.eclipse.mylyn-e6a96f8a7e7464bf2fb75538f6e95a81c8ccec5e.zip
fix script for retrieving services list
* The script takes long and fails on diretories that the www user can't read. Change-Id: I20c0d1ef41a9857b4e4e5a9114f02b28ffb7b802
-rw-r--r--org.eclipse.mylyn.releng/vagrant/modules/mylyn/files/services.cgi6
-rw-r--r--org.eclipse.mylyn.releng/vagrant/modules/mylyn/templates/index.html.erb2
2 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.releng/vagrant/modules/mylyn/files/services.cgi b/org.eclipse.mylyn.releng/vagrant/modules/mylyn/files/services.cgi
index 45adb26..594e430 100644
--- a/org.eclipse.mylyn.releng/vagrant/modules/mylyn/files/services.cgi
+++ b/org.eclipse.mylyn.releng/vagrant/modules/mylyn/files/services.cgi
@@ -13,8 +13,10 @@ my @verzeichnisse = (
);
my @files = File::Find::Rule->file()
- ->name( $muster )
- ->in( @verzeichnisse );
+ ->mindepth(3)
+ ->maxdepth(4)
+ ->name( $muster )
+ ->in( @verzeichnisse );
print "Content-type:application/json\r\n\r\n";
if ($callback) {
diff --git a/org.eclipse.mylyn.releng/vagrant/modules/mylyn/templates/index.html.erb b/org.eclipse.mylyn.releng/vagrant/modules/mylyn/templates/index.html.erb
index b43964a..17029c3 100644
--- a/org.eclipse.mylyn.releng/vagrant/modules/mylyn/templates/index.html.erb
+++ b/org.eclipse.mylyn.releng/vagrant/modules/mylyn/templates/index.html.erb
@@ -39,6 +39,6 @@
document.body.appendChild(script);
// end hiding contents from old browsers -->
</script> </blockquote>
- <a id="output">empty service list</a>
+ <a id="output">Retrieving services list...</a>
</body>
</html>

Back to the top