Bumping my newbie question... I need to add a jar to the output of add_jar().
Anybody know how to do this?
Thanks, Rodrigo.
From: [email protected] [mailto:[email protected]] On Behalf Of
Pastrana, Rodrigo (RIS-BCT)
Sent: Tuesday, January 29, 2013 12:25 PM
To: '[email protected]'
Subject: [CMake] Adding dependency jar to jar
Hello, I've been creating a jar based on my java project without issue, but now
I'm adding an external dependency and will like to package the said
dependency's contents within my output jar.
I'm able to build the project via CMAKE by adding the external.jar to the
CMAKE_JAVA_INCLUDE_PATH list:
LIST(APPEND CMAKE_JAVA_INCLUDE_PATH ${EXTERNAL_BUILDTIME_JAR})
ADD_JAR(${JAR_FILE} ${JAVA_SOURCE_FILES})
And I've tried a few things to include ${EXTERNAL_RUNTIME_JAR} in ${JAR_FILE}
to no avail.
Does anybody know a way to accomplish this? (btw using CMAKE 2.8).
Using ANT through eclipse I was able to include the external using
zipgroupfileset:
<jar jarfile="myjavaproj.jar" includes="**/*.class" basedir="bin">
<zipgroupfileset dir="/XXX/yyy/zzz/" includes="external.jar"/>
</jar>
Thanks in advance. RP.
-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake