Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 360c037

Browse files
committed
test: add profile for generating test sql scripts
1 parent 34221d7 commit 360c037

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

google-cloud-spanner/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,5 +377,38 @@
377377
</plugins>
378378
</build>
379379
</profile>
380+
<profile>
381+
<!-- Profile for generating new sql test scripts. See ConnectionImplGeneratedSqlScriptTest
382+
for more information. -->
383+
<id>generate-test-sql-scripts</id>
384+
<build>
385+
<plugins>
386+
<plugin>
387+
<groupId>org.codehaus.mojo</groupId>
388+
<artifactId>exec-maven-plugin</artifactId>
389+
<executions>
390+
<execution>
391+
<id>generateTestScripts</id>
392+
<phase>compile</phase>
393+
<goals>
394+
<goal>java</goal>
395+
</goals>
396+
<configuration>
397+
<mainClass>com.google.cloud.spanner.connection.SqlTestScriptsGenerator</mainClass>
398+
<systemProperties>
399+
<systemProperty>
400+
<key>do_log_statements</key>
401+
<value>true</value>
402+
</systemProperty>
403+
</systemProperties>
404+
<classpathScope>test</classpathScope>
405+
<skip>false</skip>
406+
</configuration>
407+
</execution>
408+
</executions>
409+
</plugin>
410+
</plugins>
411+
</build>
412+
</profile>
380413
</profiles>
381414
</project>

0 commit comments

Comments
 (0)