shuyangzhou/liferay-portal — pull request #348 by tinatian (2013-07-19 01:32:56+00:00)
Title: Lps 37672 Modify SampleSQLBuilder to generate data for DLSync test case, commit1.

Hi Shuyang,

The reasons I use properties:

1) There are lots of parameters, and the number of parameters will get bigger and bigger as new test cases are added in the future, it is not a good idea to list all the parameters while invoking SampleSQLBuilder, it is easy to make mistakes and hard to maintain.
2) Every one who invokes SampleSQLBuilder needs to list all the parameters, now only two invoke SampleSQLBuilder, that is "build-sample-sql" and "test-sample-sql", but there will be more to be added like DLSync.
3) SampleSQLBuilder has its own properties file, and all the parameters passed in are from properties file, not like DBBuilder, ServiceBuilder and other tools in portal, so it makes sense to use properties instead of passing parameters.