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 7806497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:33:19+00:00 2026-06-02T02:33:19+00:00

I have make jar war EAR using ant and Hudson and store all files

  • 0

I have make
jar
war
EAR

using ant and Hudson and store all files at some temp folder

now I want to copy all war and ear files to jboss jboss/default/deploy folder using Apache ANT

How can I do this??

Following is my master build file
which call all other build.xml files and make jar war ear files

but after making this all files this don’t copy all any of the files to jboss/default/deploy folder

<copy todir="${jbossdeploy.dir}" overwrite="yes">
        <fileset dir="${class.dir}/ear" includes="MessageBoardEAR.ear"/>


    </copy>

<project name="master" >

    <property name="class.dir" location="../Source/buildwork" />
    <property name="ecpsproperties.dir" location="D:\ecpsproperties\jars\platform" />
    <property name="jbossdeploy.dir" location="D:\jboss-6.1.0.Final\server\default\deploy" />

    <target name="clean">
        <delete dir="${class.dir}" />

    </target>

    <target name="makedir">
        <mkdir dir="${class.dir}" />
        <mkdir dir="${class.dir}/jar" />
        <mkdir dir="${class.dir}/ear" />
        <mkdir dir="${class.dir}/war" />
    </target>

<filelist id="projects" dir=".">
        <file name="../Source/ValueObjects/build.xml"/>
        <file name="../Source/ECPSValueObjects/build.xml"/>
        <file name="../Source/ECPSUtils/build.xml"/>
        <file name="../Source/CommonExceptions/build.xml"/>
         <file name="../Source/ECPSExceptions/build.xml"/>
         <file name="../Source/ECPSCommon/build.xml"/>
         <file name="../Source/BaseDAO/build.xml"/>
         <file name="../Source/PageManagerValueObjects/build.xml"/>
         <file name="../Source/PageManagerDAO/build.xml"/>
         <file name="../Source/ECPSDAO/build.xml"/>
         <file name="../Source/PageManagerEJBClient/build.xml"/>
         <file name="../Source/PartyEJBClient/build.xml"/>
          <file name="../Source/ReportsEJBClient/build.xml"/>
         <file name="../Source/StagingEJBClient/build.xml"/>
          <file name="../Source/MessageBoardEJBClient/build.xml"/>
         <file name="../Source/PageManagerFacade/build.xml"/>
          <file name="../Source/PartyFacade/build.xml"/>
         <file name="../Source/ReportsFacade/build.xml"/>
          <file name="../Source/StagingFacade/build.xml"/>
         <file name="../Source/MessageBoardFacade/build.xml"/>

          <file name="../Source/MessageBoardEJB/build.xml"/>
         <file name="../Source/MessageBoardEAR/build.xml"/>
         <file name="../Source/PageManagerEJB/build.xml"/>
          <file name="../Source/PageManagerEAR/build.xml"/>

           <file name="../Source/PartyEJB/build.xml"/>
         <file name="../Source/PartyEAR/build.xml"/>

         <file name="../Source/ReportsEJB/build.xml"/>
          <file name="../Source/ReportsEAR/build.xml"/>

          <file name="../Source/StagingEJB/build.xml"/>
         <file name="../Source/StagingEAR/build.xml"/>

          <file name="../Source/Admin/build.xml"/>
         <file name="../Source/eCPSClient/build.xml"/>
          <file name="../Source/MessageBoardServices/build.xml"/>
           <file name="../Source/OAuth/build.xml"/>
            <file name="../Source/PageManagerRest/build.xml"/>
             <file name="../Source/PartyServices/build.xml"/>
             <file name="../Source/ReportsServices/build.xml"/>
          <file name="../Source/StagingServices/build.xml"/>


 </filelist>



    <copy todir="${jbossdeploy.dir}" overwrite="yes">
        <fileset dir="${class.dir}/ear" includes="MessageBoardEAR.ear"/>


    </copy>




 <target name="main" depends="clean, makedir">
    <subant>

      <filelist refid="projects" />

    </subant>

 </target>
