1
1
1nd1go2011-07-07 10:59:23
Apache Ant
1nd1go, 2011-07-07 10:59:23

Question about ant and packaging in jar?

There is the following structure:
- src
|-java
|-wsdl -target
|
-classes
-build.xml
you need to pack the contents of classes into the jar, and put the wsdl folder in the jar's META-INF (namely, with the contents, and not just the contents)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
apangin, 2011-07-07
@apangin

Yes, nothing fancy.

<jar destfile="project.jar" basedir="target/classes">
  <metainf dir="target" includes="resources/**" />
</jar>

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question