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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:12:17+00:00 2026-05-27T20:12:17+00:00

First some background. I inherited a project where the build file was already written

  • 0

First some background. I inherited a project where the build file was already written for me, so I’m looking for an easier way than to re-write the whole build.xml file. I’m running into an issue with ANT and specifying relative paths but the relative path should be relative to the project folder, not where my build.xml file is. I know this isn’t how ANT works, build.xml’s basedir is by default where the build.xml file is. The structure of the project is more or less as follows.

SampleProject
    src
    bld
        build.xml
    lib
        log4j.jar
    dist
        SampleProject.jar
        lib(with all the project folder lib contents)

So here’s my issue. In my build file, I specify the lib folder as ../lib/*.jar and use that as my class path however, that relative path gets translated into the MANIFEST.MF of the jar file so my jar file is looking for ../lib as well. Is there a way, other than moving the location of the build file, to tell SampleProject.jar that its lib folder is in the same directory?

Note: One work around I found was to place the lib folder in the bld folder, and then make the build file look for ./lib but I don’t want to have to copy the lib folder every time I change it. I want it to stay where it is. Any ideas would be helpful, thanks!

  • 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-27T20:12:18+00:00Added an answer on May 27, 2026 at 8:12 pm

    Maybe I haven’t understood the question but you can specify basedir in the Ant script – http://ant.apache.org/manual/using.html. It’s an attribute on the project tag.

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

Sidebar

Related Questions

First some background: I already have a Result class that I've implemented to carry
First some background. I'm parsing a simple file format, and wish to re-use the
First, some background info: I am making a compiler for a school project. It
First some background. I have a file, for simplicity's sake, let's call it test.txt.
First some background: I'm working on an application and I'm trying to follow MVVM
First, some background: I'm developing a web application using Python. All of my (text)
I just declared some code-first models for a new project that uses EntityFramework. public
First some background. I have a batch-type java process run from a DOS batch
First some background, I am currently working on a relatively large Asp.Net MVC application
First Some Background I'm planning out the architecture for a new PHP web application

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.