ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: Copying file that is used as a properties file
Date Fri, 28 Feb 2003 08:27:20 GMT
With the available task and/or the condition task, you can probably get what
you want.
Have a read in the ant manual.
Antoine
----- Original Message -----
From: "Matt Raible" <matt@raibledesigns.com>
To: <user@ant.apache.org>
Sent: Friday, February 28, 2003 7:56 AM
Subject: Copying file that is used as a properties file


> I have the following code to pick up a database's properties (actually,
> this is a renamed hibernate.properties file)
>
> <!-- Properties for loading and creating database from Ant -->
> <property file="${user.home}/.${ant.project.name}-database.properties"/>
> <property file="${user.home}/.database.properties"/>
> <property file="database.properties"/>
>
> This works great, however, I need this file (whichever one it is) to be
> copied to my classpath and renamed hibernate.properties:
>
>         <copy
> tofile="${webapp.target}/WEB-INF/classes/hibernate.properties"
>             file="database.properties" />
>
> I don't want to override anyone's custom database.properties file in the
> project's root (hence ${user.home} lookup).  Is it possible to determine
> the file that was loaded for the <copy> task?
>
> Thanks,
>
> Matt
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


Mime
View raw message