ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Copying files to unknown folder name (jboss war deployed folder)
Date Tue, 09 Aug 2005 10:12:47 GMT
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


Mime
View raw message