Last active
August 29, 2015 14:01
-
-
Save yuhanz/8002c696fbac9dd35ff2 to your computer and use it in GitHub Desktop.
Find all the .class file in .jar files under lib/ folder, and write them as "imports" scala statement and store into a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find lib -name \*.jar -exec unzip -v {} \; | grep -oh --color=never '[^[:space:]]*class$' | tr / . | sed -E 's/^(.*).class$/import \1/' > /tmp/imports.scala |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment