Let PCEhancer report the class it is enhancing

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2012-01-18 19:57:22 +00:00
parent 6430d8eb92
commit c2e11e7f13
1 changed files with 2 additions and 3 deletions

View File

@ -4707,7 +4707,6 @@ public class PCEnhancer {
Log log = conf.getLog(OpenJPAConfiguration.LOG_TOOL);
Collection classes;
if (args == null || args.length == 0) {
log.info(_loc.get("running-all-classes"));
classes = repos.getPersistentTypeNames(true, loader);
if (classes == null) {
log.warn(_loc.get("no-class-to-enhance"));
@ -4730,8 +4729,8 @@ public class PCEnhancer {
int status;
for (Iterator itr = classes.iterator(); itr.hasNext();) {
Object o = itr.next();
if (log.isTraceEnabled())
log.trace(_loc.get("enhance-running", o));
if (log.isInfoEnabled())
log.info(_loc.get("enhance-running", o));
if (o instanceof String)
bc = project.loadClass((String) o, loader);