Well, unfortunately I think you're going to wind up with one of two
possibilities:

1. you *might* be able to setup filtering for your assembly descriptor, then
flip true/false in the <includeBaseDirectory/> element...though this may
include your assembly descriptor in the resulting jar (not sure on that, I'd
have to play with it a little).

2. you may just want to create two assembly descriptors, with different
values for <includeBaseDirectory/>, then use a <component/> reference for
common elements. This might be simplest to understand 2 years from now when
you come back to it...

I'd recommend taking a close look at option #2, with the help of these
references:

http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
http://maven.apache.org/plugins/maven-assembly-plugin/component.html

(BTW, it looks like you've tried to put POM configuration of the assembly
plugin into your assembly descriptor, with the <archiveBaseDirectory/>
element...might take a closer look at the *Goals* link on the
maven-assembly-plugin webpages...)

HTH,

John

On 4/26/07, Harris, Philip <[EMAIL PROTECTED]> wrote:

I want to create a simple tar file which has two directories, each with
a couple of files.
When the tar file is extracted, the directories needs to be extracted to
the current working directory - not to a subdirectory in the
project-version directory.

I do not have the luxury of being ablt to extract them and the move the
contents.

To complicate things, I am creating two assemblies one I want to have
the default root directory and this other one not

Is this possible using some form of outputDirectory in the assembly.xml?

Thanks

My assembly.xml looks like this at the moment ggg is just a test (kkk
and YYY were other tests!) ;-)

<assembly>
<id>config-bin</id>
<!-- <includeBaseDirectory>true</includeBaseDirectory> -->
<!-- <archiveBaseDirectory>kkk</archiveBaseDirectory> -->
<!-- <workDirectory>YYY</workDirectory> -->
<formats>
   <format>tar.gz</format>
</formats>
<fileSets>
  <fileSet>
   <directory>src/main/resources/config</directory>
   <lineEnding>unix</lineEnding>
   <outputDirectory>ggg</outputDirectory>
   <includes>
    <include>env/*.props</include>
    <include>vault/*.props</include>
   </includes>
  </fileSet>
</fileSets>
</assembly>


--
This e-mail is confidential and the information contained in it may be
privileged.  It should not be read, copied or used by anyone other than the
intended recipient.  If you have received it in error, please contact the
sender immediately by telephoning +44 (0)20 7623 8000 or by return email,
and delete the e-mail and do not disclose its contents to any person.  We
believe, but do not warrant, that this e-mail and any attachments are virus
free, but you must take full responsibility for virus checking.  Please
refer to http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail
disclaimer statement and monitoring policy.

Dresdner Kleinwort is the trading name of the investment banking division
of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner
Kleinwort Limited, Dresdner Kleinwort Securities Limited and their
affiliated or associated companies.  Dresdner Bank AG is a company
incorporated in Germany with limited liability and registered in England
(registered no. FC007638, place of business 30 Gresham Street, London EC2V
7PG), and is authorised by the German Federal Financial Supervisory
Authority and by the Financial Services Authority ('FSA') and regulated by
the FSA for the conduct of designated business in the UK.  Dresdner
Kleinwort Limited is a company incorporated in England (registered no.
551334, registered office 30 Gresham Street, London EC2V 7PG), and is
authorised and regulated by the FSA.  Dresdner Kleinwort Securities Limited
is a company incorporated in England (registered no. 1767419, registered
office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated
by the FSA.




--
John Casey
---
Maven Developer (http://maven.apache.org)
---
Blog: http://www.ejlife.net/blogs/buildchimp

Reply via email to