cancel
Showing results for 
Search instead for 
Did you mean: 

Recompile java files in JAR

jriker1
Champ in-the-making
Champ in-the-making
I modified a few java files in one of the JAR files and from building can tell it's not recompiling all the java files.  Do you have to do this manually or is there a way in Eclipse to do this?

Thanks.

JR
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
You only need to compile those classes you have changed.

However would normally use the ant build system to compile and jar a library.    For good measure, if you are worried about only partial updates, you may want to 'clean' first.

The eclipse builder tends to just put classes onto a classpath.   And does not do the extra packaging steps, so if you are after a jar then its simplest to just use ant.      Of course there's nothing to stop you from building a Jar in eclipse, its just that that's not the way that alfresco's out of the box eclipse projects are set up.

jriker1
Champ in-the-making
Champ in-the-making
You only need to compile those classes you have changed.

However would normally use the ant build system to compile and jar a library.    For good measure, if you are worried about only partial updates, you may want to 'clean' first.

The eclipse builder tends to just put classes onto a classpath.   And does not do the extra packaging steps, so if you are after a jar then its simplest to just use ant.      Of course there's nothing to stop you from building a Jar in eclipse, its just that that's not the way that alfresco's out of the box eclipse projects are set up.

Can you take a look at my last post in the below thread related to this?

http://forums.alfresco.com/en/viewtopic.php?f=48&t=24207