Build problem in IceStorm demo (java)

in Help Center
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
0
Best Answer
-
xdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
Hi Patricio,
You need to build the demos from the top level java directory ice-demos/java
Cheers,
José0
Answers
Hi Patricio,
You need to build the demos from the top level java directory ice-demos/java
Cheers,
José
Hi José,
It works!
Thanks again
Cheers
Patricio