Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Building WAR with Tycho: dynamic config.ini
Building WAR with Tycho: dynamic config.ini [message #1288096] Tue, 08 April 2014 09:15 Go to next message
Tobias P. is currently offline Tobias P.Friend
Messages: 43
Registered: April 2012
Member
Hello guys,

we are developing an Eclipse RAP Application and the Runtime Server is a Tomcat 7 instance.

I gave it a quick shot and followed Holger's tutorial and it works like a charme.
http://eclipsesource.com/blogs/2011/01/17/how-to-build-a-rap-application-with-tycho/

The only thing that is annoying is the static config.ini file. Is it possible to create this file dynamic, so that an automatic build can be achieved?

If not, are there any other possibilites? Our goal is to create an CI Job, where the final artifcat is a WAR File, without manually adjusting the config.ini

Regards,
Tobias
Re: Building WAR with Tycho: dynamic config.ini [message #1314491 is a reply to message #1288096] Fri, 25 April 2014 12:02 Go to previous messageGo to next message
Markus Knauer is currently offline Markus KnauerFriend
Messages: 179
Registered: July 2009
Senior Member

Hi Tobias,

I suggest that you have a closer look into our examples projects that we are developing in RAP. They can be found in the main RAP Runtime Git repository [1].

If you just want to look at the build files, you can open [2] in your browser. This is the build project that we are using to create the .war files for our three demo applications. Drill down into `rapdemo` and you will find the standard product configuration org.eclipse.rap.examples.rapdemo.product

We are using this product configuration in our product-based build. This build creates the config.ini on the fly with the content from the product configuration. Unfortunately we've to tweak the generated config.ini a bit - this is done in the pom.xml of the project with maven-replacer-plugin.

The overall build follows 3 simple steps:

1 - run a standard product based build
2 - tweak the config.ini a bit (add servletbridge.extensionbundle, remove javax.servlet)
3 - assemble the .war file and add the root files (web.xml, launch.ini).

Hope that helps...

Thanks,
Markus


[1] git://git.eclipse.org/gitroot/rap/org.eclipse.rap.git
[2] http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/releng/org.eclipse.rap.examples.build


--

Twitter: @mknauer23 and @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Building WAR with Tycho: dynamic config.ini [message #1315305 is a reply to message #1288096] Fri, 25 April 2014 22:46 Go to previous message
Tobias P. is currently offline Tobias P.Friend
Messages: 43
Registered: April 2012
Member
Thank you for this information. I will have a llok over the next few days
Next Topic:Grid jumps to beginning (topIndex == 0)
Goto Forum:
  


Current Time: Thu Apr 25 03:55:52 GMT 2024

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

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

Back to the top