Skip to content

Commit

Permalink
auto input params and print log
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyapu committed Jan 12, 2015
1 parent 66977a5 commit 96e9861
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ private void validate() {
m_user=System.getenv("mysql_username");
m_password=System.getenv("mysql_password");

//getLog().info("see sth yapu" + m_jdbcUrl + " "+m_user+" "+m_password);

if(m_jdbcUrl!=null&&m_jdbcUrl.startsWith("jdbc:mysql://")&&m_user!=null&&m_password!=null){
//getLog().info("auto input" + m_jdbcUrl + " "+m_user+" "+m_password);

}
else{
m_jdbcUrl = PropertyProviders.fromConsole().forString("jdbc.url", "Please input jdbc url:", null,
Expand All @@ -234,7 +232,11 @@ public boolean validate(String url) {
});
m_user = PropertyProviders.fromConsole().forString("jdbc.user", "Please input username:", null, null, null);
m_password = PropertyProviders.fromConsole().forString("jdbc.password", "Please input password:", null, "", null);
//getLog().info("person input" + m_jdbcUrl + " "+m_user+" "+m_password);

}

getLog().info("jdbc.url" + m_jdbcUrl);
getLog().info("jdbc.user" + m_user);
getLog().info("jdbc.password" + m_password);
}
}

0 comments on commit 96e9861

Please sign in to comment.