Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Custom Build Chain for XML?
Custom Build Chain for XML? [message #1859866] Sun, 02 July 2023 08:31 Go to next message
Christian Treczoks is currently offline Christian TreczoksFriend
Messages: 6
Registered: July 2023
Junior Member
I have a bunch of XML files that I edit with the "Eclipse XML Editor and Tools" software - I hope this is the right forum for this.

For these, I've got a custom "build process" based on two PERL scripts:

Step 1: each *.xml -> *.pdf, *.idx (with idx files being CSVs with data extracted and processed from the XML)

Step 2: all *.idx together -> index.pdf (forming an index over all the objects)

I could easily create a Makefile for this, but how do I teach these rules to Eclipse?

[Updated on: Sun, 02 July 2023 08:32]

Report message to a moderator

Re: Custom Build Chain for XML? [message #1859868 is a reply to message #1859866] Mon, 03 July 2023 00:08 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

There are different amounts of integration you can implement, but the simplest would be to add your external build process as an External Builder on the project, so that it will run automatically like all the others.

https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.user/tasks/tasks-exttools-running.htm?cp=0_3_14


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Custom Build Chain for XML? [message #1859872 is a reply to message #1859868] Mon, 03 July 2023 06:22 Go to previous messageGo to next message
Christian Treczoks is currently offline Christian TreczoksFriend
Messages: 6
Registered: July 2023
Junior Member
OK, so I can always call make, but that I could just do from the command line. My question was more on how to implement those rules in Eclipse.
Re: Custom Build Chain for XML? [message #1859929 is a reply to message #1859872] Wed, 05 July 2023 20:54 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

That would be to create a plug-in of your own and register an extension using https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_core_resources_builders.html?cp=2_1_1_16 .

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Custom Build Chain for XML? [message #1860103 is a reply to message #1859929] Tue, 18 July 2023 06:39 Go to previous message
Christian Treczoks is currently offline Christian TreczoksFriend
Messages: 6
Registered: July 2023
Junior Member
Thanks for the link. Looks like I basically have to program a make in Java to accomplish this. Nope.
Previous Topic:No Script Engines found
Next Topic:"Include Directory" for XSD files?
Goto Forum:
  


Current Time: Mon May 06 04:20:44 GMT 2024

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

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

Back to the top