Hi Martin,
I'm using maven 1.x (sorry, should have been clearer about this), and the activation tag doesn't seem to apply to maven 1.x. Does anyone have any similar advice that is maven 1.x related? From: [email protected] To: [email protected] Subject: RE: Using test:match during site creation Date: Fri, 24 Apr 2009 09:24:21 -0400 http://maven.apache.org/pom.html#Activation --so env-dev profile is activated by a jelly test when filename found which = Foo <project xmlns:j="jelly:core" <j:set var="testmatchpattern" value="**/Foo.*"/> <profile> <id>env-dev</id> <activation> <property> <j:when test="${testmatchpattern}"> <echo> You must define the test case to run via -Dtestmatchpattern=pattern Example: maven -Dtestmatchpattern=*Foo* test:match </echo> </j:when> </property> </activation> <!-- activate env-dev profile ONLY IF testmatchpattern has a Filename=Foo --> Martin ______________________________________________ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: [email protected] > To: [email protected] > Subject: Using test:match during site creation > Date: Fri, 24 Apr 2009 10:13:31 +0000 > > > Hi, > > I'm trying to use the testmatchpattern and testnotmatchpattern to identify > which test classes should be run. My patterns have been set in > project.properties, and when I run "maven test:match" I now get the desired > results. However when I run "maven site", the test run that occurs during > site creation isn't using the testmatchpattern and testnotmatchpattern > properties. > > Is there a way to ensure that the site goal uses the test:match goal (or is > there another way in which testmatchpattern and testnotmatchpattern must be > defined for "maven site" to use them)? > > Cheers, > Joe > > _________________________________________________________________ > Beyond Hotmail — see what else you can do with Windows Live. > http://clk.atdmt.com/UKM/go/134665375/direct/01/ Windows Live™ Hotmail®:…more than just e-mail. Check it out. _________________________________________________________________ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/
