ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nir Geier" <Nir.Ge...@unipier.com>
Subject RE: Copying files to unknown folder name (jboss war deployed folder)
Date Tue, 09 Aug 2005 11:24:07 GMT
can u show a code sample please?
i have no idea on how to do it.

ty very much for your help.


-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Tuesday, August 09, 2005 12:13 PM
To: user@ant.apache.org
Subject: AW: Copying files to unknown folder name (jboss war deployed folder)


Just thoughts:
- create a fileset from the jboss directory including your deploy-dir
  -- use selectors to get the newest one
- use <pathconvert> to get the target location
- use that property as todir for <copy>
 
Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Nir Geier [mailto:Nir.Geier@unipier.com] 
>Gesendet: Dienstag, 9. August 2005 12:59
>An: Ant Users List
>Betreff: Copying files to unknown folder name (jboss war 
>deployed folder)
>
>Hi all,
>
>I'm trying to achieve this simple task:
>
>I want to copy files to my jboss deploy dir.
>The deploy dir is generated automatically every server 
>start/deploy and get the following name pattern:
>	
>	XXXXXMyAppName.war
>
>now i want to copy files from c:\aaa into the above directory.
>Reminding that on each restart/deploy teh XXX is diffrenent
>
>I have tried to use :
>deploy.dir = the parent directory of the above folder.
>
><fileset dir="${deploy.dir}" includes="**/*.*">
>	<contains text="MyAppName.war" casesensitive="no" /> </fileset>
>
>I still don't know how to get the directory and copy into it.
>
>Ty in advance.
>
>---------------------------------------------------------------------
>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