ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1747866 - in /webservices/axiom/trunk: pom.xml systests/osgi-tests/pom.xml
Date Sat, 11 Jun 2016 09:03:56 GMT
Author: veithen
Date: Sat Jun 11 09:03:56 2016
New Revision: 1747866

URL: http://svn.apache.org/viewvc?rev=1747866&view=rev
Log:
Validate that Axiom doesn't leave any temporary files behind.

Modified:
    webservices/axiom/trunk/pom.xml
    webservices/axiom/trunk/systests/osgi-tests/pom.xml

Modified: webservices/axiom/trunk/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/pom.xml?rev=1747866&r1=1747865&r2=1747866&view=diff
==============================================================================
--- webservices/axiom/trunk/pom.xml (original)
+++ webservices/axiom/trunk/pom.xml Sat Jun 11 09:03:56 2016
@@ -925,6 +925,12 @@
                         <configuration>
                             <scripts>
                                 <script>
+                                    import java.io.File
+                                    
+                                    if (new File(project.build.directory, 'tmp').listFiles().length
> 0) {
+                                        throw new Error("Temporary directory not empty");
+                                    }
+                                    
                                     if (project.properties['skipJacoco'] == 'true' || !new
File(project.build.directory, 'jacoco.exec').exists()) {
                                         project.properties['skipJacocoAttach'] = 'true'
                                     }

Modified: webservices/axiom/trunk/systests/osgi-tests/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/systests/osgi-tests/pom.xml?rev=1747866&r1=1747865&r2=1747866&view=diff
==============================================================================
--- webservices/axiom/trunk/systests/osgi-tests/pom.xml (original)
+++ webservices/axiom/trunk/systests/osgi-tests/pom.xml Sat Jun 11 09:03:56 2016
@@ -134,6 +134,30 @@
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
                 </configuration>
             </plugin>
+            <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- Clean up temporary files created by non Axiom code so that
+                             we don't fail the assertion that the temporary directory is
empty. -->
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                        <configuration>
+                            <excludeDefaultDirectories>true</excludeDefaultDirectories>
+                            <filesets>
+                                <fileset>
+                                    <directory>${project.build.directory}/tmp</directory>
+                                    <includes>
+                                        <include>ops4j-store-anonymous-*/**</include>
+                                    </includes>
+                                 </fileset>
+                            </filesets>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 </project>



Mime
View raw message