</project>
  • 1 1 Answer
  • 0 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-06-02T02:33:21+00:00Added an answer on June 2, 2026 at 2:33 am

    this should work as I have added copy task under main :

    <project name="master" >
    
    <property name="class.dir" location="../Source/buildwork" />
    <property name="ecpsproperties.dir" location="D:\ecpsproperties\jars\platform" />
    <property name="jbossdeploy.dir" location="D:\jboss-6.1.0.Final\server\default\deploy" />
    
    <target name="clean">
    <delete dir="${class.dir}" />
    
    </target>
    
    <target name="makedir">
    <mkdir dir="${class.dir}" />
    <mkdir dir="${class.dir}/jar" />
    <mkdir dir="${class.dir}/ear" />
    <mkdir dir="${class.dir}/war" />
    </target>
    
    <filelist id="projects" dir=".">
    <file name="../Source/ValueObjects/build.xml"/>
    <file name="../Source/ECPSValueObjects/build.xml"/>
    <file name="../Source/ECPSUtils/build.xml"/>
    <file name="../Source/CommonExceptions/build.xml"/>
    <file name="../Source/ECPSExceptions/build.xml"/>
    <file name="../Source/ECPSCommon/build.xml"/>
    <file name="../Source/BaseDAO/build.xml"/>
    <file name="../Source/PageManagerValueObjects/build.xml"/>
    <file name="../Source/PageManagerDAO/build.xml"/>
    <file name="../Source/ECPSDAO/build.xml"/>
    <file name="../Source/PageManagerEJBClient/build.xml"/>
    <file name="../Source/PartyEJBClient/build.xml"/>
    <file name="../Source/ReportsEJBClient/build.xml"/>
    <file name="../Source/StagingEJBClient/build.xml"/>
    <file name="../Source/MessageBoardEJBClient/build.xml"/>
    <file name="../Source/PageManagerFacade/build.xml"/>
    <file name="../Source/PartyFacade/build.xml"/>
    <file name="../Source/ReportsFacade/build.xml"/>
    <file name="../Source/StagingFacade/build.xml"/>
    <file name="../Source/MessageBoardFacade/build.xml"/>
    
    <file name="../Source/MessageBoardEJB/build.xml"/>
    <file name="../Source/MessageBoardEAR/build.xml"/>
    <file name="../Source/PageManagerEJB/build.xml"/>
    <file name="../Source/PageManagerEAR/build.xml"/>
    
    <file name="../Source/PartyEJB/build.xml"/>
    <file name="../Source/PartyEAR/build.xml"/>
    
    <file name="../Source/ReportsEJB/build.xml"/>
    <file name="../Source/ReportsEAR/build.xml"/>
    
    <file name="../Source/StagingEJB/build.xml"/>
    <file name="../Source/StagingEAR/build.xml"/>
    
    <file name="../Source/Admin/build.xml"/>
    <file name="../Source/eCPSClient/build.xml"/>
    <file name="../Source/MessageBoardServices/build.xml"/>
    <file name="../Source/OAuth/build.xml"/>
    <file name="../Source/PageManagerRest/build.xml"/>
    <file name="../Source/PartyServices/build.xml"/>
    <file name="../Source/ReportsServices/build.xml"/>
    <file name="../Source/StagingServices/build.xml"/>
    
    
    </filelist>
    
    
    
    
    
    
    
    
    <target name="main" depends="clean, makedir">
    <subant>
    
    <filelist refid="projects" />
    
    </subant>
    
    <copy todir="${jbossdeploy.dir}" overwrite="yes">
    <fileset dir="${class.dir}/ear" includes="MessageBoardEAR.ear"/>
    
    
    </copy>
    </target>
    </project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have make build.xml make master build.xml and make jar war ear files now
how can I make jar for my java files in linux? I have this
We have a huge EAR application with about 20 ejb-jar and war modules. For
Using this sample : I have make my own Fragment that holds tabhost and
I have to make column charts in Excel using VBA only (no user input).
I have to make a graphical user interface application using the language of my
I'm trying to make an executable war file ( java -jar myWarFile.war ) that
I'm using maven2 with eclipse for an ear project with multiple war, ejb and
I have an Eclipse Java project? How can I make a jar for the
I have a 3rd party JAR file that is compiled using Java 1.4. Is

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.