Skip to main content



      Home
Home » Newcomers » Newcomers » Creating jars, options
Creating jars, options [message #210631] Mon, 14 May 2007 07:13 Go to next message
Eclipse UserFriend
Hi, I have a few (probably) pretty simple questions regarding creating jars:

1. When I attempt to export my classes along with other resources to a jar
file, the options "select options for handling problems" are deactivated,
how come?
2. Is there any way to pick and choose within my output folder bin or is
"export all output folders for checked projects" my only option? I would
like to create a jar file only containing the classes altered since the last
export.
3. Although the option "Export class files with compile warnings" is checked
and "Export class files with compile errors" is not, the classes with errors
still end up in the jar. How can I prevent that?

I'm working with Eclipse 3.2

Thanks in advance for any tips.

Eoin
Re: Creating jars, options [message #211232 is a reply to message #210631] Fri, 18 May 2007 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Muttonhead wrote:

>Hi, I have a few (probably) pretty simple questions regarding creating jars:
>
>1. When I attempt to export my classes along with other resources to a jar
>file, the options "select options for handling problems" are deactivated,
>how come?
>
>
You probably only checked to export the Java files and the resources and
not the class files.

>2. Is there any way to pick and choose within my output folder bin or is
>"export all output folders for checked projects" my only option? I would
>like to create a jar file only containing the classes altered since the last
>export.
>
>
That's not possible.

>3. Although the option "Export class files with compile warnings" is checked
>and "Export class files with compile errors" is not, the classes with errors
>still end up in the jar. How can I prevent that?
>
>
That would be a bug. Please file it against JDT UI.

Dani

>I'm working with Eclipse 3.2
>
>Thanks in advance for any tips.
>
>Eoin
>
>
>
>
Re: Creating jars, options [message #211345 is a reply to message #211232] Sat, 19 May 2007 13:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Daniel Megert wrote:
> Muttonhead wrote:
>> 2. Is there any way to pick and choose within my output folder bin or
>> is "export all output folders for checked projects" my only option? I
>> would like to create a jar file only containing the classes altered
>> since the last export.
>>
>>
> That's not possible.

One possible work-around:
If you're using CVS, you can tag the repository when you do an export.
Then for the next export compare the current against the first export
tag. In the resulting Synchronize view, select the files (NOT the
directories or packages) and choose File > Export. The export wizard
will automatically select the files that you had selected in the compare
Synchronize view.

Hope this helps,
Eric
Re: Creating jars, options [message #211753 is a reply to message #211345] Wed, 23 May 2007 08:12 Go to previous message
Eclipse UserFriend
Hello, thanks to you both for your replies.

Daniel, I'm surprised nobody else has run into the problem with exporting
classes with compile errors, but it doesnt seem to be a known bug, so I'll
file it as you recommended.

Eric your suggested workaround seems like a good idea, I'll give it a try as
soon as I have time. I use Subversion/Subclipse but it should work with that
setup as well. I used to work with Visual Age and was used to marking source
or bytecode files as I pleased for export to a jar file but I've now
realised that the Eclipse approach is different.

Thanks again

Eoin
Previous Topic:Problem in using ArmListener for menuitem's tooltip
Next Topic:variables view does not work anymore
Goto Forum:
  


Current Time: Mon Jul 07 04:02:23 EDT 2025

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

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

Back to the top