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