Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Running formatter from the command line

Hi Panayotis

This list is reserved for those developing JDT. Please either ask your 
question on the 'eclipse.tools.jdt' newsgroup or file a bug report against 
JDT Core.

Dani


From:
Panayotis Katsaloulis <panayotis@xxxxxxxxxxxxx>
To:
jdt-dev@xxxxxxxxxxx
Date:
16.03.2011 09:43
Subject:
[jdt-dev] Running formatter from the command line



Hello all,

I am trying to run the formatter from the command line with a command 
similar to this:

/path/to/eclipse -nosplash -application 
org.eclipse.jdt.core.JavaCodeFormatter -verbose -config 
.settings/org.eclipse.jdt.core.prefs path/to/java/src

Unfortunately I get this error message:

A problem occurred while reading the config file 
.settings/org.eclipse.jdt.core.prefs.

Usage: eclipse -application org.eclipse.jdt.core.JavaCodeFormatter [ 
OPTIONS ] -config <configFile> <files>

   <files>   Java source files and/or directories to format.
             Only files ending with .java will be formatted in the given 
directory.
   -config <configFile> Use the formatting style from the specified 
properties file.
                        Refer to the help documentation to find out how to 
generate this file.

 OPTIONS:

   -help                Display this message.
   -quiet               Only print error messages.
   -verbose             Be verbose about the formatting job.





I uploaded my settings here, in case you need it.
http://cl1p.net/eclipse/

Any ideas?
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-dev





Back to the top