ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rizwan Merchant" <riz...@alpha-it.com>
Subject RE: moving directories
Date Tue, 13 Sep 2005 22:04:07 GMT

Hi again,
So I investigated further and realized that the command I am using to move
all directories(and their contents) which have name of the pattern UHM-*
moves all the directories and its files across to the new directory, but
leaves the directory structure behind in the old directory. Can anyone tell
me what I am doing wrong?
Thanks.

The command I am using is 

<move todir="${backUp.dir}" failonerror="true">
   <fileset dir="${root.dir}">
     <include name="${project.name}-*/**"/>
   </fileset>
</move>


Rizwan Merchant
Software Developer
Alpha-IT Technologies
416-449-2166
rizwan@alpha-it.com
 

-----Original Message-----
From: Rizwan Merchant [mailto:rizwan@alpha-it.com] 
Sent: Tuesday, September 13, 2005 2:35 PM
To: 'Ant Users List'; kinjal.vohra@mentorix.com
Subject: RE: moving directories


Thanks for the responses. There are no locks that I am aware of.

Kinjal, can you elaborate on that please? Which "file name" should I
include? I want all files under those directories to be moved along with the
directory. I have defined my fileset as 
                                    <fileset dir="${root.dir}">
		                         <include
name="${project.name}-*/**"/>
                                    </fileset>

Does that not include all directories, subdirectories and files under the
directory I want moved?


Rizwan Merchant
Software Developer
Alpha-IT Technologies
416-449-2166
rizwan@alpha-it.com
 
-----Original Message-----
From: Kinjal [mailto:kinjal.vohra@mentorix.com] 
Sent: Tuesday, September 13, 2005 12:39 PM
To: Ant Users List
Subject: RE: moving directories

Read the examples of fileset in Apache Ant document and do the changes as
per it. It should work.

Including the file name in your script should work.

Thanks and Regards,
Kinjal Vohra




------------------------------------
LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
kinjal.vohra@mentorix.com
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +919867240708
------------------------------------


-----Original Message-----
From: Bhadra, Jatin [mailto:Jatin.Bhadra@landg.com]
Sent: Tuesday, September 13, 2005 22:01
To: 'Ant Users List'
Subject: RE: moving directories


I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?

Jatin Bhadra
www.cmware.co.uk

-----Original Message-----
From: Rizwan Merchant [mailto:rizwan@alpha-it.com]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving directories




Hi,

I'm trying to move directories that have a certain pattern in their name to
another directory using the command below



                        <move todir="${backUp.dir}" failonerror="true">

                                    <fileset dir="${root.dir}">

                                                <include
name="${project.name}-*/**"/>

                                    </fileset>

                        </move>



So for example, I would like to move all directories (and all of their
contents) that have name of the pattern "UHM-*" to a backup directory. The
above command does move the directories over to the backup dir but not all
of the contents of the directories. It leaves behind the directories UHM-*
in the original directory and also creates the same in the backup directory.



Can anyone please tell me why the above command does not execute
successfully?



Thanks.







Rizwan Merchant

Software Developer

Alpha-IT Technologies

416-449-2166

rizwan@alpha-it.com







The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services Limited
(investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal &general (Portfolio Management Services) Limited:
2457525 Legal & General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal &general (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050


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


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




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




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


Mime
View raw message