Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I manage git submodule subprojects in Eclipse?
    primarykey
    data
    text
    <p>(In case it matters, these are Java Android projects)</p> <p>Project <strong>A</strong> is a library project.</p> <p>Project <strong>B</strong> depends on <strong>A</strong>. For ease of project management across the board for other people instead of just me, <strong>A</strong> is contained within <strong>B</strong> via a git submodule.</p> <p>This means, if I want to make changes to <em>both <strong>A</strong> and <strong>B</em></strong>, I will have the following:</p> <ol> <li>Project <strong>A</strong> itself</li> <li>Project <strong>B</strong></li> <li><strong>B</strong>'s submodule of <strong>A</strong>, let's call it <strong>A'</strong>. Same code, same project name, different location on disk.</li> </ol> <p>Ideally I would like to be able to meet the following conditions:</p> <ol> <li>Be able to modify <strong>A</strong> itself directly within Eclipse.</li> <li>Be able to modify <strong>B</strong> and have it build, referencing <strong>A'</strong>, all within Eclipse.</li> <li>I don't really need <strong>A'</strong> as an imported project / no need to modify it, but I'd like it to automatically build its jar file and have that be referenced by <strong>B</strong>.</li> </ol> <p><strong>What I've tried:</strong></p> <ol> <li>Simply importing both <strong>A</strong> and <strong>A'</strong>: Doesn't work, because Eclipse cannot import two projects with the same name. I can't simply change the name either because it's a submodule; would have to do that <em>every git update</em>, unacceptable.</li> <li>Adding External Library reference to <strong>A'</strong>, keeping it out of Eclipse entirely: actually not too bad of a solution, but requires at least one external build of it from the command line (using <code>ant</code>) before it will work...not the most convenient.</li> <li>Doing a Source Link: Not the cleanest because <strong>A</strong> (and subsequently <strong>A'</strong>) have multiple source folders within them, so I'd have to update each time I add or remove source folders within <strong>A</strong>. I'd rather just use the jar directly.</li> </ol> <p>Is there a way to keep this all in Eclipse, or should I do something like #2 but with an added external build command to call <code>ant</code> on <strong>A'</strong>?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload