Hi all, I've created a plugin that generates code for my app. It generates test classes for generated classes too.
/target/src/java <- generated classes /target/src/test <- generated test classes for generated classes I've found on the web a tip to force "maven test" to run my tests : (http://jroller.com/comments/dep4b/Weblog/maven_is_too_smart_for) <preGoal name="test:compile"> <ant:path id="maven.test.compile.src.set"> <j:if test="${unitTestSourcesPresent == 'true'}"> <ant:pathelement location="${pom.build.unitTestSourceDirectory}"/> </j:if> <ant:pathelement location="${maven.build.src}/test" /> </ant:path> <j:set var="unitTestSourcesPresent" value="true"/> </preGoal> I'd like to reduce pregoal to something like this to hide complexity : <preGoal name="test:test"> <attainGoal name="myplugin:test"/> </preGoal> If I put previous code into a "myplugin:test" goal it doesn't workj any more. Is they're a way to do this ? I've tried to use <maven:set> without success. Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
