Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Commit 1439740

Browse files
committed
feat: enable java-comment pre-processing of test sources
1 parent 23c2db3 commit 1439740

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pgjdbc-versions/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<postgresql.jdbc.spec>JDBC${jdbc.specification.version}</postgresql.jdbc.spec>
7373
<postgresql.driver.fullversion>PostgreSQL ${postgresql.jdbc.spec}</postgresql.driver.fullversion>
7474
<postgresql.preprocessed.sources.directory>${project.build.directory}/gen-src</postgresql.preprocessed.sources.directory>
75+
<postgresql.preprocessed.test.sources.directory>${project.build.directory}/gen-test-src</postgresql.preprocessed.test.sources.directory>
7576
<unzip.jdk.ant.build.xml>${project.build.directory}/unzip-jdk-ant.xml</unzip.jdk.ant.build.xml>
7677
<skip.unzip-jdk-src>true</skip.unzip-jdk-src>
7778
<!-- Configuration for maven-surefire-plugin. Needs to be here for compatibility with jacoco -->
@@ -99,6 +100,20 @@
99100
<compareDestination>true</compareDestination>
100101
</configuration>
101102
</execution>
103+
<execution>
104+
<id>preprocessTestSources</id>
105+
<phase>generate-test-sources</phase>
106+
<goals>
107+
<goal>preprocess</goal>
108+
</goals>
109+
<configuration>
110+
<!-- generated-sources is not used, otherwise IDEA picks sources from both src and generated-sources,
111+
and produces lots of "duplicate class" errors -->
112+
<testDestination>${postgresql.preprocessed.test.sources.directory}</testDestination>
113+
<compareDestination>true</compareDestination>
114+
<useTestSources>true</useTestSources>
115+
</configuration>
116+
</execution>
102117
</executions>
103118
</plugin>
104119
<plugin>

0 commit comments

Comments
 (0)