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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:43:56+00:00 2026-06-01T08:43:56+00:00

I have created an EAR project in Eclipse to be deployed on JBoss. In

  • 0

I have created an EAR project in Eclipse to be deployed on JBoss. In there I have created 4 projects, One EAR, under it one Hibernate project(data tier), one EJB project(bussiness tier) and Dyanamic Web Project(web project).
MBS(EAR)
-MBSData
-MBSEjb
-MBSWeb

I am creating ANT build.xml for this project. I have created individual build.xml from every project. I will be creating build.xml for MBS(EAR) project and in this build.xml, I will be calling child build.xml like

<target name="build" description="build all projects in reference to this project">
    <ant antfile="build.xml" dir="${MBSData.location}" inheritAll="true" target="build"/>
</target>

Since in every build.xml the jboss_runtime_classpath is duplicated, I want to put it at one place. So I want to know how this classpath can be propagated to child build.xml?

  • 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-01T08:43:57+00:00Added an answer on June 1, 2026 at 8:43 am

    One option to define classpath in build.xml and import it every where. This is available in ant 1.8. (Probably available in earlier version. See comment from @ Oers )

    I would not suggest the idea of defining a single classpath and use it every where. Each project should have well defined compile time dependency and runtime dependency(say for tests or running app using ant). Having a big class path that is reused everywhere will lead to code from one area (say GUI) using code from another(say persistence)

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

Sidebar

Related Questions

I have an ear app with two EJB and one WEB (war) projects all
I have created an EAR with a web project, ejb3 project and the ejb
I have created a simple EAR the contains a EJB module and a Application
Let's say I have two ear file and one .jar file with an EJB
I have created an EAR file for deployment in JBoss application server with ANT
I have an EAR file with a nested EJB project, a .war dynamic web
I create three projects: An EAR parent project, an EJB child project, and a
I have an EJB3 project to be deployed on JBoss 5.1.0 GA. I have
i have created a simple public ref class in the vc++ project, which is
I have created one table using the below command: create table Table1( Id int

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.