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

  • Home
  • SEARCH
  • 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 3335828
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:03:48+00:00 2026-05-18T00:03:48+00:00

I have a project with a linked source folder. This project depends on another

  • 0

I have a project with a linked source folder. This project depends on another (remote service) project, so the aidl files and the classes passed across the remote interface are in a common_src linked folder shared between the two projects. This work just fine with Eclipse builds, (one source file, two projects, changes in one project are reflected in the other, just as it should be).

I’d now like to do an Ant build from the command line. I managed to get another project with a single src directory building across all targets using the example build.xml from the SDK tools. It imports ant_rules_r3.xml automatically and once the source.dir and out.dir are defined in the build.properties it’s all fairly painless.

Turning to the project with the src and common_src folders, I can’t get it to build. Firstly I cut and pasted the compile target and all those it depends upon into the build.xml above the setup task. I added and defined the element common_src to the build.properties and added the last line shown below to the -compile target (copied from ant_rules_r3.xml) into the build xml:

  <src path="${source.absolute.dir}" />
  <src path="${gen.absolute.dir}" />
  <src path="${common_src}" /><!--ADDED-->

which got it further on in the build process – it could find the .java files in common_src but not the .aidl files. No surprise I realised as the aidl is a separate target. I then added

<src path="${common_src}" /> 

to the -aidl target in the build xml, and it failed with:

BUILD FAILED
C:\dev\projects\Eclipse\AndroidWorkspace\MapProject\build.xml:77: aidl doesn't
 support the nested "src" element.

So that’s got me well and truly stuck. Ideally I’d like to modify just the build.properties file to include the common_src and pass it to the ant_rules_r3.xml but I can’t think of a way of doing it. I’d be most grateful if anyone can suggest how it can be done.

  • 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-18T00:03:48+00:00Added an answer on May 18, 2026 at 12:03 am

    Just in case there’s any interest, I thought I’d answer my own question which is now solved.

    1) I defined the common_src in the build.properties

    2) Added the line

    <src path="${common_src}"
    

    in an overriden compile target in the build.xml above the setup (plus overrode all the targets it depended on by cutting/pasting from the ant_rules_r3.xml)
    3) Added a new target ‘aidl2’ the same as ‘aidl’ in build.xml but which had the line

    <source path="${common_src}" instead of

    <source path="${source.absolute.dir}" .
    

    Made aidl depend on aidl2. Overrode all the targets aidl depended on.

    I also added lines like :

    key.store=xxxxxxxxxxxxx
    key.alias=xxxxxxxxxxxxx
    key.store.password=xxxxxxxxxxxxx
    key.alias.password=xxxxxxxxxxxxx
    

    to the build.xml which automated the input of passwords. I finally added an install_release target to make an automatic one command build, rease and install process.

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

Sidebar

Related Questions

I have a project which is source controlled using Subversion and VisualSVN. Since the
I have project that I'm working on that is going to require a webserver.
I have a project that I'm currently working on but it currently only supports
I have a project that I would like to start beta testing soon, it
I have a project where I would like to generate a report export in
I have C++ project (VS2005) which includes header file with version number in #define
I have a project with a bunch of external sounds to a SWF. I
I have a project the requires the use of the exec family. My project
I have a project where a .master page was created without a code behind
I have a project written in Java (>1.5). Is it possible to write parts

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.