cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

Simple way to convert Java source #700

Closed stefan-reich closed 2 years ago

stefan-reich commented 2 years ago

Hi. I don't understand your deployment system. Let's say I have one long .java file and want it converted to .js on the command line. How would I do this.

lgrignon commented 2 years ago

Did you please refer to the documentation? It clearly points to the quick start http://www.jsweet.org/getting-started/

stefan-reich commented 2 years ago

@lgrignon Thank you. What I ultimately want to do is run JSweet without Maven. Can I do this by running JSweetCommandLineLauncher after building an example project?

lgrignon commented 2 years ago

Please, discover here an example using JSweetCommandLineLauncher (wrapped in an Ant script) https://github.com/cincheo/jsweet-examples/blob/master/build.xml#L27

stefan-reich commented 2 years ago

Sounds good, thanks a lot. Will try that.

stefan-reich commented 2 years ago

In fact I managed to get something running by actually going through Maven for each transpilation. Would have liked to go without Maven but it's completely fine and it was the simplest way to victory.

lgrignon commented 2 years ago

Yes, Maven is just amazing sometimes :) Anyway, it's clearly possible to transpile with command line without maven or gradle if you need it, so please get back to us if you are stucked again in the future