From 1cc0f32f7fefa2821a052f823e735bdb14193b93 Mon Sep 17 00:00:00 2001
From: ?? ? <ulysseskao@ximple.com.tw>
Date: Mon, 24 Oct 2011 16:15:36 +0800
Subject: [PATCH] 

---
 xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2EdbGeoJob.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2EdbGeoJob.java b/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2EdbGeoJob.java
index a021f70..a24eccd 100644
--- a/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2EdbGeoJob.java
+++ b/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2EdbGeoJob.java
@@ -31,8 +31,8 @@
 import org.geotools.data.jdbc.JDBCUtils;
 import org.geotools.data.edbgeo.PostgisDataStore;
 import org.geotools.data.edbgeo.PostgisDataStoreFactory;
-import org.geotools.feature.IllegalAttributeException;
 import org.geotools.feature.SchemaException;
+import org.opengis.feature.IllegalAttributeException;
 import org.quartz.JobDataMap;
 import org.quartz.JobDetail;
 import org.quartz.JobExecutionContext;
@@ -180,7 +180,7 @@
         JobDetail jobDetail = context.getJobDetail();
 
         // The name is defined in the job definition
-        String jobName = jobDetail.getName();
+        String jobName = jobDetail.getKey().getName();
 
         // Log the time the job started
         logger.info(jobName + " fired at " + new Date());

--
Gitblit v0.0.0-SNAPSHOT