|
|
|
|||||
|
I'm looking for the easiest way to develop at least parts of an ICE application in Java.
In the past, I've used Eclipse for Java and Visual Studio 2005 for C# or VB. It looks like there is no usable Eclipse plugin for ICE and I don't know how to develop a Java application with VS2005. I've tried Gaylord Fureau's IcEclipse plugin for Eclipse at ICEEclipse - A plugin for the IDE Eclipse, but it looks like nobody's updating it and it supports an old version of ICE. Your download description for the "Windows Installer for Visual Studio 2005 SP1" refers to Java. Is there something I'm missing in VS2005 that would let me develop Java apps? As an alternative, is there any hope for an Eclipse plugin? Should I drop back to command line stuff for ICE/Java? Thanks in advance for any suggestions you can make. |
|
|||||
|
I use Eclipse to develop my Java Ice servers. I use the old "IcEclipse" plug-in purely to provide syntax highlighting -- it's not useful for much more. But it's not too hard to set up a good Ant build.xml file and ensure that slice2java gets run at appropriate points in the project's lifecycle, and that's worked pretty well for me.
In my build.xml, I have two targets that looks like this (where JAST_ICE_DIR is the directory where my *.ice files are, and all of my files are in the "jast" module): Code:
<target name="slice2java">
<mkdir dir="src" />
<slice2java outputdir="src">
<includepath path="${env.JAST_ICE_DIR}" />
<includepath path="${ice_slice_dir}" />
<fileset dir="${env.JAST_ICE_DIR}/jast">
<include name="common/Agent.ice" />
<include name="common/Object.ice" />
<!-- ... and so on ... -->
</fileset>
<meta value="java:java5" />
</slice2java>
</target>
<target name="clean-slice2java">
<delete dir="src/jast" />
<delete file="src/.depend" />
</target>
Then, in Eclipse, you need to set things up like this; this is based on instructions I wrote up for my colleagues recently.
I hope this is sort of useful. Let me know if something doesn't work and I can clarify. MEF
__________________
Mary Ellen Foster |
|
|||||
|
Thanks for your suggestions
Thanks a lot for taking the time to respond.
I'll have to do some reading on Ant, but could you tell me which "Ice Java tasks" need to be taskdef'd? I couldn't find any occurrences of "taskdef" in the ICE pdf. Thanks again for your help. |
|
|||||
|
I got it working. Thanks to both Bernard and Mary Ellen for their help.
I was thinking that I'd have to write all the Ant tasks, but after Bernard's note I realized that all I needed was a taskdef equating slicetojava to the Slice2JavaTask included in ant-ice.jar. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Environment variables for java IceBoxin IceGrid | Sameerrele | Help Center | 4 | 10-10-2006 05:24 PM |
| Question about ICE_CONFIG environment variable in Ice for java ? | rc_hz | Comments | 2 | 09-18-2006 05:54 AM |
| New features in development for Ice 1.6 | mes | Announcements | 0 | 09-10-2004 06:28 PM |
| Cross development | ahartveld | Help Center | 0 | 01-08-2004 11:44 AM |
| development roadmap | tom | Comments | 2 | 09-26-2003 03:41 AM |