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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:10:22+00:00 2026-05-16T20:10:22+00:00

I have an existing J2EE project which is very big and old. Therefore, my

  • 0

I have an existing J2EE project which is very big and old. Therefore, my current building process is to open eclipse, file/export, and clic on War archive.

While our company turn over is as fast as new build is needed, we have to create an automated process. However, I’m searching the fastest way to automate building. I’m first looking to Maven2, but our application has a JDK1.4, which is lesser than the minimum 1.5.

I was looking to Maven1, but after some weirds bugs and some reading, it seems to be only an overlay to Ant. Why I’m not using directly Ant?

Here we are, I’m looking at Ant documentation and try to writing build.xml but it seems to be too much arduous with my big project. For god’s sake, when I clic to Export/War, Eclipse do the job. Why I can’t in the simplest way, reproduce or export the way Eclipse export the war file, into a build.xml or what else?

Some tools which convert Eclipse-metadata into ant-build.xml should exists. But does anyone know them ?

  • 1 1 Answer
  • 1 View
  • 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-16T20:10:22+00:00Added an answer on May 16, 2026 at 8:10 pm

    I don’t think that creating the ant script to be so hard.
    Anyway, maybe this link could help: Creating a deployable WAR file from Eclipse Project

    Here is an example Ant file (copied from the linked page):

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="Deploy From Eclipse to Tomcat" basedir=".">
        <property name="warfile" value="sanfran"/>
        <target name="unpack">
           <unwar src="${warfile}.war" dest="${warfile}" />
        </target>
        <target name="create">
            <war destfile="${warfile}.war" webxml="WebContent/WEB-INF/web.xml" update="true">
                <classes dir="build\classes"/>
                <fileset dir="WebContent">
                    <exclude name="WEB-INF/web.xml"/>
                </fileset>
            </war>
        </target>
        <target name="copy">
            <copy todir="c:\tomcat5517\webapps" overwrite="true">
                <fileset dir=".">
                    <include name="*.war"/>
                </fileset>
            </copy>
        </target>
        <target name="deploy">
            <antcall target="create"/>
            <antcall target="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 existing Linux shared object file (shared library) which has been stripped. I
I have an existing Node project sitting in my Dropbox, and when I open
I am developing a dynamic web project j2ee web application using eclipse. I have
I have been two months on a one year old java/J2EE project, and every
I have existing code with their own makefiles which I want to load into
I'm working on a project where the client wants to have existing pages dynamically
I have existing websites with PHP/MySQL framework. They are very busy and chat, events,
I have an existing app in which I made the mistake of using String.GetHashCode
I am new to MongoDb but have an existing application which would benefit heavily
I am building an ASP.NET UI on an existing system, which consists of separate

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.