diff --git a/.gitignore b/.gitignore index 249963d2c..7eefa4456 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.iml -.idea/ \ No newline at end of file +.idea/ +.gradle/ \ No newline at end of file diff --git a/build.third_step0.gradle b/build.third_step0.gradle index f23428842..7de441b96 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -41,7 +41,7 @@ def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.s def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1) def srcDir="." -def maven_version="${version}-FEATURE-SNAPSHOT" +def maven_version="${version}-RELEASE-SNAPSHOT" def jar_version = version configurations { @@ -50,7 +50,7 @@ configurations { } dependencies { - thirdjar "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + thirdjar "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" sigar "com.fr.third:sigar:1.6.0" testCompile 'junit:junit:4.12' } diff --git a/build.third_step1.gradle b/build.third_step1.gradle index a33ef9f68..e84c6bc8a 100644 --- a/build.third_step1.gradle +++ b/build.third_step1.gradle @@ -59,7 +59,7 @@ dependencies{ compile fileTree(dir:"${srcDir}/fine-poi/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-quartz/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/build.third_step2.gradle b/build.third_step2.gradle index 0631ef5b5..8242521fb 100644 --- a/build.third_step2.gradle +++ b/build.third_step2.gradle @@ -48,7 +48,7 @@ dependencies{ compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-sense4/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/build.third_step3.gradle b/build.third_step3.gradle index 0bf16d70f..af7e44eb1 100644 --- a/build.third_step3.gradle +++ b/build.third_step3.gradle @@ -46,7 +46,7 @@ def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+ dependencies{ compile fileTree(dir:"${srcDir}/fine-jboss-logging/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/build.third_step4.gradle b/build.third_step4.gradle index f75a4f847..44f21f29c 100644 --- a/build.third_step4.gradle +++ b/build.third_step4.gradle @@ -45,7 +45,7 @@ def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+ dependencies{ compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/build.third_step5.gradle b/build.third_step5.gradle index 67933f2b3..34ad92d5e 100644 --- a/build.third_step5.gradle +++ b/build.third_step5.gradle @@ -44,7 +44,7 @@ dependencies{ compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'ojdbc7-12.1.0.jar') compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/build.third_step6.gradle b/build.third_step6.gradle index 52cd3e5c2..7b416a1f2 100644 --- a/build.third_step6.gradle +++ b/build.third_step6.gradle @@ -44,9 +44,8 @@ sourceSets{ "${srcDir}/fine-itext/src", "${srcDir}/fine-kryo/src", "${srcDir}/fine-lz4/src", - "${srcDir}/fine-log4j/src", + "${srcDir}/fine-log4j/src", "${srcDir}/fine-jgit/src" - ] } } @@ -76,7 +75,7 @@ dependencies{ compile fileTree(dir:"${srcDir}/fine-socketio/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-jgit/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') - compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" + compile "com.fr.third:fine-third-base:10.0-BASE-SNAPSHOT" compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') testCompile 'junit:junit:4.12' } diff --git a/fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java b/fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java index 07efbd4c5..d6fcef079 100644 --- a/fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java +++ b/fine-quartz/src/com/fr/third/v2/org/quartz/impl/jdbcjobstore/JobStoreSupport.java @@ -1199,27 +1199,26 @@ public abstract class JobStoreSupport implements JobStore, Constants { } } - if (job == null) { - try { + try { + if (job == null) { job = retrieveJob(conn, newTrigger.getJobKey()); - } catch (JobPersistenceException e) { - getLog().error(e.getMessage()); } - } - if (job == null) { - throw new JobPersistenceException("The job (" - + newTrigger.getJobKey() - + ") referenced by the trigger does not exist."); - } - - if (job.isConcurrentExectionDisallowed() && !recovering) { - state = checkBlockedState(conn, job.getKey(), state); - } + if (job == null) { + throw new JobPersistenceException("The job (" + + newTrigger.getJobKey() + + ") referenced by the trigger does not exist."); + } + if (job.isConcurrentExectionDisallowed() && !recovering) { + state = checkBlockedState(conn, job.getKey(), state); + } - if (existingTrigger) { - getDelegate().updateTrigger(conn, newTrigger, state, job); - } else { - getDelegate().insertTrigger(conn, newTrigger, state, job); + if (existingTrigger) { + getDelegate().updateTrigger(conn, newTrigger, state, job); + } else { + getDelegate().insertTrigger(conn, newTrigger, state, job); + } + } catch (JobPersistenceException e) { + getLog().error(e.getMessage()); } } catch (Exception e) { throw new JobPersistenceException("Couldn't store trigger '" + newTrigger.getKey() + "' for '" @@ -2987,6 +2986,7 @@ public abstract class JobStoreSupport implements JobStore, Constants { } catch (SQLException sqle) { getLog().error("Unable to set trigger state to ERROR.", sqle); } + return null; } if (trigger.getCalendarName() != null) {