You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2010/09/12 01:56:33 UTC
svn commit: r996225 - in /maven/archetype/trunk/archetype-plugin: pom.xml
src/it/create-from-project/verify.bsh
Author: hboutemy
Date: Sat Sep 11 23:56:32 2010
New Revision: 996225
URL: http://svn.apache.org/viewvc?rev=996225&view=rev
Log:
fixed IT verify configuration
Modified:
maven/archetype/trunk/archetype-plugin/pom.xml
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh
Modified: maven/archetype/trunk/archetype-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/pom.xml?rev=996225&r1=996224&r2=996225&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-plugin/pom.xml (original)
+++ maven/archetype/trunk/archetype-plugin/pom.xml Sat Sep 11 23:56:32 2010
@@ -130,7 +130,7 @@ under the License.
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<preBuildHookScript>setup</preBuildHookScript>
- <postBuildHookScript>validate</postBuildHookScript>
+ <postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
</configuration>
Modified: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh?rev=996225&r1=996224&r2=996225&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh (original)
+++ maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh Sat Sep 11 23:56:32 2010
@@ -20,19 +20,10 @@
import java.io.*;
-try
+File target = new File( basedir, "target/generated-sources/archetype/pom.xml" );
+if ( !target.isFile() )
{
- File target = new File( basedir, "target/generated-sources/archetype/pom.xml" );
- if ( !target.exists() || !target.isFile() )
- {
- System.err.println( target + " file is missing or not a file." );
- return false;
- }
-}
-catch( IOException e )
-{
- e.printStackTrace();
- return false;
+ throw new Exception( target + " file is missing or not a file." );
}
return true;