eclipse - Create an EJB Jar without an IDE -


i exporting project ejb jar manually through eclipse @ moment right-clicking on project , exporting.

is possible create identical jar file through command line without having rely on ide?

i have tried jar'ing doesn't seem capturing same directory structure manual export does.

yes, that's possible. ejb-jar normal .jar file in end.

so simple cases can use ant jar task: if have classes or without standard ejb-jar.xml descriptor, sufficient.

for example

    <jar destfile="${dist-directory}/${sb-jar}">         <fileset dir="${sb-root}/classes">             <include name="**/*" />         </fileset>          <!-- meta-inf/ejb-jar.xml etc. -->         <fileset dir="packaging-data/sb-jar">             <include name="**/*" />         </fileset>     </jar> 

you might have adjust filesets, , rearrange project layout make easier ant (this can cumbersome).

there more sophisticated ejbjar task available well, 1 supports vendor specific elements create ejb-jar files different application servers: see ant tasks ejb


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -