conversion .xtend to .java

87 views Asked by At

I wanted to use the .xtend files which are implemented in other project. For this purpose I need to convert that business logic from .xtend to .java source code.

Is there any way to convert .xtend file to java ? or do I need to implement it again in java.

1

There are 1 answers

0
Ram On

I found simplest way, In eclipse

  1. I have build the .xtend project (lets call it as Project1)and created jar.
  2. I have included that Jar into other simple java project and attached the source to the jar class from Project1 .
  3. It will Automatically convert entire .xtend code into java code.

Thanks.