Windows Batch FOR command

Running Jibx’s xsd2java for 20 different schema files with no namespace can be a pain manually. So here comes Windows batch scripting FOR command to rescue:

for %%f in (*.xsd) do java -jar c:\dev\jibx\xsd2jibx\lib\xsd2jibx.jar -d src -n com.mehul.jibx.%%~nf %%f

Nifty.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s