« Return to Thread: Create Single JAR file fron a Module

Create Single JAR file fron a Module

by emmbec :: Rate this Message:

Reply to Author | View in Thread

Hi I created a NetBeans Platform application with lots of modules, it has a very nice GUI and it works perfectly fine, however I have been asked to create some sort of API that I can use inside Matlab to call some functionalities of my NetBeans Platform application from within it, functionalities that are not GUI related. I already know how to call a JAR file from Matlab, however what I don't know is how to create a single JAR file for an specific module.



Let me explain a little more what I want to achieve, I have one module (Module A) that includes like three more modules and some NetBeans platform APIs. What module A does is basically wrapps up all of the other module features into a single class, and I would like to create a single JAR file for Module A, that includes ALL the other modules and NetBeans JARs, so that I can use that single JAR file inside Matlab.



Can I create a single JAR file for a module that includes all of its libraries on that same JAR?



I looked at some post where they said that I could do simething like this:




Code:
<target name="-pre-jar">

        <unjar src="${file.reference.MyObject.jar}" dest="${build.classes.dir}"/>

</target>





But I don't know what to write in the file.reference section... [Embarassed]



Any help is highly appreciated.



Thanks!




 « Return to Thread: Create Single JAR file fron a Module