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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:34:26+00:00 2026-05-30T18:34:26+00:00

Here is what I have that work with windows <target name=forknewant> <property name=ant.dir value=${basedir}/apache-ant-1.8.2

  • 0

Here is what I have that work with windows

<target name="forknewant">
 <property name="ant.dir" value="${basedir}/apache-ant-1.8.2" />
 <exec executable="cmd" dir="${project.loc}">
    <arg value="/K" />
    <arg value="start" />
    <arg value="&quot;${project.title}&quot;" />
    <arg line="cmd.exe /k ant" />
    <arg value="-Dtest.haltonfailure=no" />
    <env key="CLASSPATH" value="" />
    <env key="ANT_HOME" value="${ant.dir}" />
    <env key="PATH" value="${ant.dir}/bin;${java.home}/bin" />
 </exec>
</target>

Requirement for this code is to fork a new build, parent build doesn’t wait and console output is displayed.

I know this work for windows but I am looking for cross platform way of doing it.

  • 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-30T18:34:28+00:00Added an answer on May 30, 2026 at 6:34 pm

    You might be able to achieve what you want with the ant task which runs one Ant script from another. Something like this:

    <ant antfile="build.xml"
         dir="${project.loc}"
         inheritAll="false"
         inheritRefs="false" />
    

    However, the parent build file will wait for this task to complete before it proceeds.

    You can consider using the parallel task to run several things in parallel. Depending on exactly what it is you want to do, this might solve your problem. Be sure to read the warnings about concurrency in the documentation for parallel.

    parallel will wait until all tasks it runs are completed. However, you can use the daemons tag to avoid that. So the closest thing to what you ask for would be:

    <parallel>
        <daemons>
            <ant antfile="build.xml"
                 dir="${project.loc}"
                 inheritAll="false"
                 inheritRefs="false" />
        </daemons>
    </parallel>
    

    This wil run the Ant build file in ${project.loc}, not waiting for it to finish. There is one important caveat however: if the main build file finishes first, it will kill the process of the spawned build. This is all explained in the parallel doc.

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

Sidebar

Related Questions

I have a piece of code here that does not work despite me using
I have an application that is built to work on Windows, Linux, and Solaris
Just wondering what little scripts/programs people here have written that helps one with his
Since upgrading to 2008 I and many people here have noticed that randomly VS
Here is my custom class that I have that represents a triangle. I'm trying
I'm seeing basically the same issue described here I have a table that starts
I have something here that is really catching me off guard. I have an
We have system here that uses Java JNI to call a function in a
I have heard that DateTime.Now is very expensive call (from here ) Is GETDATE()
Here's what I need to fetch: - posts that have comments - number of

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.