Re: [CMake] Java support - install with components

2011-12-12 Thread Allen D Byrne
andreas, Yes I agree the COMPONENT should be optional, but handled in the same manner as the install command - in fact if the function is to incorporate the INSTALL command then we must have a way to pass the same options to the INSTALL command that the INSTALL command supports. Maybe, we ne

Re: [CMake] Java support - install with components

2011-12-10 Thread Andreas Schneider
On Thursday 20 October 2011 11:59:05 Allen D Byrne wrote: > I've upgraded my Java project to the latest 2.8.6 release. The only thing > missing for me is to allow components on the install commands. I just did > the following: Hi Allen, > function(INSTALL_JAR _TARGET_NAME _DESTINATION _COMPONENT)

[CMake] Java support - install with components

2011-10-20 Thread Allen D Byrne
I've upgraded my Java project to the latest 2.8.6 release. The only thing missing for me is to allow components on the install commands. I just did the following: In UseJava.cmake (same for INSTALL_JNI_SYMLINK): function(INSTALL_JAR _TARGET_NAME _DESTINATION) get_property(__FILES TA

Re: [CMake] CMake Java Support

2011-02-10 Thread Allen D Byrne
Andreas, The proposed command at the end of add_jar will give me a classpath variable with all the required jars and with the target jar: set(${_TARGET_NAME}_CLASSPATH ".${CMAKE_JAVA_INCLUDE_PATH_FINAL}/${_TARGET_NAME}.jar" PARENT_SCOPE) NOTE the use of CMAKE_JAVA_INCLUDE_PATH_FINAL and not

Re: [CMake] CMake Java Support

