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

The Archive Base Latest Questions

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

I have the following ant snippet <macrodef name=webapp.start> <attribute name=name /> <sequential> <!–deploy–> <antcall

  • 0

I have the following ant snippet

 <macrodef name="webapp.start">
    <attribute name="name" />
    <sequential>
        <!--deploy-->
        <antcall target="webapp.@{name}" />
        <!--start server-->
        <antcall target="tomcat-server-start" />
        <!--go to URL-->
        <exec executable="firefox" os="Linux" >
            <arg line="-new-tab http://localhost:${tomcat.port}/@{name}" />
        </exec>
    </sequential>
</macrodef>

It starts the server but does not open the browser. If I put the exec task in a separate target and run it, it works fine. I am guessing that starting the server which is a process that does not end, the next one does not begin. How to do I overcome this issue? Is there a way I can start exec as a separate process.

  • 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-16T16:01:10+00:00Added an answer on May 16, 2026 at 4:01 pm

    I am guessing that starting the server which is a process that does not end, the next one does not begin

    I would spend a minute making sure this is the case. Use pgrep or ps to figure out what your processes are up to.

    If you confirm the server never finishes, I would have the command “tomcat-server-start” start in the background (by postfixing the shell command with &), unless it is a big deal if firefox starts before tomcat-server. Alternatively, use a parallel block within your sequential block, like this:

    <macrodef name="webapp.start">
        <attribute name="name" />
        <sequential>
            <!--deploy-->
            <antcall target="webapp.@{name}" />
            <parallel>
                <!--start server-->
                <antcall target="tomcat-server-start" />
                <!--go to URL-->
                <exec executable="firefox" os="Linux" >
                    <arg line="-new-tab http://localhost:${tomcat.port}/@{name}" />
                </exec>
            </parallel>
        </sequential>
    </macrodef>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following ant file to build. But unfortunately <project default=build.deploy.start basedir=.> <property name=target.dir
I have the following snippet in my Ant script. It executes just fine: <exec
I have the following ant build.xml : <path id=antclasspath> <fileset dir=lib> <include name=*.jar/> </fileset>
I have the following in my pom: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ant-plugin</artifactId> <version>2.3</version> <configuration> <target> <echo
I have the following Ant build file: <?xml version=1.0 encoding=UTF-8?> <project default=build name=MyAntScript> <!--
I'm using Spring and struts and have the following entry in 'C:/source/webapp/WebContent/META-INF/context.xml' with tokens
I have installed 64 bits RHEL. I have following questions regarding ant.jar for the
I have the following problem: I'm using the wsimport ant task to create a
I have following situation: I have loged user, standard authentication with DB table $authAdapter
I have following string String str = replace :) :) with some other string;

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.