Can Intellij be used to create a .JAR File?

Hi

is it possible to use intellij to create a jar file? Ie some sort of plugin where you specify your classes and other files and it automatically generates a jar for you

2 comments

Stuart wrote:

Hi

is it possible to use intellij to create a jar file? Ie some sort of plugin where you specify your classes and other files and it automatically generates a jar for you

No, other than Ant. Sounds like a good plugin idea(no pun intended)
though. It's been requested a lot.

0

Stuart wrote:

is it possible to use intellij to create a jar file?


This has got to be one of the most FAQs ;)

The answer: no, not directly. You can use an ant script - something like
this:

]]>

You can define the ${dir.dist}, ${project.name}, ${dir.classes}
properties yourself, or use some of the predefined macro's - see the
"Build file properties" for details.

Incidentally - anyone else think it's odd that in those predefined
macro's, you can get the name of the project, but not of the current
module?

Regards,
Edwin

0

Please sign in to leave a comment.