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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:23:57+00:00 2026-05-14T23:23:57+00:00

I’m working on a build script in the Flash Builder version of Eclipse. This

  • 0

I’m working on a build script in the Flash Builder version of Eclipse. This build script needs to import launch configuration .launch files into the user’s workspace. However there doesn’t seem to be an available ANT var for determining the workspace location. While stepping through the available vars with intellisense I noticed that ${osgi.instance.area} does point to my current workspace but when I tried to echo it back in a running ant script it just spat out “${osgi.instance.area}” and not the path.

Any help would be greatly appreciated. Thank you!!!

  • 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-14T23:23:57+00:00Added an answer on May 14, 2026 at 11:23 pm

    If anyone is curious here is how I achieved this, however this is specifically tailored to Flash Builder/Flex Builder (as that’s what our team uses) and unfortunately I could never get the ${eclipse.home} property to work in Ant so I had to use ${eclipse.pdebuild.scripts} to get at the installation directory:

        <property name="install_loc" value=""/>
    
        <!-- find the eclipse install location -->
        <script language="javascript">
    
            <![CDATA[
    
            // Because ${eclipse.home} is not available, determine the install
            // location using the pdebuild.scripts location
    
            self.log("Looking for Eclipse installation...");
            var base = project.getProperty("eclipse.pdebuild.scripts");
            var path_pieces = base.split("/");
            var path = "";
            outterLoop: for(var i = path_pieces.length; i >= 0; --i)
            {
                if(path_pieces[i] == "Adobe Flash Builder 4" || path_pieces[i] == "Adobe Flex Builder 3")
                {
                    // After determining which array item refers to the Adobe Flash Builder or Flex Builder
                    // installation, start at the beginning of the array and count up to that point, adding
                    // paths as you go.
                    var k = 0;
                    while( k <= i )
                    {
                        path += path_pieces[k] + "/";
                        ++k;
                    }
    
                    break outterLoop;
                }
            }
    
            // TODO: MAKE SURE THE PATH IS NOT EMPTY
            self.log("Install path found at: " + path);
    
            project.setProperty("install_loc", path);
    
            ]]>
    
        </script>
    
        <loadfile
              property="workspace_prefs"
              srcFile="${install_loc}configuration/.settings/org.eclipse.ui.ide.prefs">
        </loadfile>
    
        <property name="workspace_loc" value=""/>
    
        <scriptdef name="find-workspace" language="javascript">
    
            <attribute name="workspace_data"/>
    
            <![CDATA[
    
            // Find and return the workspace location
    
            self.log("Looking for Eclipse workspace...");
            var defs = attributes.get("workspace_data").split("=");
            var loc = defs[defs.length - 1];
            self.log("Workspace found: " + loc);
            project.setProperty("workspace_loc", loc);
    
            ]]>
    
        </scriptdef>
    
        <find-workspace workspace_data="${workspace_prefs}" />
    
    </target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 423k
  • Answers 423k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I was going to suggest something similar except create a… May 15, 2026 at 11:30 am
  • Editorial Team
    Editorial Team added an answer The FlowLayoutPanel control does this automatically. Just put the group… May 15, 2026 at 11:30 am
  • Editorial Team
    Editorial Team added an answer Use the add() method's arcname parameter: tar.add("/home/user/bla/mydir/", arcname="mydir") May 15, 2026 at 11:30 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.