oops. Of course the idea is to use the page.properties file as your
filtersfile too.

 <target name="-post-compile">
           <filter filtersfile="page.properties"/>
           <copy todir="build" filtering="true">
               <fileset dir=".">
                   <include name="page.properties" />
               </fileset>
           </copy>
       </target>

On 3/11/07, Alexandre Bairos <[EMAIL PROTECTED]> wrote:

You can easily achieve this with ant filtering, for example.

ant file snippet:

(...)
        <target name="-post-compile">
            <filter filtersfile="build-ex.properties"/>
            <copy todir="build" filtering="true">
                <fileset dir=".">
                    <include name="page.properties" />
                </fileset>
            </copy>
        </target>

page.properties:
my.label=My homepage
[EMAIL PROTECTED]@ is neat.
my.label2 = My other page
[EMAIL PROTECTED]@ is weird
[EMAIL PROTECTED]@ and cool.



On 3/10/07, Jonathan Cone <[EMAIL PROTECTED]> wrote:
>
>
> Is it possible to substitute properties into other properties? I tried
> the
> Ant-like syntax:
>
> Page1.properties:
>
> my.label=My homepage
> my.other.label=${my.label} is neat.
>
>
> Is there a syntax which would render my.other.label as 'My homepage is
> neat.'?
>
>
> --
> View this message in context: 
http://www.nabble.com/Property-file-substitution-tf3382305.html#a9414382
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to