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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:00:24+00:00 2026-06-13T06:00:24+00:00

I have an Ant task that needs to run in the parent directory. When

  • 0

I have an Ant task that needs to run in the parent directory. When I set the basedir to the parent directory the tokens are not replaced correctly.

<project name="Flex Ant Tasks Build Script" default="compileFlex" basedir="../"> 

    <!-- load previously defined configuration properties file --> 
    <property file="local_build.properties" /> 

    <!-- delete and create the DEPLOY dir again --> 
    <target name="init">
        <delete dir="${DEPLOY_DIR}" /> 
        <mkdir dir="${DEPLOY_DIR}" /> 
    </target> 

And the build properties:

// this is the folder we want to publish the swf to 
DEPLOY_DIR = ${basedir}/output

When the basedir is set to “.” the result is:

[mkdir] Created dir: /Users/me/Documents/projects/MyProject/output

When I set the basedir to the parent, “../” the result is:

[mkdir] Created dir: /Users/me/Documents/projects/${DEPLOY_DIR}

The desired result is:

[mkdir] Created dir: /Users/me/Documents/projects/output

NOTE:
The build script resides in:

/Users/me/Documents/projects/MyProject/

because I can’t seem to import any ANT build files outside of the Eclipse project

  • 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-13T06:00:26+00:00Added an answer on June 13, 2026 at 6:00 am

    The problem is that when I go up a directory the path to the property file becomes invalid. So ${DEPLOY_DIR} is never getting defined. If I go up a directory I need to then give it the correct path to the build properties file:

    <property file="MyProject/local_build.properties" /> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently have an ant task that contains something similar to the following: <filelist
I have an ant target that echo's the content of an eclipse .project file,
I have an ant build script that needs to pull files down from a
I have a project that contains xml files. I also have an Ant build
I have here a Windows distribution server that runs an ANT task to build
I have an ant task that contains javac task inside. It reports about error
My first question. Please bear with me! I have an Ant task that need
We have an ant build file that needs to encrypt/decrypt a bunch of files
I have an Ant copy task (defined in a Maven script invoked by a
I have a ant target where I successfully use a sshexec-task to install a

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.