Move javadocs to 'deployment' profile.

This commit is contained in:
dsyer
2008-11-15 09:02:32 +00:00
parent 9dfab7fed2
commit 88650ec55a
3 changed files with 26 additions and 17 deletions

28
pom.xml
View File

@@ -74,6 +74,13 @@
</url>
</site>
</distributionManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>strict</id>
@@ -374,18 +381,12 @@
<target>1.5</target>
</configuration>
</plugin>
<!--plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin-->
<!--
plugin> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <executions>
<execution> <id>attach-sources</id> <goals> <goal>jar</goal>
</goals> </execution> </executions> </plugin
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -417,9 +418,6 @@
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencyManagement>

View File

@@ -232,8 +232,10 @@ public class FaultTolerantStepFactoryBean<T, S> extends SimpleStepFactoryBean<T,
// Co-ordinate the retry policy with the exception handler:
RepeatOperations stepOperations = getStepOperations();
if (stepOperations instanceof RepeatTemplate) {
((RepeatTemplate) stepOperations).setExceptionHandler(new SimpleRetryExceptionHandler(retryPolicy,
getExceptionHandler(), fatalExceptionClasses));
SimpleRetryExceptionHandler exceptionHandler = new SimpleRetryExceptionHandler(retryPolicy,
getExceptionHandler(), fatalExceptionClasses);
((RepeatTemplate) stepOperations).setExceptionHandler(exceptionHandler);
retryTemplate.registerListener(exceptionHandler);
}
if (retryContextCache == null) {

View File

@@ -21,6 +21,15 @@ public class FootballJobFunctionalTests extends AbstractValidatingBatchLauncherT
this.simpleJdbcTemplate = new SimpleJdbcTemplate(dataSource);
}
@Override
protected void validatePreConditions() throws Exception {
simpleJdbcTemplate.update("DELETE FROM PLAYERS");
simpleJdbcTemplate.update("DELETE FROM GAMES");
simpleJdbcTemplate.update("DELETE FROM PLAYER_SUMMARY");
super.validatePreConditions();
}
@Override
protected void validatePostConditions() throws Exception {
int count = simpleJdbcTemplate.queryForInt("SELECT COUNT(*) from PLAYER_SUMMARY");
assertTrue(count>0);