Author: mes Date: 2011-02-01 16:14:49 -0800 (Tue, 01 Feb 2011) New Revision: 23993
Added: cytoscape/trunk/archetypes/sample-plugin/src/it/projects/firsttest/verify.bsh Modified: cytoscape/trunk/archetypes/pom.xml cytoscape/trunk/archetypes/sample-plugin/pom.xml Log: fixed so that the sample-plugin archtype gets tested and doesn't fail on repeated calls to install Modified: cytoscape/trunk/archetypes/pom.xml =================================================================== --- cytoscape/trunk/archetypes/pom.xml 2011-02-01 21:41:13 UTC (rev 23992) +++ cytoscape/trunk/archetypes/pom.xml 2011-02-02 00:14:49 UTC (rev 23993) @@ -1,13 +1,9 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>cytoscape</groupId> - <artifactId>parent</artifactId> - <version>2.8.1-beta2-SNAPSHOT</version> - </parent> <groupId>cytoscape.archetypes</groupId> <artifactId>parent</artifactId> + <version>2.8.1-beta2-SNAPSHOT</version> <packaging>pom</packaging> <name>Cytoscape Archetypes Parent POM</name> Modified: cytoscape/trunk/archetypes/sample-plugin/pom.xml =================================================================== --- cytoscape/trunk/archetypes/sample-plugin/pom.xml 2011-02-01 21:41:13 UTC (rev 23992) +++ cytoscape/trunk/archetypes/sample-plugin/pom.xml 2011-02-02 00:14:49 UTC (rev 23993) @@ -55,6 +55,7 @@ <pomInclude>*</pomInclude> </pomIncludes> <projectsDirectory>${basedir}/src/it/projects</projectsDirectory> + <postBuildHookScript>verify.bsh</postBuildHookScript> <properties> <archetypeArtifactId>${project.artifactId}</archetypeArtifactId> <archetypeGroupId>${project.groupId}</archetypeGroupId> @@ -66,6 +67,19 @@ <streamLogs>true</streamLogs> </configuration> </plugin> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>2.4.1</version> + <executions> + <execution> + <id>auto-clean</id> + <phase>initialize</phase> + <goals> + <goal>clean</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </project> Added: cytoscape/trunk/archetypes/sample-plugin/src/it/projects/firsttest/verify.bsh =================================================================== --- cytoscape/trunk/archetypes/sample-plugin/src/it/projects/firsttest/verify.bsh (rev 0) +++ cytoscape/trunk/archetypes/sample-plugin/src/it/projects/firsttest/verify.bsh 2011-02-02 00:14:49 UTC (rev 23993) @@ -0,0 +1,7 @@ +import java.io.*; + +File file = new File( basedir, "firsttest/target/firsttest-1.0.0.jar" ); +if ( !file.isFile() ) +{ + throw new FileNotFoundException( "Could not find generated JAR: " + file ); +} -- You received this message because you are subscribed to the Google Groups "cytoscape-cvs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cytoscape-cvs?hl=en.