2011-02-10 Thread Andreas Schneider
On Saturday 05 February 2011 16:04:15 Allen D Byrne wrote: > Yes! That is where I meant! (dang email doesn't read minds properly:) there is already ${_TARGET_NAME}_JAR_FILE which is exactly what you want. > BTW, I have a problem I couldn't fix. When doing an add_jar with source in > the current

Re: [CMake] CMake Java Support

2011-02-05 Thread Allen D Byrne
Yes! That is where I meant! (dang email doesn't read minds properly:) BTW, I have a problem I couldn't fix. When doing an add_jar with source in the current dir and resource files (image files) in a sub-directory, the resource files in the jar are at the class base instead of below. Example; W

Re: [CMake] CMake Java Support

2011-02-05 Thread Andreas Schneider
On Wednesday, January 12, 2011 15:32:08 you wrote: > Andreas, > Thanks for providing these files! I have finally been able to progress on > converting our java product to cmake. I have one suggestion: > > Add to the add_java function the classpath for the target; > > set(${_TARGET_NAME}_CLASS

Re: [CMake] CMake Java Support

2011-01-14 Thread Allen D Byrne
Hendrik, Thanks! I put '"' around the classpath on line 233 of UseJava.cmake file and windows was happy to compile the sources. Andreas, So that makes only two changes to UseJava.cmake, both in the add_jar function; Quotes around the ${CMAKE_JAVA_INCLUDE_PATH_FINAL} in line 233 and ad

Re: [CMake] CMake Java Support

2011-01-14 Thread Hendrik Sattler
Am Freitag, 14. Januar 2011, 16:48:44 schrieb Andreas Schneider: > On Friday 14 January 2011 16:32:16 you wrote: > > Andreas, > > Hi Allen, > > > Thanks, I do have most everything working, setting the version was > > the > > > > key! > > Concerning the '.' at the beginning of my proposed

Re: [CMake] CMake Java Support

2011-01-14 Thread Allen D Byrne
Andreas, The problem is a CMake issue with how ';' is interpreted. In the USE_JAVA.CMAKE file (lines 227-243): > if (_JAVA_COMPILE_FILES) > # Compile the java files and create a list of class files > add_custom_command( > TARGET ${_TARGET_NAME} > COMMAN

Re: [CMake] CMake Java Support

2011-01-14 Thread Andreas Schneider
On Friday 14 January 2011 16:32:16 you wrote: > Andreas, Hi Allen, > Thanks, I do have most everything working, setting the version was the > key! > Concerning the '.' at the beginning of my proposed patch, I added that > because the CMAKE_JAVA_INCLUDE_PATH_FINAL started with a seperator and

Re: [CMake] CMake Java Support

2011-01-14 Thread Andreas Schneider
On Wednesday 12 January 2011 15:32:08 Allen D Byrne wrote: > Andreas, Hi Allen, > Thanks for providing these files! I have finally been able to progress on > converting our java product to cmake. I have one suggestion: > > Add to the add_java function the classpath for the target; > > set($

Re: [CMake] CMake Java Support

2011-01-14 Thread Andreas Schneider
On Wednesday 12 January 2011 15:32:08 Allen D Byrne wrote: > Andreas, > Thanks for providing these files! I have finally been able to progress on > converting our java product to cmake. I have one suggestion: > > Add to the add_java function the classpath for the target; > > set(${_TARGET_NAM

Re: [CMake] CMake Java Support

2011-01-13 Thread luxInteg
On Tuesday 11 January 2011 11:38:09 Andreas Schneider wrote: > Hello CMake, > > my name is Andreas Schneider and I'm working for Red Hat. At the end of > last year I've worked on Dogtag PKI [1]. The Dogtag Certificate System [2] > is an enterprise-class open source Certificate Authority. > > The

Re: [CMake] CMake Java Support

2011-01-12 Thread Allen D Byrne
Andreas, Thanks for providing these files! I have finally been able to progress on converting our java product to cmake. I have one suggestion: Add to the add_java function the classpath for the target; set(${_TARGET_NAME}_CLASSPATH ".${CMAKE_JAVA_INCLUDE_PATH_FINAL}/${_TARGET_NAME}.jar" PA

Re: [CMake] CMake Java Support

2011-01-11 Thread Eric Noulard
2011/1/11 Andreas Schneider : > On Tuesday 11 January 2011 16:01:14 Andrea Galeazzi wrote: >> Hi Andreas, > > Hi Andrea, > >> I'm a dyed-in-the-wool Java developer (and also Fedora user) so it makes >> me very happy to know that someone are working to integrate Java in >> CMake. My question is: sho

Re: [CMake] CMake Java Support

2011-01-11 Thread Alistair Bush
> On Tuesday 11 January 2011 16:01:14 Andrea Galeazzi wrote: > > Hi Andreas, > > Hi Andrea, > > > I'm a dyed-in-the-wool Java developer (and also Fedora user) so it makes > > me very happy to know that someone are working to integrate Java in > > CMake. My question is: shouldn't Ant be enough? Or

Re: [CMake] CMake Java Support

2011-01-11 Thread Andreas Schneider
On Tuesday 11 January 2011 16:01:14 Andrea Galeazzi wrote: > Hi Andreas, Hi Andrea, > I'm a dyed-in-the-wool Java developer (and also Fedora user) so it makes > me very happy to know that someone are working to integrate Java in > CMake. My question is: shouldn't Ant be enough? Or better, Could >

Re: [CMake] CMake Java Support

2011-01-11 Thread Andrea Galeazzi
Andreas Schneider ha scritto: Hello CMake, my name is Andreas Schneider and I'm working for Red Hat. At the end of last year I've worked on Dogtag PKI [1]. The Dogtag Certificate System [2] is an enterprise-class open source Certificate Authority. The project is written in serveral different

[CMake] CMake Java Support

2011-01-11 Thread Andreas Schneider
Hello CMake, my name is Andreas Schneider and I'm working for Red Hat. At the end of last year I've worked on Dogtag PKI [1]. The Dogtag Certificate System [2] is an enterprise-class open source Certificate Authority. The project is written in serveral different laguages (C, C++ and Java), so

Re: [CMake] Java Support

2010-02-02 Thread Alex Brandt
On Friday 22 January 2010 1:37:50 pm David Cole wrote: > If you are a Java guru, I would appreciate your review and comments on this > issue, which has been in our issue tracker for a while now. If you have a > good suggestion for the best way to fix it, I would love to hear it. > > http://public.

Re: [CMake] Java Support

2010-01-23 Thread Mike Jackson
You should have a CLASSPATH environment variable set so java knows where to find the jar files when running. sort of similar to the LD_LIBRARY_PATH when running a C/C++ application. Mike Jackson Sent from my iPod On Jan 22, 2010, at 22:18, Alex Brandt wrote: On Friday 22 January 2010 9

Re: [CMake] Java Support

2010-01-22 Thread Alex Brandt
On Friday 22 January 2010 9:03:23 pm Alain Leblanc wrote: > The jar file containing LDAPReferralException (probably > /usr/share/jldap/lib/ldap.jar) must be included in your CLASSPATH > variable. This is a basic java issue. Nothing to do with cmake. > _

Re: [CMake] Java Support

2010-01-22 Thread Alain Leblanc
On 01/22/2010 08:47 PM, Alex Brandt wrote: > On Friday 22 January 2010 2:26:58 pm you wrote: > >> What specific problems are you having with your Java code? >> ___ >> Mike Jackson www.bluequartz.net >> Principal Softwar

Re: [CMake] Java Support

2010-01-22 Thread Alex Brandt
On Friday 22 January 2010 2:26:58 pm you wrote: > What specific problems are you having with your Java code? > ___ > Mike Jackson www.bluequartz.net > Principal Software Engineer mike.jack...@bluequartz.net > BlueQua

Re: [CMake] Java Support

2010-01-22 Thread Michael Jackson
What specific problems are you having with your Java code? ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Jan 22, 2010

Re: [CMake] Java Support

2010-01-22 Thread David Cole
On Fri, Jan 22, 2010 at 1:42 PM, Alex Brandt wrote: > I know that support exists in CMake 2.8, but I can't find any documentation > for it or a statement about the status of it. I've started looking into > the > following files: > > /usr/share/cmake/Modules/FindJava.cmake > /usr/share/cmake/Modu

[CMake] Java Support

2010-01-22 Thread Alex Brandt
I know that support exists in CMake 2.8, but I can't find any documentation for it or a statement about the status of it. I've started looking into the following files: /usr/share/cmake/Modules/FindJava.cmake /usr/share/cmake/Modules/CMakeDetermineJavaCompiler.cmake /usr/share/cmake/Modules/CMa