Build problem in IceStorm demo (java)

pgaleaspgaleas ChileMember Patricio GaleasOrganization: Universidad de La Frontera

Hi,
I'm trying to create a weather station application using the clock demo (IceStorm) as template.
I duplicate and rename the clock directory (clock -> weather) and create a new ice interface (Weather.ice):

module Demo {
    interface WeatherStation {
      void getData(string temperature, string hunidity);
    };
  };

The Subscriber.java and Publisher.java were also changed according to Weather.ice.
I'm using the original file build.gradle from clock demo.

When I try to build the project I get the following error:

FAILURE: Build failed with an exception.
* Where:
Build file '/Users/patricio/Documents/github/ice-demos/java/IceStorm/weather/build.gradle' line: 7
* What went wrong:
A problem occurred evaluating root project 'weather'.
> Could not find method slice() for arguments [[email protected]] on root project 'weather' of type org.gradle.api.Project.

I appreciate any help

Thanks
Patricio

Best Answer

  • xdmxdm La Coruña, SpainJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Accepted Answer

    Hi Patricio,

    You need to build the demos from the top level java directory ice-demos/java

    Cheers,
    José

Answers

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Accepted Answer

    Hi Patricio,

    You need to build the demos from the top level java directory ice-demos/java

    Cheers,
    José

  • pgaleaspgaleas ChileMember Patricio GaleasOrganization: Universidad de La Frontera

    Hi José,
    It works!
    Thanks again
    Cheers
    Patricio

Sign In or Register to comment.