Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Invoke WTP XML Formatter from commandline?
Invoke WTP XML Formatter from commandline? [message #707324] Mon, 01 August 2011 13:59 Go to next message
Ingo Fischer is currently offline Ingo Fischer
Messages: 6
Registered: July 2009
Junior Member
Some time ago I found the possibility to format Java code by invoking the Eclipse JavaCodeFormatter from commandline, which works like this:

/opt/eclipse/eclipse -application org.eclipse.jdt.core.JavaCodeFormatter -verbose -config example-eclipse-code-format-config.xml src/main/java/testformatter/FormatMe.java


Is it possible to invoke the WTP XML Formatter from the commandline in a similar way? Or are there other possibilities to format some XML files in a Batch job with the WTP XML Formatter?
(no subject) [message #707394 is a reply to message #707324] Mon, 01 August 2011 15:30 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3221
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

(Thanks, Ingo! For those, like me, who were surprised at this, here is
more information surrounding the ability to use Eclipse's Java formatter
stand-alone. What Ingo gave here was sufficient to get me going, but
there was a bit more experimentation to come before I got satisfactory
results:

http://www.javahotchocolate.com/notes/eclipse.html#formatter)
Previous Topic:"file not found" while publishing on HTTP-Server
Next Topic:How can I influence the way the xml formatter works?
Goto Forum:
  


Current Time: Thu Oct 23 13:20:49 GMT 2014

Powered by FUDForum. Page generated in 0.02182 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software