You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ep...@apache.org on 2004/09/24 14:00:37 UTC

cvs commit: maven-plugins/hibernate/src/plugin-test maven.xml

epugh       2004/09/24 05:00:37

  Modified:    hibernate/src/plugin-test maven.xml
  Log:
  MPHIBERNATE-9 plugin:test fails without a network connection  Fixed by just checking
  if maven.online.mode=true.
  
  Revision  Changes    Path
  1.6       +14 -13    maven-plugins/hibernate/src/plugin-test/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/hibernate/src/plugin-test/maven.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- maven.xml	25 Jul 2004 13:49:38 -0000	1.5
  +++ maven.xml	24 Sep 2004 12:00:37 -0000	1.6
  @@ -47,19 +47,20 @@
     </goal>  
     
     <goal name="test-hibernate-aggregate-mappings">
  -    <j:set var="maven.hibernate.input.dir" value="${maven.build.dest},${basedir}/src/etc" />    
  -    <attainGoal name="jar"/>
  -    <attainGoal name="hibernate:aggregate-mappings"/>
  -    
  -    <assert:assertFileExists file="${maven.hibernate.aggregate.output.file}"/>
  -    
  -    <!-- Verify that that files from both base directories are present -->
  -    <util:file var="rawFile" name="${maven.hibernate.aggregate.output.file}"/>
  -    <x:parse var="doc" xml="${rawFile}"/>
  -
  -    <x:set var="count" select="count($doc//hibernate-mapping//class)"/>
  -    <assert:assertEquals expected="2" value="${count.intValue().toString()}"/>  
  -
  +    <j:if test="${maven.mode.online}">
  +	    <j:set var="maven.hibernate.input.dir" value="${maven.build.dest},${basedir}/src/etc" />    
  +	    <attainGoal name="jar"/>
  +	    <attainGoal name="hibernate:aggregate-mappings"/>
  +	    
  +	    <assert:assertFileExists file="${maven.hibernate.aggregate.output.file}"/>
  +	    
  +	    <!-- Verify that that files from both base directories are present -->
  +	    <util:file var="rawFile" name="${maven.hibernate.aggregate.output.file}"/>
  +	    <x:parse var="doc" xml="${rawFile}"/>
  +	
  +	    <x:set var="count" select="count($doc//hibernate-mapping//class)"/>
  +	    <assert:assertEquals expected="2" value="${count.intValue().toString()}"/>  
  +	</j:if>
     </goal>  
     
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org