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

  • Home
  • SEARCH
  • 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 7052207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:21:21+00:00 2026-05-28T03:21:21+00:00

I am working on some Java projects and using ant to build my projects.

  • 0

I am working on some Java projects and using ant to build my projects. The environment and the project structure is such that I cannot use any IDE.

Hence, I am looking for a good tool that can generate build.xml files to be used with ant (if possible something similar to autotools for c++).

  • 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-05-28T03:21:22+00:00Added an answer on May 28, 2026 at 3:21 am

    No such thing as a “standard” ANT file. This makes it difficult to develop a generic ANT file generator.
    Course there’s nothing stopping you from writing one yourself (simplified example below)

    Don’t forget that ANT is very cross-platform, unlike make. This might explain the lack of tools equivalent to autotools.

    Simple ANT file generator

    This example uses a simple template file called build.xml.template:

    <project name="%PROJECT_NAME%" default="helloworld">
    
        <target name="helloworld" description="Pretty pointless ANT target">
            <echo message="%MESSAGE%"/>
        </target>
    
    </project>
    

    The UNIX sed command can then be used to substitute values and generate the ANT file:

    $ sed -e 's/%PROJECT_NAME%/hello world/' -e 's/%MESSAGE%/hello world/' build.xml.template
    

    This is a really simple generator. I’d suggest investigate a proper template engine for a more powerful solution.

    Alternatives

    Maven

    As suggested in other answers, Maven can be used to generate new projects:

    $ mvn archetype:generate
    

    Still end up with a rather complex XML based file that might need further tweaking.

    Gradle

    If you’re looking for a Java build tool with a simple build specification, nothing beats Gradle.

    build.gradle:

    apply plugin: 'java'
    

    All you need is to compile a Java project with no external dependencies.

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

Sidebar

Related Questions

I'm working on a Java web project that uses Maven to build its artifacts.
I am working on a Java project where I have an ant build, which
I am working on some code using the EMF framework in Java, but it
In Java, there is no such thing as an unsigned byte. Working with some
Working on some tweaks for a build script, I noticed that the output from
I'm currently working on a plug-in for Eclipse that translates some custom Java code
I am working on a Java project using spring2 and Maven. I have already
I am currently working on a Java project using Qt Jambi for the UI.
Im working on a java project where i need to read some objects from
I am working on a Java project that I want to deliver to my

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.