Log in Page Discussion History Go to the site toolbox

ENCONTRAR CLASE EN JAR LINEA DE COMANDOS

From BluWiki

LINUX:

find PATH -name '*.jar' -o -name '*.war' -o -name '*.ear' -type f |xargs -i bash -c "jar -tvf {}| tr / . | grep CLASSNAME && echo {}"
(e.g)
find /usr/IBM/WebSphere/AppServer/ -name '*.jar' -o -name '*.war' -o -name '*.ear' -type f | xargs -i bash -c "jar -tvf {}| tr / . | grep org.apache.xerces.dom.DocumentImpl.class && echo {}"


AIX

find . -type f -name '*.jar' | xargs -i ksh -c "jar tvf {} | tr / . | fgrep clasename && echo {}"

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2
This page was last modified on 26 June 2009, at 22:16.
Disclaimers - About BluWiki