Re: Pre-processing during build
От | Mark Rotteveel |
---|---|
Тема | Re: Pre-processing during build |
Дата | |
Msg-id | 45e4ecb7fe5cfb9bc3c61480284b810c@imap.procolix.com обсуждение исходный текст |
Ответ на | Re: Pre-processing during build (Sehrope Sarkuni <sehrope@jackdb.com>) |
Ответы |
Re: Pre-processing during build
Re: Pre-processing during build |
Список | pgsql-jdbc |
On Mon, 15 Jun 2015 18:42:13 -0400, Sehrope Sarkuni <sehrope@jackdb.com> wrote: > I think a purely Maven based build with separate targets should be possible > via a generated-sources plugin. Off the top of my head I'm not sure which > plugins it would use though. It's been a while since I wrote anything like > that though I do remember it being a bit of a pain to get right. On the > plus side we only have to figure it out once right? :) My experience is that Ant gives you a lot more flexibility. For Jaybird I considered moving to a Maven based build, but I finally decided against it because it was too much hassle. The difference with the PostgreSQL JDBC is that Jaybird uses JDBC version specific sources-folders with common classes (and abstract classes for common implementation). > I'm a big fan of Mavenizing the build process. A lot of the value of it > will come from how it will simplify things like adding tests. It eliminates > a lot of the double and sometimes triple entry (i.e. add the test class, > add it to a suite, add the suite to build.xml). You don't need Maven to achieve that. For one you don't need testsuites, with JUnit 3 it is a bit harder, but you could use a consistent naming convention and filter tests in the Ant plugin, with JUnit 4 you could use (class or instance) rules, or filtering based on annotations. Mark
В списке pgsql-jdbc по дате отправления: