Justin Deoliveira wrote: >I think it might make more sense to >instead of having an offline profile, To have two profiles online, and >extensive, and keep the current default profile behavious. > >I say this because perhaps I want to make the default profile in my >module something different for whatever reason, this means I have to >specify offline as well. > >Basically in my opinion is makes sense to always by default ( no matter >the profile ) have online and extensive tests disabled. > > I agree, but don't see an obvious way to make it work. Once the *OnlineTests.java exclusion is applied, I don't see a way to override it -- anyone know how to do it?
I did attempt to use a boolean value and a profile activator to add the exclusion only where appropriate, but it only seems to work properly when the value is passed as an environment variable on the maven command line. Hmm.. so we could set environment variables rather than specifying a profile: mvn -Dtests.online=true install mvn -Dtests.extensive=true install and have 2 hidden profiles which are activated when these values values are respectively false... but then we hit that "bug" again, since the activator won't fire unless we explicitly specify -Dtest.online=false... grrr -- i'm watching you maven... Cory. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
