Le 04/01/2015 21:05, Phil Steitz a écrit : > > > > >> On Jan 4, 2015, at 11:21 AM, Gilles <gil...@harfang.homelinux.org> wrote: >> >> Hi. >> >> In the "src/userguide/java" directory, there are a few >> self-contained usage examples. >> >> I think that we should have some way to >> 1. automatically compile its content (so that we can ensure that the >> source tree does not contain any non-compilable stuff) and >> 2. run selected classes (so that users easily see CM code at work) >> >> It looks like it should not be too difficult (for an experienced >> maven user, which I'm not) to create a profile for doing just that. >> [I've seen there is an "exec" plugin that could do (2), but I >> didn't find where, in the "pom.xml", one can specify an alternate >> directory for indicating which sources to compile.] > > This kind of thing is pretty easy in Ant. I would be +1 on just adding a > build.xml to the directory where the examples live.
It seems the tools jar is created in our pom by using maven-antrun-plugin. It contains the PerfTestUtils class from the tests. I don't remember what is is for. This may be a way to do what you want. best regards, Luc > > Phil >> >> >> Thanks for any hint, >> Gilles >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org