Le 05/01/2015 18:41, Gilles a écrit : > On Sun, 4 Jan 2015 20:31:30 +0000, sebb wrote: >> Did you see my mail from earlier today titled as below ? >> >> Compiling and running examples >> >> This explains how Commons NET examples are built and used. > > Copy-pasting Sebb's proposal from the other thread: > >> [Examples] can be invoked using java -jar commons-net-examples.jar >> ExampleName parameters. >> This assumes that the user has put the examples and main net jars >> in the same directory. > > Would everyone agree to move the "userguide" code into the "main" > directory? > [Of course, this would imply that we need to modify the "pom.xml" > in order to exclude the "userguide" code from the CM library JAR.] > > Please let me know if this solution is fine, so that I can modify > the CM's "pom.xml" file and move the code accordingly.
No problem for me, as long as maven can find the docs. best regards, Luc > > > Thanks, > Gilles > >> On 4 January 2015 at 18:21, 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.] >>> >>> >>> Thanks for any hint, >>> Gilles > >> 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