Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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
Eclipse UserFriend
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 BatemanFriend
Messages: 3798
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 Apr 25 12:00:22 GMT 2024

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

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

Back to the top