blob: da5df430e217719c467713ac6dc8a0519b719af9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) Red Hat Incorporated 2006. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Running the formatter application
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Running the formatter application
</h1>
<p>
Running the formatter application is as simple as running the org.eclipse.jdt.core.JavaCodeFormatter application from the commandline:</p>
<pre>
eclipse -vm &lt;path to virtual machine&gt; -application org.eclipse.jdt.core.JavaCodeFormatter [ OPTIONS ] &lt;files&gt;
</pre>
<table border="1" cellspacing="0" cellpadding="5" width="600">
<tr>
<td width="25%">&lt;files&gt;</td>
<td>Java source files and/or directories to format. Only files ending with .java will be formatted in the given directory.</td>
</tr>
</table>
<table border="1" cellspacing="0" cellpadding="5" width="600">
<thead>
<tr>
<th><p>OPTIONS</p></th>
<th><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" width="25%"><p>-config &lt;file&gt;</p></td>
<td valign="top"><p>Use the formatting style from the specified properties file.
Refer to <a href="tasks-232.htm">Generating a config file for the formatter application</a>
for details.</p>
</td>
</tr>
<tr>
<td valign="top" width="25%"><p>-help</p></td>
<td valign="top"><p>Display the help message.</p>
</td>
</tr>
<tr>
<td valign="top" width="25%"><p>-quiet</p></td>
<td valign="top"><p>Only print error messages.</p>
</td>
</tr>
<tr>
<td valign="top" width="25%"><p>-verbose</p></td>
<td valign="top"><p>Be verbose about the formatting job.</p>
</td>
</tr>
</tbody>
</table>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-17.htm">Code Formatter</a><br>
</p>
</body>
</html>