Skip to content

Commit

Permalink
db: Fix deploydb, make sure scripts are in path
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
  • Loading branch information
rohityadavcloud committed Feb 25, 2013
1 parent 357b4e6 commit a32c6d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions developer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@
<key>catalina.home</key>
<value>${project.parent.basedir}/utils</value>
</systemProperty>
<systemProperty>
<key>paths.script</key>
<value>${basedir}/target/db</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
Expand Down
6 changes: 6 additions & 0 deletions utils/src/com/cloud/utils/script/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,12 @@ public static String findScript(String path, String script) {
}

}

file = new File(System.getProperty("paths.script") + File.separator + path + File.separator + script);
if (file.exists()) {
return file.getAbsolutePath();
}

s_logger.warn("Unable to find script " + script);
return null;
}
Expand Down

0 comments on commit a32c6d5

Please sign in to comment.