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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:15:33+00:00 2026-06-06T11:15:33+00:00

Using Linux environment with java,I’m having the config file which should be configured before

  • 0

Using Linux environment with java,I’m having the config file which should be configured before executing the eclipse application from console,

This is the OpenspliceDDS config file to source which is in the following directory

source /../HDE/x86.linx2.6./release.com —>Executed at command line

But i need to execute the source command in ANT script can any one help me out in this .

Example :

I have created the property tag for the command

<property name="release.path" location="/opt/HDE/x86.linux2.6/release.com"/>

<exec executable="source ${release.path}" spawn="true">

</exec>
  • 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-06-06T11:15:34+00:00Added an answer on June 6, 2026 at 11:15 am

    I think you will need to make a wrapper script for Ant to invoke. In the wrapper script, execute the “source” command and then the “sources” command. (You could pass parameters for the file to source and to execute).

    Follow up

    For the wrapper script, I just mean something like this:

    #!/bin/bash
    
    env_file=$1
    script_to_exec=$2
    
    . $env_file
    exec $script_to_exec
    

    The point being that you need to source a file and then execute a script in the same environment. So wrap those up into a script which you can execute from a different environment (Ant).

    To invoke that from Ant, something like this:

        <exec executable="wrapper_script">
            <arg value="${release.path}"/>
            <arg value="script_to_execute"/>
        </exec>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Java application, running in a LINUX environment, that does transactions
I want to learn to program in a UNIX/Linux environment. I'll be using the
im using linux with gedit which has the wonderful habit of creating a temp
I am using Linux Mint 12, Kernel 3. I have installed and configured Open
Ok, I have Netbeans 6.7.1 installed with the default Java SDK. I'm using Linux
Is it possible to grab textarea using java from another non-java application? Known way
I usually do all my java development on linux, using fedora package manager setting
I am using the Gurobi Optimizer, for which I need to set two environment
I am using java message digest to create MD5 hash, which is used for
I've been somewhat spoiled using Eclipse and java. I started using vim to do

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.