ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nystrom, Edward" <edward.nyst...@omgeo.com>
Subject flatten question
Date Wed, 19 May 2004 13:43:57 GMT
Greetings - I want to take all the files from a directory tree, flatten them
into one directory, and tar that directory.  The problem I am having is that
the directories themselves are being created along with the files during the
flatten.  I do not want empty directory entries in my new directory.  Am I
messing something?  Here is my code and results:

   <target name="alertweb-db-tar" description="tarfile for app box/database
deployment">
        <delete dir="../temp"/>
        <copy todir="../temp">
            <fileset dir="../stoprocs"/>
            <mapper type="flatten"/>
        </copy>
        <tar destfile="${tarfile.db.path}" longfile="warn">
            <tarfileset dir="../temp" mode="755" prefix="AlertWeb/stoprocs">
            </tarfileset>
        </tar>
    </target> <!-- end target name="alertweb-db-tar -->

the directory temp looks like this.  I do not want empty directories there.
Any help would be appreciated.  Thanks.  Ed.

[aldevwls3:/export/home/nystrom/viewstore/nystrom-snap-wls3/vobs/alert/alert
web/temp]$ls -l
total 464
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 alert-related/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 audit/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 common/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 custodian/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 drop-down lists/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 institution/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 key fields/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 lists/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 messages/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 miscellaneous/
drwxrwx---    2 nystrom  galileo      4096 May 19 09:20 settings/
-rw-rw----    1 nystrom  galileo      1038 May 19 09:20 sp_acceptMsg.sql
-rw-rw----    1 nystrom  galileo      2058 May 19 09:20 sp_acctsNoAccess.sql
-rw-rw----    1 nystrom  galileo      4360 May 19 09:20
sp_acctsTotalNumData.sql
-rw-rw----    1 nystrom  galileo      1385 May 19 09:20
sp_acctsWithCustModel.sql
-rw-rw----    1 nystrom  galileo      1378 May 19 09:20
sp_acctsWithInstModel.sql
-rw-rw----    1 nystrom  galileo      1218 May 19 09:20
sp_acctsWithModels.sql
-rw-rw----    1 nystrom  galileo      1242 May 19 09:20
sp_acctsWithNoModels.sql
-rw-rw----    1 nystrom  galileo      2261 May 19 09:20 sp_addKeyField.sql
-rw-rw----    1 nystrom  galileo      1304 May 19 09:20 sp_addListValue.sql
-rw-rw----    1 nystrom  galileo      1217 May 19 09:20
sp_addMsgMaintenance.sql
...


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message