facebook

General Question about building dependencies

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #221924 Reply

    lhale
    Participant

    Sorry, but I’m new to the MyEclipse environment, but not new to Java, so here goes :

    1) I’m finding it impossible to get MyEclipse to build a particular Java source file under a MyEclipse project. This project is one that already has a deep hierarchy of java classes, but doesn’t appear to have an extensive build.xml. As you can imagine, there are dependencies all over the place that I need to teach MyEclipse IDE about. How is this done ?

    I’d rather not have to manually build an ant build file for this large chunk of code.
    2) Isn’t there a way of demarcating the dependencies under MyEclipse or some mapping tool that might work with the ant build structure ?
    3) Isn’t there some graphical UI tool that might be able to help me map out the build dependencies in the standard build.xml format ?

    4) So, to phrase question #1 as simple as possible, How do I tell a MyEclipse project to build some files before others (usually the others depend on the class files built before it).

    For questions 1&4, I was looking for a easy mechanic, such as right clicking on a source file under a project to build it, but there’ s no such feature in MyEclipse.

    #221934 Reply

    Greg
    Member

    First I would take a look at some of the java developer guides in Eclipse help under Help > Help Contents > Java Development User Guide > Getting Started > Project Configuration Tutorial. They should help in matching your project layout to eclipse like layout.

    In eclipse anything that is under a “source folder” will be automatically built and recompiled after any resource change. You can create multiple source folders but they will all be output into the output location for the project. By default on java projects this is the/bin directory and on webprojects this is the <webroot_dir>/WEB-INF/classes. If you have dependencies that need to be built first, I would recommend putting them in a seperate eclipse project. Then in the projects that depend on the other project, you can add a dependency using the Project properties > Java Build Path.

    Be sure and take a look at the Working with Web Projects quickstart if you are setting up a webproject. There is also a section in there that covers advanced deployment of your dependent projects and libraries. You will to pay attention to that section if you are going to get your multiple projects to deploy correctly.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: General Question about building dependencies

You must be logged in to post in the forum log in