db: Fix deploydb, make sure scripts are in path

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-25 10:58:48 +05:30
parent 357b4e63ac
commit a32c6d5c9d
2 changed files with 10 additions and 0 deletions

View File

@ -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>

View File

@ -449,6 +449,12 @@ public class Script implements Callable<String> {
}
}
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;
}