You can of course bundle the jar up with anything else for distribution.
The example below is what we do but you could just as easily include your
test case classes with a batch file for someone else to run. Invoke the
release:build-distribution-bin goal to build a zip.

  <postGoal name="release:setup-distribution-bin">
    <maven:get plugin="maven-release-plugin" property="releaseNameBin"
var="releaseNameBin" />

    <attainGoal name="jar"/>
    <attainGoal name="javadoc"/>

    <!-- include jar and associated docs -->
    <maven:get plugin="maven-javadoc-plugin"
property="maven.javadoc.destdir" var="maven.javadoc.destdir"/>
    <copy todir="${maven.build.dir}/${releaseNameBin}/docs/apidocs">
      <fileset dir="${maven.javadoc.destdir}" includes="**"/>
    </copy>

    <copy todir="${maven.build.dir}/${releaseNameBin}"
file="${maven.build.dir}/${maven.final.name}.jar"/>

    <!-- include database scripts -->
    <copy todir="${maven.build.dir}/${releaseNameBin}/dbscripts">
      <fileset dir="${basedir}/dbscripts">
       <include name="script1.sql"/>
       <include name="script2.sql"/>
       <include name="script3.sql"/>
       <include name="script4.sql"/>
      </fileset>
    </copy>

    <!-- include configuration files -->
    <copy todir="${maven.build.dir}/${releaseNameBin}/config">
      <fileset dir="${basedir}/src">
       <include name="popchart-config.xml"/>
       <include name="xsl-config.xml"/>
      </fileset>
    </copy>
  </postGoal>

Andy


                                                                                
                                                       
                      [EMAIL PROTECTED]                                         
                                                       
                      l.com                    To:       
[EMAIL PROTECTED], [EMAIL PROTECTED]                                    
                                               cc:                              
                                                       
                      13/12/2004 22:36         Subject:  Re: Test cases in jar  
                                                       
                      Please respond to                                         
                                                       
                      users                                                     
                                                       
                                                                                
                                                       
                                                                                
                                                       




No, this has been discussed several times.

If you want them to run your test cases, why not just give them the
whole source tree?

If you have a need to share test classes among projects, generally
they should be moved to a separate project where they are in main.


On Mon, 13 Dec 2004 16:22:03 -0500, Charles N. Harvey III
<[EMAIL PROTECTED]> wrote:
> Hello.
> I could swear this is really easy but I can't figure out how to include
> my test cases in my jar file.  I want to give the jar to someone else
> and have them run test cases, just so they can see what I am seeing.
> But since the test cases are in another source tree, they don't get
> included.  Is there something I can add in project.properties that I can
> add to have them included?
>
> Thanks a lot.
>
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.

On entering the GSi, this email was scanned for viruses by the Government
Secure Intranet (GSi) virus scanning service supplied exclusively by
Energis in partnership with MessageLabs.

Please see http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf
for further details.

In case of problems, please call your organisational IT helpdesk







For the latest data on the economy and society 
consult National Statistics at http://www.statistics.gov.uk

**********************************************************************
Please Note:  Incoming and outgoing email messages
are routinely monitored for compliance with our policy
on the use of electronic communications
**********************************************************************
Legal Disclaimer  :  Any views expressed by
the sender of this message are not necessarily
those of the Office for National Statistics
**********************************************************************

The original of this email was scanned for viruses by the Government Secure 
Intranet (GSi) virus scanning service supplied exclusively by Energis in 
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free

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

Reply via email to