Compile stand-alone Java application containing JET-Templates outside of eclipse GUI [message #1851386] |
Mon, 04 April 2022 14:52 |
Jens Goldeck Messages: 3 Registered: April 2022 |
Junior Member |
|
|
Hi,
we have a stand alone Java-application, which offers a big set of generators for design artefacts. Input of this application are certain type of XML files.
So we used JET-Templates for a lot of this generators and up to now we compile our tool inside of Eclipse manually and then check-in the jar-file in order to deploy it. This worked now already for some 10years.
Now we are trying for some time to automize that compile and deployment, using git, jenkings,... and also try to offer some nightly builds for different branches, so that people can test new features before release.
Question is: How can we compile the JET-Files outside of eclipse in a jenkins job, using a makefile, ant-file, ... ?
I did not find any HowTos (in this forum, EMF help pages, tutorials) which are newer than from 2009. Could you help me out here?
Currently we have a VERY slow script, calling eclipse in batch mode for every single file, all other ant-scripts or tutorials seem not to work with current eclipse versions.
First a loop for each jet file with:
eclipse-jee-neon-2-linux-gtk-x86_64/eclipse/eclipse -data <path> -application org.eclipse.emf.codegen.CodeGen <jetFile> <projectPath>/src
And after that something like this:
java -Dant.home=<path>/apache-ant-1.10.7 -cp apache-ant-1.10.7/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile <path>/build.xml
This loop takes more than 10minutes because eclipse is called for each file.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04861 seconds