How do I manage git submodule subprojects in Eclipse?

后端 未结 5 983
旧巷少年郎
旧巷少年郎 2021-01-01 16:26

(In case it matters, these are Java Android projects)

Project A is a library project.

Project B depends on A

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 17:20

    I'm not sure if i got your setup right:

    Project A : src
    + /projecta.jar (binary of project A)

    Project B : /src
    + /lib/Project A/src as submodule
    + /lib/projecta.jar (binary of project A)

    ..now you change A-A' and compile it, wanting to test it before pushing/commiting, right?
    is it ok for you to just have the jar in B, or do you need the source within project B updated to A'?

    first case: have an ant file compile in project A and deploy it to B as well that ant file is not part of project a, its just a local workaround (its useful to have it in the ant view of eclipse)

    Sketch:

     set appropriate place in project B
    
    
    
     from build to projecta.jar
    
     projecta.jar to projectb.libdir
    

    Alternative is to create a .jardesc in eclipse, so you can run "create jar" on rightclick.

    is that what you wanted to do?

提交回复
热议问题