Results 1 to 2 of 2

Thread: Eclipse plugin autogenerated code not working

  1. #1
    raulgd's Avatar
    raulgd is offline Registered User
    Name: Raul Guerrero
    Organization: Jimi
    Project: RI of mexican standard of Electronic Health Record
    Join Date
    Mar 2011
    Location
    Queretaro, Mexico
    Posts
    15

    Eclipse plugin autogenerated code not working

    Hi,

    I have multiple ice definitions for different applications, and so that everyone has access to all of the slice definitions of all the applications so they can use the defined ice services, we separated the actual applications code from the slide definitions folder, so we have one special separated folder we call the Slice Store, so our structure looks like this:

    Code:
    /eclipseApp1
         /src
         /more folders...
    /eclipseApp2
         /src
         /more folders...
    /SliceStore
         /eclipseApp1
              services.ice
         /eclipseApp2
              services.ice
    So when someone from another app needs to generate code from the app slice definitions so they create a client, they don't have to checkout the whole sourcecode of the app just to get the slice files, instead they just checkout the slicestore and they have all of the ice files they need.

    The bug here is that, when you add the slice2java builder to a project, you can set the builder properties in the project properties -> slice2java properties menu and then add the SliceStore folder. To add the SliceStore folder to the project, as the SliceStore is outside the project folder, I add it through project properties -> java build path menu and add the folder using the Link Source button, and referencing the external folder.

    The problem is that when I add an external folder, even though I create or change the slice files, the autogenerate code doesn't work.

    It would be cool if I were able to work with slice files and folders outside of my project and that the autogenerate code does his work and place the generated files in the generated folder.


    EDIT: forgot to mention this, when I add the SliceStore folder, the slice code doesn't regenerate on changes, but if I add the slice app folders one by one (/SliceStore/eclipseApp1, app2, etc) then it works, what I'm saying here is that it would be nice to just add the SliceStore folder instead of having to add each application folder.
    Last edited by raulgd; 04-08-2011 at 11:43 AM.
    Raul Guerrero
    Software developer
    Jimi.mx

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    I think the problem here is that the slice2java builder does not recurse into child directories. You should be able to add the SliceStore folder once, and then in the slice2java builder configuration add each child directories to the list contained in the "Source" configuration panel.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Eclipse Plugin and Ice
    By marcel in forum Bug Reports
    Replies: 1
    Last Post: 04-08-2010, 08:09 PM
  2. 3.4 Eclipse plugin
    By marcel in forum Help Center
    Replies: 1
    Last Post: 03-09-2010, 11:35 PM
  3. Eclipse C++ plugin...
    By krisjakobsen in forum Comments
    Replies: 3
    Last Post: 03-09-2010, 03:44 AM
  4. Eclipse plugin
    By rincewind in forum Comments
    Replies: 9
    Last Post: 09-14-2009, 12:23 PM
  5. Source for Eclipse plugin?
    By mefoster in forum Help Center
    Replies: 2
    Last Post: 01-27-2009, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •