Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1080181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:59:01+00:00 2026-05-16T21:59:01+00:00

I have a project which I can build and deploy correctly using Ant I

  • 0

I have a project which I can build and deploy correctly using Ant

I want to build a war file to deploy the project.

I can get everything working except I cannot get the properties file to appear in the classes directory.

My properties file is located here:
${resources_dir}/${app}/Report.properties

This is the war section of my build file:

<war destfile="${dist_dir}/${app}.war" webxml="${resources_dir}/${app}/web.xml">    
     <fileset dir="${resources_dir}/${app}" includes="*.jsp,*.jspf,*.html,*.css" />
     <zipfileset dir="${resources_dir}/${app}/webct" prefix="webct" />
     <zipfileset dir="${resources_dir}/${app}/css" prefix="css" />
     <zipfileset dir="${resources_dir}/${app}/js" prefix="js" />    
     <zipfileset dir="${resources_dir}/${app}/images" prefix="images" />
     <classes dir="${build_dir}" includes="com/mycompany/${app}/*,com/mycompany/${app}/tixdata/*" />
     <lib dir="${commonlib_dir}">
          <include name="common.jar"/>
     </lib>
</war> 

How can I move the properties file into the correct classes directory?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:59:01+00:00Added an answer on May 16, 2026 at 9:59 pm

    Just specify an additional classes element

    <war destfile="${dist_dir}/${app}.war" webxml="${resources_dir}/${app}/web.xml"> 
         ..   
         <classes dir="${resources_dir}/${app}" includes="Report.properties"/>
         ..
    </war> 
    

    It’s just a special form of fileset.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following ant file to build. But unfortunately <project default=build.deploy.start basedir=.> <property name=target.dir
I am having a java project with a ant build file, using this ant
we're using Jenkins as our build server. We have a Project which is built
I have a Django project. Given a url, how can I know which view
I have a WCF visual studio project, which contains many SVC files. Can I
I have a project which is source controlled using Subversion and VisualSVN. Since the
I have a project which builds correctly from the command line. On one of
I have a project which as part of the build process creates an XMLBeans
I have a standard sql server 2008 project which has been created using vs2010.
I'm using web deploy to a remote server, through which we can only connect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.