On Fri, 2005-07-08 at 16:48 +0200, Mario Ivankovits wrote:
> Hi!
> >And is org.apache.commons.vfs.example package meant to be there?
> >  
> Do you have a tip how to exclude it from the binary build please.
> Have it in the source package isnt that bad as this package should hold 
> some exmpales - hopefully they get more and more in  the future.
> 

I would suggest putting examples in a separate directory tree from the
main source, eg
  src/java
  src/test
  src/examples

Distributing the examples with the src distro is then a matter of adding
a <copy> tag to the maven.xml for the source distribution goal.

I don't know whether you have unit tests that run against the example
code - if so, I don't know quite how to arrange that.

If you prefer to keep the examples in with the "real" code, then perhaps
you can do something like this in project.xml:
<build>
  ...
  <sourceModifications>
    <sourceModification>
      <className>no.such.class</className>
      <excludes>
        <exclude>**/*Example.java</exclude>
      </excludes>
    </sourceModification>
  </sourceModifications>
  ...

See: http://maven.apache.org/reference/project-descriptor.html#build

I think this will also have the desired effect of suppressing javadoc
for the excluded classes.


Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to