[java-parent-project-v3] branch master updated: Check an distribution dir for duplicate files
Rod Widdowson
rdw at steadingsoftware.com
Wed Apr 6 10:17:16 EDT 2016
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-parent-project-v3.
The following commit(s) were added to refs/heads/master by this push:
new c9a1e92 Check an distribution dir for duplicate files
c9a1e92 is described below
commit c9a1e9287ad851fd5cacdce72913898e35fb4752
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Apr 6 15:14:26 2016 +0100
Check an distribution dir for duplicate files
This is the skeleton of a batch file I wrote to check a distribution
for duplicate class names.
It's a bat file and because I don't have dup and grep on my path there
is a manual command line after. But it should be easily convertable
to bash.
---
bin/check-jar-for-dups.bat | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/bin/check-jar-for-dups.bat b/bin/check-jar-for-dups.bat
new file mode 100644
index 0000000..9c7e40b
--- /dev/null
+++ b/bin/check-jar-for-dups.bat
@@ -0,0 +1,16 @@
+REM Run from ...java-identity-provider\idp-distribution\target\shibboleth-identity-provider-3.3.0-SNAPSHOT\webapp\WEB-INF\lib
+
+set path=%PATH%;C:\Program Files\Java\jdk1.8.0_11\bin
+echo > f.log
+for %%i in (*.jar) do (
+ echo %%i
+ jar tvf %%i > %%i.log
+ jar tf %%i >> f.log
+)
+
+sort f.log > g.log
+
+REM Now from an appropriate prompt (I use guthub) type
+REM
+REM uniq -d .\g.log | grep -v .*\/$
+REM
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list