Is there a way to export a Makefile from a Java Eclipse project?

So, I have this Java project, consisting of several classes, some external JAR files and an executable Java program. I would like to export all the code and external JARS to an external directory and create a Makefile to create a program with all the dependencies. Is there an automated way to do this?

Thanks,
Tunnuz

+4
source share
3 answers

I think I understand the question. Of course, if you use an external build system such as maven or ant, then we will unbind the build process from the IDE. (But in some cases, the IDE is very closely related to the build tool.)

But if you want to continue creating using eclipse and generate the ant file one day, then there is a tool for that. It is called EBuild . It uses all the information about the path to the path that already has an eclipse, and creates a common ant file from it.

+2
source

Do you use maven ? If so, then this can easily be achieved using the maven build.

If not, you can use ant to calculate exactly what you need.

0
source

When you right-click on a project in Eclipse, there is an Export option. It can create build.xml for ant for your project.

0
source

Source: https://habr.com/ru/post/1342288/


All Articles