find jar file

for f in `find . -name "*.jar"`;do
    jar tvf $f | grep -i HttpsURLConnection | sed s-^-$f-
done
Advertisements

git.cmd on window

updated cmd\git.cmd as follows

@rem [START] add git_install_root
@rem for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set git_install_root=C:\git\bin
@set HOME=C:\git\my_git_home
@rem [END] add git_install_root

added git.bat to a dir already in the path

C:\bin>cat git.bat
@C:\git\bin\cmd\git.cmd %*

now we can use git from anywhere

XML instance generation from XML schema (xsd)

xsd2inst in xmlbean creates xml instance from xml schema

\xmlbeans-2.4.0\bin>xsd2inst -h
Generates a document based on the given Schema file
having the given element as root.
The tool makes reasonable attempts to create a valid document,
but this is not always possible since, for example,
there are schemas for which no valid instance document
can be produced.
Usage: xsd2inst [flags] schema.xsd -name element_name
Flags:
    -name    the name of the root element
    -dl      enable network downloads for imports and includes
    -nopvr   disable particle valid (restriction) rule
    -noupa   disable unique particle attributeion rule
    -license prints license information

and it XmlTree sample creates nice tree from xml instance.