Skip to main content



      Home
Home » Modeling » TMF (Xtext) » project java --> +/- java
project java --> +/- java [message #1385793] Wed, 11 June 2014 05:04 Go to next message
Eclipse UserFriend
hello
I have a problem with a project...
I have a project that transforms a code in java code + / - java.
the project is executed through the application of eclipse (new configuration).
Now I have to submit this project to a web service. I can recall this application without having to use the newconfiguration eclipse?
and how is it spread?
Thank you.
mick
Re: project java --> +/- java [message #1385794 is a reply to message #1385793] Wed, 11 June 2014 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

can you please give more information on how this releates to Xtext and what you are exactly doing
Re: project java --> +/- java [message #1385800 is a reply to message #1385794] Wed, 11 June 2014 05:47 Go to previous messageGo to next message
Eclipse UserFriend
the project is built starting with the plugin xtext.
Once you have created the grammar and the artifact, you execute the project using Run As -> new configuration, then you open a new application eclipse. In the Java code editor is inserted and once saved file will be created programm.html (in the runtime-New_configuration) that will have its own output that we wish to format + / - java.

Now my part is to take this project (without changing any part) and insert it into a web service.
my problem is:
- When I'm on the web and insert the java code in recognizing text, how do I invoke the transform xtext application without writing code in Eclipse?
- Should refer to the entire project or can I export the application format .jar file and import it into the new project?
sorry if maybe I was not clear but they are just starting out with Xtext.
thanks
Re: project java --> +/- java [message #1385803 is a reply to message #1385800] Wed, 11 June 2014 06:17 Go to previous messageGo to next message
Eclipse UserFriend
Do you use igenerator?
Re: project java --> +/- java [message #1385804 is a reply to message #1385803] Wed, 11 June 2014 06:31 Go to previous messageGo to next message
Eclipse UserFriend
yes .. but I do not know if I'm wrong, what should I pass as input parameters to the method doGenerate? java code to input?
Re: project java --> +/- java [message #1385806 is a reply to message #1385804] Wed, 11 June 2014 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you can change the language workflow.
there is a GeneratorFragment. you can tell it to generate a java main.
once you have run this java main once
you can use the export -> java -> junnable jar file wizard to create a all in one jar.
Re: project java --> +/- java [message #1385809 is a reply to message #1385806] Wed, 11 June 2014 06:54 Go to previous messageGo to next message
Eclipse UserFriend
but then once the file is exported in runnable jar,
I simply recall. jar file in my web service?
If you have a link to where this is an example of this kind?
thanks and sorry again
Re: project java --> +/- java [message #1385812 is a reply to message #1385809] Wed, 11 June 2014 07:29 Go to previous messageGo to next message
Eclipse UserFriend
No example simply give it a try
Re: project java --> +/- java [message #1385819 is a reply to message #1385812] Wed, 11 June 2014 08:00 Go to previous messageGo to next message
Eclipse UserFriend
P.S:

the main is of course only a starting point.

http://wiki.eclipse.org/Xtext/FAQ#How_do_I_load_my_model_in_a_standalone_Java_application.C2.A0.3F
Re: project java --> +/- java [message #1385825 is a reply to message #1385819] Wed, 11 June 2014 08:31 Go to previous message
Eclipse UserFriend
thanks
Previous Topic:xtext grammar import ATL metamodel
Next Topic:Antlr update breaks workflow
Goto Forum:
  


Current Time: Sun Jul 06 12:20:55 EDT 2025

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

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

Back to the top