Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Programmatically JAR creation
Programmatically JAR creation [message #7436] Mon, 28 April 2003 15:47 Go to next message
Eclipse UserFriend
Originally posted by: nospam_danilo.floripa.com.br

Hi.

In a project I have a Ejb jar file structore inside the bin
workspace directory. Like this :

/bin
com
sigea
ExecutaMatriculaHome.class
ExecutaMatricula.class
ExecutaMatriculaBean.class
..
META-INF
ejb-jar.xml
jboss.xml

I want to put this inside a JAR file to be deployed on the server.
I am able to use the JarPackageData successfully.
My question is how to get the elements to the array passed to the
setElements(filestoExport) function.

What is the right way of do it ?

Danilo.
Re: Programmatically JAR creation [message #8275 is a reply to message #7436] Tue, 29 April 2003 09:04 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Danilo Luiz Rheinheimer wrote:

> Hi.
>
> In a project I have a Ejb jar file structore inside the bin
>workspace directory. Like this :
>
> /bin
> com
> sigea
> ExecutaMatriculaHome.class
> ExecutaMatricula.class
> ExecutaMatriculaBean.class
> ..
> META-INF
> ejb-jar.xml
> jboss.xml
>
> I want to put this inside a JAR file to be deployed on the server.
> I am able to use the JarPackageData successfully.
> My question is how to get the elements to the array passed to the
>setElements(filestoExport) function.
>
The JarPackageData expects the resources and/or Java elements that you
use as source. It then figures out which class files to package (e.g. if
you have type A and B in A.java it will package A.class and B.class). If
you want to create a JAR/ZIP out of the output folder then you better
use java.util.jar classes to do so.

Dani
Previous Topic:Eclipse 2.2 vs. Eclipse 3.0
Next Topic:IWorkinCopy should extend ICompilationUnit, and not the opposite
Goto Forum:
  


Current Time: Wed Feb 05 14:55:25 GMT 2025

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

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

Back to the top