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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:16:41+00:00 2026-05-16T07:16:41+00:00

If a project depends on other libraries whose locations are non-standard, where should the

  • 0

If a project depends on other libraries whose locations are non-standard, where should the locations be stored? My current solution is to have something like this at the top of the Ant build.xml script:

<!-- change these properties to point to the correct library locations on your system -->
<property name="lib.foo" location="${user.home}/foo" />
<property name="lib.bar" location="${user.home}/bar" />

This works great if your libraries are installed in those locations. However, it is problematic for users that have them installed elsewhere because your changes get blown away when you svn update.

What is the best practice for allowing a user’s local changes to persist between updates, but at the same time being able to provide default locations?

  • 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-16T07:16:42+00:00Added an answer on May 16, 2026 at 7:16 am

    Add a property entry such as:

    <property file="user.properties" />
    

    to the very beginning of your ant script, followed by property entries defining the default values. (See: Ant Docs.) This technique allows each user to (optionally) override the default values with a local file.

    If you add user.properties to the svn:ignore list, then it won’t get checked in or modified by SVN and each user can have their own custom version of the file.

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

Sidebar

Related Questions

I have a project with a linked source folder. This project depends on another
We have several services, each of which should ideally operate independently of each other.
I have some external dependencies to load with my C++ program, like boost or
This one may be a bit strange. I have a solution in Visual Studio
I ran mvn dependency:tree for a project and I saw output like the following:
In order to do some multi-platform GUI development, I have just switched from GTK
I've won the task of restructuring/recreating an existing code repository, either using Git or
Hallo, I'm using CMake as build system in one of my projects which is
I need to generate an apk file using an Ant script, but I'm having
Folks, I've a large legacy .Net code base, and I'm trying to introduce Unit

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.