Commit Graph

1220 Commits

Author SHA1 Message Date
Andy Wilkinson
3e5e871163 Make use of current working dir explicit for compatibility with H2 1.4
H2 1.4 requires that file paths that are relative to the current
working directory declare this explicitly, i.e. the path
file:/some-dir must now be file:./some-dir.

This commit updates DatabaseTypeIntegrationTests to meet the
above-described requirement, thereby allowing the tests to pass when
run against H2 1.4.x.
2014-12-30 16:50:57 -06:00
Michael Minella
f39fc4b524 Add reflection check for Spring 4.1 in Mail Writer tests
As part of the Spring Framework 4.1 updates, the send methods on both
MailSender#send and JavaMailSender#send were converted from taking an
array to vargs.  This commit adds a reflection check to determine which
version of Spring it's being built against and uses the apropriate
mocking checks in these tests based on that check.
2014-11-10 12:57:36 -06:00
Michael Minella
2ae6388c12 Fixes the RepositoryItemReader ignoring explicitly set currentItemCount
If the user explicitly sets the currentItemCount value on a
RepositoryItemReader, prior to this commit, it is ignored.  this commit
addresses this by moving the current counter up to the correct value
when that value is set.  This fix addresses BATCH-2274.

This commit also addresses a number of compiler warnings around javadoc.
2014-10-16 17:20:48 -05:00
Michael Minella
00abd5e262 Update javadoc to remove javadoc warnings 2014-09-23 14:28:43 -05:00
Michael Minella
1857743712 Fixed configuration of sort keys in JdbcPagingItemReader
The JdbcPagingItemReader allows the configuration of multiple sort keys.
If a user configures one of those columns with a table alias, it causes
issues.  This update strips the aliases off of the sort keys.
2014-09-22 14:58:28 -05:00
Michael Minella
fc2431332b Added test to DelimitedLineTokenizer based on StackOverflow Question
A question was asked on StackOverflow
(http://stackoverflow.com/questions/25914945/spring-batch-delimitedlinetokenizer-with-line-breaks-newline-in-csv)
in which a row wasn't being parsed as expected.  We didn't have a test
for that specific scenario so this commit adds one.
2014-09-18 10:41:35 -05:00
Adam Richeimer
44fc2b1069 Change ClassifierCompositeItemWriter to honor item order
The ClassifierCompositeItemWriter loops through the items passed to the
write method twice.  The first time to classifier each item.  The second
tiem to perform the actual writes (this prevents the unnecessicary IO if
an error occurs during classification).  A HashMap was previously used
to hold the classified items (key to the writer : item) however this
causes the items to be written out of order.  This update changes it to
a LinkedHashMap to honor the order the items come in.
2014-09-16 11:17:28 -05:00
Michael Minella
04b339b8f4 Add BeanCreationException to list of standard failure exceptions
Without this change, when passing an invalid job parameter to a bean
that is created internally by Spring Batch will cause a
BeanCreationException that is essentially ignored.  Due to it being
ignored, an infinite loop occurs in processing.
2014-09-16 11:01:30 -05:00
Seo Kyung-Seok
1e54018df3 Deleting an unnecessary import class in ExecutionContext.
"import org.springframework.util.Assert;"
2014-09-15 15:55:15 -05:00
Chris Schaefer
587680ba56 XD-1027: Create script-based batch ItemProcessor 2014-07-18 11:55:17 -05:00
Michael Minella
ca8087dfc6 BATCH-2206: Added option to set collection for MongoItemReader 2014-05-22 11:31:41 -05:00
Andy Wilkinson
513e47fc9b Update configuration of Spring IO plugin
This commit updates the configuration of the IO plugin to use an
external property, platformVersion, and to only apply the plugin when
this property is set. This removes the declaration of a snapshot
dependency from the normal build configuration and also breaks a
circular dependency between the projects that are in the Platform and
the Platform itself.

The commit also applies the configuration that was applied to the
standard test task, other than code coverage, to the new test tasks
that are created by the Spring IO plugin.

Two redundant Hibernate mapping files have been deleted. With more
recent versions of Hibernate the presence of these files was causing
test failures due to duplicate mappings.
2014-05-15 10:11:50 -05:00
Michael Minella
4fe22fc511 BATCH-2232: Fixed generics for RepositoryItemReader#setRepository 2014-05-15 09:49:55 -05:00
Michael Minella
c8d77c055d Updated Spring Data versions for Spring I/O 2014-05-14 13:59:39 -05:00
Michael Minella
e7a4e348a5 BATCH-2229 & BATCH-2218: Removed OSGi related metadata and Maven POMs 2014-05-12 15:32:02 -05:00
Michael Minella
5599c5e469 Patched up maven build for new dependencies for now. Also updated minimum java version to 1.7 2014-05-05 13:22:33 -05:00
Andy Wilkinson
ecd8114a46 Update dependency versions
In addition to updating the versions of numerous dependencies, this
commit also remove the dependency upon CGLib as it is no longer used.

Two test classes have been updated. One to cope with a new method in
Commons IO FileUtils which made a method call ambiguous, and one to
cope with API changes in the latest version of Quartz.
2014-05-05 11:27:14 -05:00
Gunnar Hillert
f1d71a06f4 BATCH-2144 Convert Spring Batch to use Gradle
* Use Gradle 1.11
* Remove SpringSource references
* Update JavaDoc overview
* Update Jacoco conf + Add license/manifest files
* Addresses also BATCH-2187
* Update a number of unit tests to not be ignored

Jira: https://jira.springsource.org/browse/BATCH-2144
2014-04-24 12:16:17 -05:00
Michael Minella
2c2744ff88 BATCH-2202: Removed unnecessecary LdifAggregator and corrected javadoc on RecordCallbackHandler 2014-04-22 10:33:49 -05:00
Michael Minella
337b844fc9 Bringing the LDIF based ItemReader from Spring LDAP to Spring Batch to break circular dependency 2014-04-22 10:33:49 -05:00
Michael Minella
17299a3d3a [maven-release-plugin] prepare for next development iteration 2014-04-21 18:05:05 -05:00
Michael Minella
93b809921d [maven-release-plugin] prepare release 2.2.6.RELEASE 2014-04-21 18:03:10 -05:00
Michael Minella
9b925c2e84 BATCH-2172: Fixed database version check for DB2ZOS 2014-04-21 17:57:32 -05:00
Michael Minella
e4b2a0bf7d BATCH-2185: Updated to support annotation based listener configuration via javaconfig 2014-04-21 17:46:33 -05:00
Michael Minella
7ca75f58bc BATCH-2092: Added access to line input when an exception is thrown 2014-04-21 17:45:07 -05:00
Michael Minella
999953fe8c BATCH-2060: Fixed Github links 2014-04-21 17:42:43 -05:00
Michael Minella
81b1e6de79 BATCH-2090: Undeprecated HibernateItemWriter#doWrite(SessionFactory sessionFactory, List<? extends T> items) 2014-04-21 17:42:43 -05:00
Darren Gorman
8bfc0d2ab8 Removed serialisable check on ExecutionContext entries
The serialisation/deserialisation implementation is injectable, so it does not make sense to enforce the presence of this interface
2014-04-11 16:33:35 -05:00
jpraet
947883bf62 add ClassifierCompositeItemProcessor 2014-04-03 12:26:42 -05:00
Michael Minella
74992367a2 BATCH-2188: Refactored package.html to package-info.java and added package-info.java to all packages that needed one 2014-04-02 16:23:09 -05:00
jpraet
b26d272d43 cleanup 2014-04-02 14:35:53 -04:00
Chris Schaefer
65f37c170a BATCH-2201: Update URL's to point to spring.io in docs
Update URLs pointing to springframework/springsource to spring.io.
Remove links that have no redirection
2014-03-25 12:24:37 -04:00
jpraet
fec3d57f22 BATCH-1896 2014-03-19 11:07:54 -05:00
jpraet
3749b40e86 BATCH-1785 2014-03-10 11:10:26 -05:00
Michael Minella
ff7793cacf [maven-release-plugin] prepare for next development iteration 2014-02-21 21:42:59 -06:00
Michael Minella
f690c496c4 [maven-release-plugin] prepare release 3.0.0.M3 2014-02-21 21:42:55 -06:00
Michael Minella
406e25a544 BATCH-2173: Initial commit for repo updates 2014-02-21 17:00:40 -06:00
Michael Minella
9317ab2565 BATCH-2112: Removed Spring Batch's SerializationUtils in favor of the Spring Core version 2014-02-12 11:23:03 -06:00
Michael Minella
b278239751 BATCH-2110: Updated batch to support Spring 4
* Refactored iBatis based readers and writers to not utilize
 SqlMapClientTemplate.
* Depricated all iBatis based readers and writers in favor of MyBatis's
 native Spring support.
* Updated XStream support to 1.4.4 and Jettison to 1.2 to be in
 alignment with Spring 4.
* Added the PooledEmbeddedDataSource to address the issue outlined in
 SPR-11372.
2014-02-06 11:34:33 -06:00
Michael Minella
ed310069fe BATCH-2163: Updated documentation and copyright dates 2014-02-05 16:35:38 -06:00
Luke Taylor
05f3fd73f7 BATCH-2163: Use correct 'since' version. 2014-02-05 16:16:07 -06:00
Luke Taylor
2c007deaf6 BATCH-2163: Add support for SQLite.
Adds a DatabaseType, scripts, a DataFieldMaxValueIncrementer and
a PagingQueryProvider for SQLite.
2014-02-05 16:16:07 -06:00
Michael Minella
f5a31a99a2 BATCH-2046: Updated copyright dates and added @since 2014-02-05 15:54:51 -06:00
jpraet
c8bcdf3c62 fix for missing namespace prefix in closing tag on restart 2014-02-05 14:30:26 -06:00
jpraet
e468f231c0 BATCH-2046: StaxEventItemWriter item grouping tag 2014-02-05 14:30:26 -06:00
Michael Minella
b985c52b4d Refactored CheckpointAlgorithmAdapter to be stateful 2013-12-12 14:36:21 -06:00
Michael Minella
dba6590dc2 BATCH-2141: Adding missing page increment when jumping position 2013-11-22 16:18:46 -06:00
stephlag
3c63baa9d8 Corrected typo (HOLD_CUSORS_OVER_COMMIT -> HOLD_CURSORS_OVER_COMMIT) 2013-11-22 16:18:46 -06:00
Arne Borrmann
856e25a862 BATCH-2040: Fix for erroneous SQL-Query in PagingQueryProvider
- added method for replacing qualifiers with subquery-qualifiers in
select clause
- refactored buildsort method
- Replaced HashMap with LinkedHashMap for right sort orders
2013-11-22 15:40:45 -06:00
jpraet
ca91bbb375 BATCH-2086: default writer implementations need public setter for name 2013-11-22 15:40:45 -06:00