HipByte / motion-gradle

Integrate 3rd-party Java dependencies in RubyMotion for Android projects using Gradle
MIT License
16 stars 10 forks source link

Prompt after rake:clean #3

Closed darinwilson closed 9 years ago

darinwilson commented 9 years ago

After running rake:clean and rebuilding the project, I always see this prompt:

Create vendor/Gradle/build/libs/dependencies.jar.bridgesupport
replace /var/folders/hs/4337r5396qgb6lfqr9v65zj00000gn/T/__android_bridgesupport__/dependencies.jar/META-INF/LICENSE? [y]es, [n]o, [A]ll, [N]one, [r]ename:

Is it possible to skip that prompt? It might be nicer if the build could proceed without a prompt as it normally does, and this message could be a little confusing for new users.

jjaffeux commented 9 years ago

I do agree with you, however it happens in the unzip part of gen_bridge_metadata and right now I have no idea how to fix this.

Will need to investigate.

darinwilson commented 9 years ago

OK - it's only a minor annoyance right now, so it's probably not worth a deep dive. Thanks!

jjaffeux commented 9 years ago

@darinwilson OK I think I fixed it, can you try please when you have time (1.0.3) ?

darinwilson commented 9 years ago

I just tried it with 1.0.3 - I'm still getting the same behavior :(

jjaffeux commented 9 years ago

@darinwilson you might need to do a full rake clean:all and rake gradle:install before it works

darinwilson commented 9 years ago

Even with rake clean:all I still get the same behavior.

[~/work]$ gem list --local

*** LOCAL GEMS ***

bigdecimal (1.2.3)
bundler (1.7.12)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
motion-gradle (1.0.3)
newclear (0.5)
PackingPeanut (0.0.3)
psych (2.0.2)
rake (10.4.2, 10.1.0)
rdoc (4.1.0)
reset-sim (1.0)
test-unit (2.1.0.0)
[~/work]$ rake clean:all
    Delete ./build
    Delete vendor/Gradle/build/libs/dependencies.jar.bridgesupport
    Delete /Users/darin/Library/RubyMotion/build
    Delete vendor/Gradle
[~/work]$ rake gradle:install
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:generateDependencies

BUILD SUCCESSFUL

Total time: 5.095 secs
[~/work]$ rake device
    Create ./build/Development-15/AndroidManifest.xml
warning: java/lang/Object.class(java/lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
1 warning
    Create vendor/Gradle/build/libs/dependencies.jar.bridgesupport
replace /var/folders/hs/4337r5396qgb6lfqr9v65zj00000gn/T/__android_bridgesupport__/dependencies.jar/META-INF/LICENSE? [y]es, [n]o, [A]ll, [N]one, [r]ename:

Subsequent runs of rake:clean; rake device continue to put up the prompt. Is there another sequence of steps I should try?

jjaffeux commented 9 years ago

@darinwilson Ok I will investigate it this week-end, I'm pretty sure I have the right solution, but might be not at the right place.

jjaffeux commented 9 years ago

@darinwilson can you try 1.0.4 please ? pretty sure it will fix your issue.

darinwilson commented 9 years ago

@jjaffeux Oy...still happening. I did:

rake clean:all
rake gradle:install
rake device

And the prompt appears. Is that what you're doing as well, or something different?

jjaffeux commented 9 years ago

@darinwilson can you paste the message? Is it still :

replace /var/folders/hs/4337r5396qgb6lfqr9v65zj00000gn/T/__android_bridgesupport__/dependencies.jar/META-INF/LICENSE? [y]es, [n]o, [A]ll, [N]one, [r]ename:

or something else than META-INF/LICENSE ?

darinwilson commented 9 years ago

@jjaffeux Actually, it's META-INF/NOTICE now that I look at it more closely:

replace /var/folders/hs/4337r5396qgb6lfqr9v65zj00000gn/T/__android_bridgesupport__/dependencies│
.jar/META-INF/NOTICE? [y]es, [n]o, [A]ll, [N]one, [r]ename:
jjaffeux commented 9 years ago

@darinwilson ok 1.0.5 should work :) if it still doesn't you know what I need to debug. But next time I will be more aggressive in what I exclude!

darinwilson commented 9 years ago

That's it! That finally did it. Thanks for perservering - much appreciated! :)