Create a properties file for Java web app

After playing with JavaScript for a while, I got a chance to jump back to the server-side for a bit. I found myself a need to create a properties file. A look on the Internet led me to Vince’s blog. It has 90% of what I need. The missing piece was to add an ant task to copy the properties file right before building the WAR file. Here is my version of the ant task:

<target name="-pre-dist">
    <copy todir="build/web/WEB-INF/classes">
        <fileset dir="src" includes="*.properties"/>

After adding the ant task, everything works beautifully! 🙂


One thought on “Create a properties file for Java web app

  1. Articles are created to express different body of knowledge. That is why I admire writers who are passionate of doing such incredible job. I salute you guys. By the way, I like you post for it is specifically talk about current issues and technicalities in life. I look forward for your subsequent post.I look forward for your next article.Thanks Marks Liferay Development

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s