ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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>

>-----Urspr√ľngliche Nachricht-----
>Von: Nir Geier [] 
>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: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message