Jody Garnett wrote:

>Having a bit of fun helping someone set up trunk for mac development:
>- rendering-styling - fatal tests
>- espg-access - same
>
>I would like to set up a maven profile to at least exclude the tests if 
>we are on a mac; and at most exclude the module.
>Anyone played in this area before?
>  
>
A while back we added an exclusion for the entire epsg-access module for 
mac.  This is a little backwards as the code below will add the 
epsg-access module to the list of modules to build if you are windows or 
unix:

Modified: geotools/trunk/gt/modules/plugin/pom.xml
===================================================================
--- geotools/trunk/gt/modules/plugin/pom.xml    2006-11-03 20:48:02 UTC (rev 
22589)
+++ geotools/trunk/gt/modules/plugin/pom.xml    2006-11-03 20:53:57 UTC (rev 
22590)
@@ -19,6 +19,30 @@
     <version>2.4-SNAPSHOT</version>
   </parent>
   
+  <profiles>
+    <profile>
+      <id>windows</id>
+      <activation>
+        <os>
+          <family>windows</family>
+        </os>
+      </activation>
+      <modules>
+        <module>epsg-access</module>      
+      </modules>
+    </profile>
+    <profile>
+      <id>unix</id>
+      <activation>
+        <os>
+          <family>unix</family>
+        </os>
+      </activation>
+      <modules>
+        <module>epsg-access</module>      
+      </modules>
+    </profile>
+  </profiles>
 
   <!-- =========================================================== -->
   <!--     Module Description                                      -->
@@ -54,7 +78,6 @@
   <!-- =========================================================== -->
   <modules>
     <module>arcgrid</module>
-    <module>epsg-access</module>
     <module>epsg-hsql</module>
     <module>epsg-postgresql</module>
     <module>epsg-wkt</module>


So we if want shutdown an entire module, we can do this again, or if we 
just want to exclude some tests when we are mac, then we can have a 
single mac-activating profile in the module of interest that adds some 
test exclusions.

More goodies here: 
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Cheers,
Cory.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to