Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to add JAR creation to the build chain (builder) ?
How to add JAR creation to the build chain (builder) ? [message #203503] Sat, 14 May 2005 21:55 Go to next message
Eclipse UserFriend
Originally posted by: sami.p.heikkinen.poista.mail.suomi.net

Hi,

After compiling source files, I would like to add the .class files to a JAR
file. THi scan be done using the export-funtionality and it also adds the
jar-task (description) to the dekstop, but how can I add this JAR creation
to the build chain (builder) so that it creates the JAR-file when I compile
to project? Or do I need to use ANT for that?

Regards, Sami
Re: How to add JAR creation to the build chain (builder) ? [message #203597 is a reply to message #203503] Mon, 16 May 2005 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Sami Heikkinen wrote:
> Hi,
>
> After compiling source files, I would like to add the .class files to a JAR
> file. THi scan be done using the export-funtionality and it also adds the
> jar-task (description) to the dekstop, but how can I add this JAR creation
> to the build chain (builder) so that it creates the JAR-file when I compile
> to project? Or do I need to use ANT for that?

Yes, Ant is the answer (at least as far as Eclipse 3.0.2; perhaps 3.1
has some new functionality to help with this?)
Note that you can create an Ant script that does the JAR and set that to
automatically run after the Eclipse builder finishes compiling.

HTH,
Eric
Re: How to add JAR creation to the build chain (builder) ? [message #203904 is a reply to message #203597] Tue, 17 May 2005 19:30 Go to previous message
Eclipse UserFriend
Originally posted by: sami.p.heikkinen.poista.mail.suomi.net

Thanks. Got it working.


"Eric Rizzo" <eclipse@rizzoweb.com> wrote in message
news:d6adoq$32k$2@news.eclipse.org...
> Sami Heikkinen wrote:
>> Hi,
>>
>> After compiling source files, I would like to add the .class files to a
>> JAR file. THi scan be done using the export-funtionality and it also adds
>> the jar-task (description) to the dekstop, but how can I add this JAR
>> creation to the build chain (builder) so that it creates the JAR-file
>> when I compile to project? Or do I need to use ANT for that?
>
> Yes, Ant is the answer (at least as far as Eclipse 3.0.2; perhaps 3.1 has
> some new functionality to help with this?)
> Note that you can create an Ant script that does the JAR and set that to
> automatically run after the Eclipse builder finishes compiling.
>
> HTH,
> Eric
Previous Topic:M7: Ant Error
Next Topic:M6-M7 where is Javadoc completion gone?
Goto Forum:
  


Current Time: Sat Aug 24 00:44:31 GMT 2024

Powered by FUDForum. Page generated in 0.03494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top