From RicardoGonzalez at eprosima.com Mon Nov 3 10:02:15 2014 From: RicardoGonzalez at eprosima.com (Ricardo Gonzalez Moreno) Date: Mon, 3 Nov 2014 09:02:15 +0000 Subject: [Fiware-middleware] Hangout link Message-ID: <1415005335.22785.16.camel@ricardodesktop> https://plus.google.com/hangouts/_/g75k6zrtoi4mc7uz5e7lc6emxaa From JaimeMartin at eprosima.com Mon Nov 3 10:52:54 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Mon, 3 Nov 2014 09:52:54 +0000 Subject: [Fiware-middleware] IDL Parser: Discuss How to use Antlr Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/calendar Size: 1506 bytes Desc: not available URL: From Dmitri.Rubinstein at dfki.de Mon Nov 3 15:02:22 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Mon, 03 Nov 2014 15:02:22 +0100 Subject: [Fiware-middleware] KIARA/DFKI Parser Message-ID: <54578AEE.7090005@dfki.de> Thrift-based KIARA/DFKI Grammar (without Actions): https://github.com/dmrub/kiara-java/blob/master/KIARA/src/main/antlr4/de/dfki/kiara/idl/Kiara.g4 Listener-based KIARA Type Database (KTD) constructor, KiaraListener class is generated by ANTLR https://github.com/dmrub/kiara-java/blob/master/KIARA/src/main/java/de/dfki/kiara/idl/KiaraKTDConstructor.java This approach is described in ANTLR4 book: http://dl.e-book-free.com/2013/07/the_definitive_antlr_4_reference.pdf, Section 4.3 Building Translator with a Listener, page 58. Best, Dmitri From Dmitri.Rubinstein at dfki.de Tue Nov 4 13:27:30 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Tue, 04 Nov 2014 13:27:30 +0100 Subject: [Fiware-middleware] KIARA Test Version Message-ID: <5458C632.6020801@dfki.de> Hi all, based on our latest Spec document (https://docs.google.com/document/d/13Dr2LsZxY3osXiTiePozwZlI3DSoQpUbhT79_SHQ_YA/edit#heading=h.jmt22wsy07f8) I modified source code (see attachment), initially created by Ricardo, to have an API in the documented way. Now Connection, Context, Server and Service are interfaces, and only Kiara is a class. I did also a small change in the server example (page 14). I need for server a different transport class than for client: TransportServer. Best, Dmitri -------------- next part -------------- A non-text attachment was scrubbed... Name: kiara_java_mod_2014-11-04.tar.gz Type: application/gzip Size: 77504 bytes Desc: not available URL: From miguel.carrillopacheco at telefonica.com Tue Nov 4 15:28:07 2014 From: miguel.carrillopacheco at telefonica.com (MIGUEL CARRILLO PACHECO) Date: Tue, 4 Nov 2014 15:28:07 +0100 Subject: [Fiware-middleware] Security settings violation In-Reply-To: <1-5070797B77C65-CCA3148B-0707-9705-B072-A711C6111AA6> References: <1-5070797B77C65-CCA3148B-0707-9705-B072-A711C6111AA6> Message-ID: <5458E277.9@telefonica.com> Dear all, Just in case you are not informed of this. Regards, Miguel El 04/11/2014 13:27, imsva-tgt at telefonica.com escribi?: > InterScan Messaging Security Appliance has detected a message which violated the security settings configured. The message was deleted. > > Message details: > Sender: fiware-middleware-bounces at lists.fi-ware.org > Subject: [Fiware-middleware] KIARA Test Version > Attachment: kiara_java_mod_2014-11-04.tar.gz -- Please update your address book with my new e-mail address: miguel.carrillopacheco at telefonica.com ---------------------------------------------------------------------- _/ _/_/ Miguel Carrillo Pacheco _/ _/ _/ _/ Telef?nica Distrito Telef?nica _/ _/_/_/ _/ _/ Investigaci?n y Edifico Oeste 1, Planta 9 _/ _/ _/ _/ Desarrollo Ronda de la Comunicaci?n S/N _/ _/_/ 28050 Madrid (Spain) Tel: (+34) 91 483 26 77 e-mail: miguel.carrillopacheco at telefonica.com Follow FI-WARE on the net Website: http://www.fi-ware.org Facebook: http://www.facebook.com/pages/FI-WARE/251366491587242 Twitter: http://twitter.com/Fiware LinkedIn: http://www.linkedin.com/groups/FIWARE-4239932 ---------------------------------------------------------------------- ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener informaci?n privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n puede estar prohibida en virtud de la legislaci?n vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma v?a y proceda a su destrucci?n. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinat?rio, pode conter informa??o privilegiada ou confidencial e ? para uso exclusivo da pessoa ou entidade de destino. Se n?o ? vossa senhoria o destinat?rio indicado, fica notificado de que a leitura, utiliza??o, divulga??o e/ou c?pia sem autoriza??o pode estar proibida em virtude da legisla??o vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destrui??o From RicardoGonzalez at eprosima.com Fri Nov 7 12:35:44 2014 From: RicardoGonzalez at eprosima.com (Ricardo Gonzalez Moreno) Date: Fri, 7 Nov 2014 11:35:44 +0000 Subject: [Fiware-middleware] Link to the KIARA RPC API - Design document Message-ID: <1415360143.3977.4.camel@ricardodesktop> Hi, This week I've been traveling and I arrived yesterday at night. I've started the document this morning. It is not finished yet. Even so here it is the link in case you want to start reading, commenting or editing it. https://docs.google.com/document/d/1PCw_i8jWohAw_5KhU3U_p6OBBEW6mgM4zta9j17gQHo/edit?usp=sharing Best regards, Ricardo. From JaimeMartin at eprosima.com Fri Nov 7 12:59:03 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 7 Nov 2014 11:59:03 +0000 Subject: [Fiware-middleware] KIARA API Discussion - Hang out Message-ID: https://plus.google.com/hangouts/_/grviyf6ycmfmnslcculgiy3nnua Regards, Jaime. -----Original Message----- From: fiware-middleware-bounces at lists.fi-ware.org [mailto:fiware-middleware-bounces at lists.fi-ware.org] On Behalf Of Ricardo Gonzalez Moreno Sent: viernes, 07 de noviembre de 2014 12:36 To: fiware-middleware at lists.fi-ware.org Subject: [Fiware-middleware] Link to the KIARA RPC API - Design document Hi, This week I've been traveling and I arrived yesterday at night. I've started the document this morning. It is not finished yet. Even so here it is the link in case you want to start reading, commenting or editing it. https://docs.google.com/document/d/1PCw_i8jWohAw_5KhU3U_p6OBBEW6mgM4zta9j17gQHo/edit?usp=sharing Best regards, Ricardo. _______________________________________________ Fiware-middleware mailing list Fiware-middleware at lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-middleware ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4765 / Virus Database: 4040/8397 - Release Date: 10/16/14 Internal Virus Database is out of date. From JaimeMartin at eprosima.com Fri Nov 7 13:25:14 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 7 Nov 2014 12:25:14 +0000 Subject: [Fiware-middleware] IDL Parser: Discuss How to use Antlr Message-ID: <312524bad7b44e489bef984303db4b6f@AM2PR06MB0929.eurprd06.prod.outlook.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/calendar Size: 1751 bytes Desc: not available URL: From JaimeMartin at eprosima.com Fri Nov 7 13:25:05 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 7 Nov 2014 12:25:05 +0000 Subject: [Fiware-middleware] IDL Parser: Discuss How to use Antlr Message-ID: <9b0fe559f0ec4c6cac43b1965cc6dd69@AM2PR06MB0929.eurprd06.prod.outlook.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/calendar Size: 1751 bytes Desc: not available URL: From JaimeMartin at eprosima.com Fri Nov 7 13:57:51 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 7 Nov 2014 12:57:51 +0000 Subject: [Fiware-middleware] KIARA JIRA Issues Message-ID: I created three workitems: http://jira.fi-ware.org/browse/MIND-15 http://jira.fi-ware.org/browse/MIND-16 http://jira.fi-ware.org/browse/MIND-17 All due for this sprint. I will clone the issues to every partner as soon we have the dmitri account created. Regards, Jaime Martin Losa CEO Twitter: @JaimeMartinLosa [cid:image001.png at 01CFFA92.BF5FF5A0] The Middleware Experts Phone: + 34 91 804 34 48 / + 34 607 91 37 45 JaimeMartin at eProsima.com www.eProsima.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3800 bytes Desc: image001.png URL: From RicardoGonzalez at eprosima.com Tue Nov 11 11:15:17 2014 From: RicardoGonzalez at eprosima.com (Ricardo Gonzalez Moreno) Date: Tue, 11 Nov 2014 10:15:17 +0000 Subject: [Fiware-middleware] Hangout link: Meeting about IDL parser Message-ID: <1415700915.3361.0.camel@ricardodesktop> https://plus.google.com/hangouts/_/g5nc4tajh5jqgbkfwedufbdasqa Best regards, Ricardo From mach at zhaw.ch Tue Nov 11 20:32:13 2014 From: mach at zhaw.ch (Marti Christof (mach)) Date: Tue, 11 Nov 2014 19:32:13 +0000 Subject: [Fiware-middleware] Links and template-project to start with gradle Message-ID: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> Hi everybody I put together some starter links about gradle and created a template project for kiara, which adds some plugins and configuration to support and integrate with antlr4, maven, eclipse and IntelliJ Idea. Gradle-UserGuide & References: http://www.gradle.org/docs/current/userguide/userguide.html (you'll find almost everything there) Gradle-Plugins registry: http://plugins.gradle.org (e.g. the antlr4 plugin entry is here: http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) Good-Intro about why and how (compared to Ant/Maven) from the creator Hans Dockter (if you have time: 85?): https://www.youtube.com/watch?v=5a91dBLX8Qc Here you?ll find the kiara-gradle-template project: https://github.com/christofmarti/kiara-gradle-template (it does not contain any KIARA specific files yet; only a typical project hierarchy and configuration for the plugins) If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call the correct version of gradle, without preinstalling gradle. (e.g. change to project dir and execute "./gradlew tasks" to list all available tasks) The main advantage of the wrapper is, that always the correct version of the tool is used. If not available it will be downloaded and installed locally from the path defined in ./gradle/wrapper/gradle-wrapper.properties. To create eclipse project files type "./gradlew eclipse" To create IntelliJ IDEA project files type "./gradlew idea" "./gradlew build" builds and assembles the whole project (incl. processing antlr4 files) ?./gradlew clean? removes all generated files (but not eclipse or idea configs; use cleanEclipse or cleanIdea for this). I included a community plugin for antlr4. Sources have to be in src/main/antlr4/ (configureable). I had to add some Java version fixes, because the annotation processor of antlr only supports Java 7&8 from version 4.4.1 which is not yet in the repositories (see: https://github.com/antlr/antlr4/issues/487) @Dmitry: If you have a maven (pom) project, you can create an initial gradle configuration using: "gradle init --type pom? This needs a full gradle installation, not the wrapper (see http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA for details) Best regards Christof ---- InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab Institut of Applied Information Technology - InIT Zurich University of Applied Sciences - ZHAW School of Engineering Phone: +41 58 934 70 63 Skype: christof-marti From Dmitri.Rubinstein at dfki.de Wed Nov 12 00:38:32 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 00:38:32 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> Message-ID: <54629DF8.80204@dfki.de> I created gradle project with your project file, but diamond operator does not work: Map m = new HashMap<>(); Best, Dmitri On 11/11/14 20:32, Marti Christof (mach) wrote: > Hi everybody > > I put together some starter links about gradle and created a template project for kiara, which adds some plugins and configuration to support and integrate with antlr4, maven, eclipse and IntelliJ Idea. > > Gradle-UserGuide & References: http://www.gradle.org/docs/current/userguide/userguide.html > (you'll find almost everything there) > Gradle-Plugins registry: http://plugins.gradle.org > (e.g. the antlr4 plugin entry is here: http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) > > Good-Intro about why and how (compared to Ant/Maven) from the creator Hans Dockter (if you have time: 85?): > https://www.youtube.com/watch?v=5a91dBLX8Qc > > Here you?ll find the kiara-gradle-template project: > https://github.com/christofmarti/kiara-gradle-template > (it does not contain any KIARA specific files yet; only a typical project hierarchy and configuration for the plugins) > > If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call the correct version of gradle, without preinstalling gradle. (e.g. change to project dir and execute "./gradlew tasks" to list all available tasks) > The main advantage of the wrapper is, that always the correct version of the tool is used. If not available it will be downloaded and installed locally from the path defined in ./gradle/wrapper/gradle-wrapper.properties. > > To create eclipse project files type "./gradlew eclipse" > To create IntelliJ IDEA project files type "./gradlew idea" > "./gradlew build" builds and assembles the whole project (incl. processing antlr4 files) > ?./gradlew clean? removes all generated files (but not eclipse or idea configs; use cleanEclipse or cleanIdea for this). > > I included a community plugin for antlr4. Sources have to be in src/main/antlr4/ (configureable). > I had to add some Java version fixes, because the annotation processor of antlr only supports Java 7&8 from version 4.4.1 which is not yet in the repositories (see: https://github.com/antlr/antlr4/issues/487) > > > @Dmitry: > If you have a maven (pom) project, you can create an initial gradle configuration using: > "gradle init --type pom? > This needs a full gradle installation, not the wrapper > (see http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA for details) > > > Best regards > Christof > ---- > InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab > Institut of Applied Information Technology - InIT > Zurich University of Applied Sciences - ZHAW > School of Engineering > Phone: +41 58 934 70 63 > Skype: christof-marti > > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware > From mach at zhaw.ch Wed Nov 12 09:03:58 2014 From: mach at zhaw.ch (Marti Christof (mach)) Date: Wed, 12 Nov 2014 08:03:58 +0000 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> Message-ID: <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> Hi Dmitri This operator was introduced with Java 7 (javac 1.7), as many other nice enhancements. (Before you had to type Map m = new HashMap() ) That is one of the reasons, I want to go to 1.7 or 1.8 asap. To fix this you must change the ?sourceCompatibility" entry in build.gradle to 1.7 or higher. But then we start getting the problems with the antlr4 annotation processor. Another option would be to disable the annotation processor (?) or provide our own version of (4.4.1) which is on the antlr4 master tree. BR, Christof > On 12.11.2014, at 00:38, Dmitri Rubinstein wrote: > > I created gradle project with your project file, but diamond operator > does not work: > > Map m = new HashMap<>(); > > Best, > > Dmitri > > On 11/11/14 20:32, Marti Christof (mach) wrote: >> Hi everybody >> >> I put together some starter links about gradle and created a template project for kiara, which adds some plugins and configuration to support and integrate with antlr4, maven, eclipse and IntelliJ Idea. >> >> Gradle-UserGuide & References: http://www.gradle.org/docs/current/userguide/userguide.html >> (you'll find almost everything there) >> Gradle-Plugins registry: http://plugins.gradle.org >> (e.g. the antlr4 plugin entry is here: http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >> >> Good-Intro about why and how (compared to Ant/Maven) from the creator Hans Dockter (if you have time: 85?): >> https://www.youtube.com/watch?v=5a91dBLX8Qc >> >> Here you?ll find the kiara-gradle-template project: >> https://github.com/christofmarti/kiara-gradle-template >> (it does not contain any KIARA specific files yet; only a typical project hierarchy and configuration for the plugins) >> >> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call the correct version of gradle, without preinstalling gradle. (e.g. change to project dir and execute "./gradlew tasks" to list all available tasks) >> The main advantage of the wrapper is, that always the correct version of the tool is used. If not available it will be downloaded and installed locally from the path defined in ./gradle/wrapper/gradle-wrapper.properties. >> >> To create eclipse project files type "./gradlew eclipse" >> To create IntelliJ IDEA project files type "./gradlew idea" >> "./gradlew build" builds and assembles the whole project (incl. processing antlr4 files) >> ?./gradlew clean? removes all generated files (but not eclipse or idea configs; use cleanEclipse or cleanIdea for this). >> >> I included a community plugin for antlr4. Sources have to be in src/main/antlr4/ (configureable). >> I had to add some Java version fixes, because the annotation processor of antlr only supports Java 7&8 from version 4.4.1 which is not yet in the repositories (see: https://github.com/antlr/antlr4/issues/487) >> >> >> @Dmitry: >> If you have a maven (pom) project, you can create an initial gradle configuration using: >> "gradle init --type pom? >> This needs a full gradle installation, not the wrapper >> (see http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA for details) >> >> >> Best regards >> Christof >> ---- >> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >> Institut of Applied Information Technology - InIT >> Zurich University of Applied Sciences - ZHAW >> School of Engineering >> Phone: +41 58 934 70 63 >> Skype: christof-marti >> >> >> _______________________________________________ >> Fiware-middleware mailing list >> Fiware-middleware at lists.fi-ware.org >> https://lists.fi-ware.org/listinfo/fiware-middleware >> > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware From Dmitri.Rubinstein at dfki.de Wed Nov 12 09:35:44 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 09:35:44 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> Message-ID: <54631BE0.5090609@dfki.de> On 11/12/14 09:03, Marti Christof (mach) wrote: > Hi Dmitri > > This operator was introduced with Java 7 (javac 1.7), as many other nice enhancements. > (Before you had to type Map m = new HashMap() ) > That is one of the reasons, I want to go to 1.7 or 1.8 asap. I would like to use at least 1.7, 1.8 is still pretty new and for example not supported on Android. > > To fix this you must change the ?sourceCompatibility" entry in build.gradle to 1.7 or higher. > But then we start getting the problems with the antlr4 annotation processor. > Another option would be to disable the annotation processor (?) or provide our own version of (4.4.1) which is on the antlr4 master tree. I am not familiar with antlr4 annotations, do we need this feature ? Best, Dmitri > > BR, > Christof > >> On 12.11.2014, at 00:38, Dmitri Rubinstein wrote: >> >> I created gradle project with your project file, but diamond operator >> does not work: >> >> Map m = new HashMap<>(); >> >> Best, >> >> Dmitri >> >> On 11/11/14 20:32, Marti Christof (mach) wrote: >>> Hi everybody >>> >>> I put together some starter links about gradle and created a template project for kiara, which adds some plugins and configuration to support and integrate with antlr4, maven, eclipse and IntelliJ Idea. >>> >>> Gradle-UserGuide & References: http://www.gradle.org/docs/current/userguide/userguide.html >>> (you'll find almost everything there) >>> Gradle-Plugins registry: http://plugins.gradle.org >>> (e.g. the antlr4 plugin entry is here: http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>> >>> Good-Intro about why and how (compared to Ant/Maven) from the creator Hans Dockter (if you have time: 85?): >>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>> >>> Here you?ll find the kiara-gradle-template project: >>> https://github.com/christofmarti/kiara-gradle-template >>> (it does not contain any KIARA specific files yet; only a typical project hierarchy and configuration for the plugins) >>> >>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call the correct version of gradle, without preinstalling gradle. (e.g. change to project dir and execute "./gradlew tasks" to list all available tasks) >>> The main advantage of the wrapper is, that always the correct version of the tool is used. If not available it will be downloaded and installed locally from the path defined in ./gradle/wrapper/gradle-wrapper.properties. >>> >>> To create eclipse project files type "./gradlew eclipse" >>> To create IntelliJ IDEA project files type "./gradlew idea" >>> "./gradlew build" builds and assembles the whole project (incl. processing antlr4 files) >>> ?./gradlew clean? removes all generated files (but not eclipse or idea configs; use cleanEclipse or cleanIdea for this). >>> >>> I included a community plugin for antlr4. Sources have to be in src/main/antlr4/ (configureable). >>> I had to add some Java version fixes, because the annotation processor of antlr only supports Java 7&8 from version 4.4.1 which is not yet in the repositories (see: https://github.com/antlr/antlr4/issues/487) >>> >>> >>> @Dmitry: >>> If you have a maven (pom) project, you can create an initial gradle configuration using: >>> "gradle init --type pom? >>> This needs a full gradle installation, not the wrapper >>> (see http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA for details) >>> >>> >>> Best regards >>> Christof >>> ---- >>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>> Institut of Applied Information Technology - InIT >>> Zurich University of Applied Sciences - ZHAW >>> School of Engineering >>> Phone: +41 58 934 70 63 >>> Skype: christof-marti >>> >>> >>> _______________________________________________ >>> Fiware-middleware mailing list >>> Fiware-middleware at lists.fi-ware.org >>> https://lists.fi-ware.org/listinfo/fiware-middleware >>> >> >> _______________________________________________ >> Fiware-middleware mailing list >> Fiware-middleware at lists.fi-ware.org >> https://lists.fi-ware.org/listinfo/fiware-middleware > From Dmitri.Rubinstein at dfki.de Wed Nov 12 09:42:54 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 09:42:54 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> Message-ID: <54631D8E.2090406@dfki.de> I have also another problem. When I add following class: package com.kiara; public abstract class MyListener implements ExprListener { } in file: src/main/java/com/kiara/MyListener.java I get errors: /home/rubinste/proj_de3/kiara-gradle-template/src/main/java/com/kiara/MyListener.java:12: error: cannot find symbol public abstract class MyListener implements ExprListener { But having MyListener class in the default package works. Any ideas ? Best, Dmitri On 11/12/14 09:03, Marti Christof (mach) wrote: > Hi Dmitri > > This operator was introduced with Java 7 (javac 1.7), as many other nice enhancements. > (Before you had to type Map m = new HashMap() ) > That is one of the reasons, I want to go to 1.7 or 1.8 asap. > > To fix this you must change the ?sourceCompatibility" entry in build.gradle to 1.7 or higher. > But then we start getting the problems with the antlr4 annotation processor. > Another option would be to disable the annotation processor (?) or provide our own version of (4.4.1) which is on the antlr4 master tree. > > BR, > Christof > >> On 12.11.2014, at 00:38, Dmitri Rubinstein wrote: >> >> I created gradle project with your project file, but diamond operator >> does not work: >> >> Map m = new HashMap<>(); >> >> Best, >> >> Dmitri >> >> On 11/11/14 20:32, Marti Christof (mach) wrote: >>> Hi everybody >>> >>> I put together some starter links about gradle and created a template project for kiara, which adds some plugins and configuration to support and integrate with antlr4, maven, eclipse and IntelliJ Idea. >>> >>> Gradle-UserGuide & References: http://www.gradle.org/docs/current/userguide/userguide.html >>> (you'll find almost everything there) >>> Gradle-Plugins registry: http://plugins.gradle.org >>> (e.g. the antlr4 plugin entry is here: http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>> >>> Good-Intro about why and how (compared to Ant/Maven) from the creator Hans Dockter (if you have time: 85?): >>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>> >>> Here you?ll find the kiara-gradle-template project: >>> https://github.com/christofmarti/kiara-gradle-template >>> (it does not contain any KIARA specific files yet; only a typical project hierarchy and configuration for the plugins) >>> >>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call the correct version of gradle, without preinstalling gradle. (e.g. change to project dir and execute "./gradlew tasks" to list all available tasks) >>> The main advantage of the wrapper is, that always the correct version of the tool is used. If not available it will be downloaded and installed locally from the path defined in ./gradle/wrapper/gradle-wrapper.properties. >>> >>> To create eclipse project files type "./gradlew eclipse" >>> To create IntelliJ IDEA project files type "./gradlew idea" >>> "./gradlew build" builds and assembles the whole project (incl. processing antlr4 files) >>> ?./gradlew clean? removes all generated files (but not eclipse or idea configs; use cleanEclipse or cleanIdea for this). >>> >>> I included a community plugin for antlr4. Sources have to be in src/main/antlr4/ (configureable). >>> I had to add some Java version fixes, because the annotation processor of antlr only supports Java 7&8 from version 4.4.1 which is not yet in the repositories (see: https://github.com/antlr/antlr4/issues/487) >>> >>> >>> @Dmitry: >>> If you have a maven (pom) project, you can create an initial gradle configuration using: >>> "gradle init --type pom? >>> This needs a full gradle installation, not the wrapper >>> (see http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA for details) >>> >>> >>> Best regards >>> Christof >>> ---- >>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>> Institut of Applied Information Technology - InIT >>> Zurich University of Applied Sciences - ZHAW >>> School of Engineering >>> Phone: +41 58 934 70 63 >>> Skype: christof-marti >>> >>> >>> _______________________________________________ >>> Fiware-middleware mailing list >>> Fiware-middleware at lists.fi-ware.org >>> https://lists.fi-ware.org/listinfo/fiware-middleware >>> >> >> _______________________________________________ >> Fiware-middleware mailing list >> Fiware-middleware at lists.fi-ware.org >> https://lists.fi-ware.org/listinfo/fiware-middleware > From Dmitri.Rubinstein at dfki.de Wed Nov 12 10:19:02 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 10:19:02 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <54631D8E.2090406@dfki.de> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> <54631D8E.2090406@dfki.de> Message-ID: <54632606.7020308@dfki.de> Problem solved by adding this: antlr4.extraArgs=['-package', 'com.kiara'] Now I finished porting my KIARA Maven project to Gradle (see attachment). Everything seems to work besides annotation problem: warning: Supported source version 'RELEASE_6' from annotation processor 'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '1.7' Best, Dmitri On 11/12/14 09:42, Dmitri Rubinstein wrote: > I have also another problem. When I add following class: > > package com.kiara; > > public abstract class MyListener implements ExprListener { > > } > > in file: src/main/java/com/kiara/MyListener.java > > I get errors: > > /home/rubinste/proj_de3/kiara-gradle-template/src/main/java/com/kiara/MyListener.java:12: > error: cannot find symbol > public abstract class MyListener implements ExprListener { > > But having MyListener class in the default package works. > > Any ideas ? > > Best, > > Dmitri > > On 11/12/14 09:03, Marti Christof (mach) wrote: >> Hi Dmitri >> >> This operator was introduced with Java 7 (javac 1.7), as many other >> nice enhancements. >> (Before you had to type Map m = new >> HashMap() ) >> That is one of the reasons, I want to go to 1.7 or 1.8 asap. >> >> To fix this you must change the ?sourceCompatibility" entry in >> build.gradle to 1.7 or higher. >> But then we start getting the problems with the antlr4 annotation >> processor. >> Another option would be to disable the annotation processor (?) or >> provide our own version of (4.4.1) which is on the antlr4 master tree. >> >> BR, >> Christof >> >>> On 12.11.2014, at 00:38, Dmitri Rubinstein >>> wrote: >>> >>> I created gradle project with your project file, but diamond operator >>> does not work: >>> >>> Map m = new HashMap<>(); >>> >>> Best, >>> >>> Dmitri >>> >>> On 11/11/14 20:32, Marti Christof (mach) wrote: >>>> Hi everybody >>>> >>>> I put together some starter links about gradle and created a >>>> template project for kiara, which adds some plugins and >>>> configuration to support and integrate with antlr4, maven, eclipse >>>> and IntelliJ Idea. >>>> >>>> Gradle-UserGuide & References: >>>> http://www.gradle.org/docs/current/userguide/userguide.html >>>> (you'll find almost everything there) >>>> Gradle-Plugins registry: http://plugins.gradle.org >>>> (e.g. the antlr4 plugin entry is here: >>>> http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>>> >>>> Good-Intro about why and how (compared to Ant/Maven) from the >>>> creator Hans Dockter (if you have time: 85?): >>>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>>> >>>> Here you?ll find the kiara-gradle-template project: >>>> https://github.com/christofmarti/kiara-gradle-template >>>> (it does not contain any KIARA specific files yet; only a typical >>>> project hierarchy and configuration for the plugins) >>>> >>>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call >>>> the correct version of gradle, without preinstalling gradle. (e.g. >>>> change to project dir and execute "./gradlew tasks" to list all >>>> available tasks) >>>> The main advantage of the wrapper is, that always the correct >>>> version of the tool is used. If not available it will be downloaded >>>> and installed locally from the path defined in >>>> ./gradle/wrapper/gradle-wrapper.properties. >>>> >>>> To create eclipse project files type "./gradlew eclipse" >>>> To create IntelliJ IDEA project files type "./gradlew idea" >>>> "./gradlew build" builds and assembles the whole project (incl. >>>> processing antlr4 files) >>>> ?./gradlew clean? removes all generated files (but not eclipse or >>>> idea configs; use cleanEclipse or cleanIdea for this). >>>> >>>> I included a community plugin for antlr4. Sources have to be in >>>> src/main/antlr4/ (configureable). >>>> I had to add some Java version fixes, because the annotation >>>> processor of antlr only supports Java 7&8 from version 4.4.1 which >>>> is not yet in the repositories (see: >>>> https://github.com/antlr/antlr4/issues/487) >>>> >>>> >>>> @Dmitry: >>>> If you have a maven (pom) project, you can create an initial gradle >>>> configuration using: >>>> "gradle init --type pom? >>>> This needs a full gradle installation, not the wrapper >>>> (see >>>> http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA >>>> for details) >>>> >>>> >>>> Best regards >>>> Christof >>>> ---- >>>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>>> Institut of Applied Information Technology - InIT >>>> Zurich University of Applied Sciences - ZHAW >>>> School of Engineering >>>> Phone: +41 58 934 70 63 >>>> Skype: christof-marti >>>> >>>> >>>> _______________________________________________ >>>> Fiware-middleware mailing list >>>> Fiware-middleware at lists.fi-ware.org >>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>> >>> >>> _______________________________________________ >>> Fiware-middleware mailing list >>> Fiware-middleware at lists.fi-ware.org >>> https://lists.fi-ware.org/listinfo/fiware-middleware >> > -------------- next part -------------- // In this section you declare the used plugins // community plugins plugins { id "me.champeau.gradle.antlr4" version "0.1" // antlr4 community plugin. } // internal plugins apply plugin: 'java' apply plugin: 'maven' // only needed to generate POM or to upload artifacts to maven repos. apply plugin: 'eclipse' // Eclipse integration apply plugin: 'idea' // InteliJ IDEA integration apply plugin: 'project-report' //general properties version = '0.0.1-SNAPSHOT' description = """""" // java plugin properties (until antlr 4.4 we have to set this to 1.6) // (https://github.com/antlr/antlr4/issues/487) sourceCompatibility = 1.7 targetCompatibility = 1.7 // temporary fix until we can switch to sourceCompatibility=1.7+ // (http://stackoverflow.com/a/20779740) tasks.withType(JavaCompile) { options.bootClasspath = "$System.env.JAVA_HOME/jre/lib/rt.jar" } // maven-plugin properties group = 'de.dfki.kiara' // antlr4-plugin configuration // make the Java compile task depend on the antlr4 task compileJava.dependsOn antlr4 // add the generated source files to the list of java sources sourceSets.main.java.srcDirs += antlr4.output // add antlr4 to classpath configurations { compile.extendsFrom antlr4 } // In this section you declare where to find the dependencies of your project // see also: http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html#N10621 repositories { // You can declare any Maven/Ivy/file repository here. // e.g. for 'jcenter.bintray.com' for resolving your dependencies use: // jcenter() // and/or use the standard mavenCentral repositoy: mavenCentral() // and/or use use a custom maven repository: // maven { url "http://repo.mycompany.com/maven2" } } dependencies { compile group: 'org.antlr', name: 'antlr4', version:'4.2.2' compile group: 'com.google.guava', name: 'guava', version:'17.0' compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.3.3' compile group: 'io.netty', name: 'netty-all', version:'4.0.21.Final' compile group: 'org.slf4j', name: 'slf4j-jdk14', version:'1.7.7' testCompile group: 'junit', name: 'junit', version:'4.10' } antlr4.source = project.file("src/main/antlr4") antlr4.listener = true antlr4.visitor = true antlr4.extraArgs=['-package', 'de.dfki.kiara.idl'] // make the Java compile task depend on the antlr4 task compileJava.dependsOn antlr4 // add the generated source files to the list of java sources sourceSets.main.java.srcDirs += antlr4.output // add antlr4 to classpath configurations { compile.extendsFrom antlr4 } From Dmitri.Rubinstein at dfki.de Wed Nov 12 13:36:59 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 13:36:59 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <54632606.7020308@dfki.de> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> <54631D8E.2090406@dfki.de> <54632606.7020308@dfki.de> Message-ID: <5463546B.5080801@dfki.de> I was not able to import Gradle project to Intellij IDE. Intellij does not see source code files generated by Antlr4. Best, Dmitri On 11/12/14 10:19, Dmitri Rubinstein wrote: > Problem solved by adding this: > > antlr4.extraArgs=['-package', 'com.kiara'] > > Now I finished porting my KIARA Maven project to Gradle (see > attachment). Everything seems to work besides annotation problem: > > warning: Supported source version 'RELEASE_6' from annotation processor > 'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '1.7' > > Best, > > Dmitri > > On 11/12/14 09:42, Dmitri Rubinstein wrote: >> I have also another problem. When I add following class: >> >> package com.kiara; >> >> public abstract class MyListener implements ExprListener { >> >> } >> >> in file: src/main/java/com/kiara/MyListener.java >> >> I get errors: >> >> /home/rubinste/proj_de3/kiara-gradle-template/src/main/java/com/kiara/MyListener.java:12: >> >> error: cannot find symbol >> public abstract class MyListener implements ExprListener { >> >> But having MyListener class in the default package works. >> >> Any ideas ? >> >> Best, >> >> Dmitri >> >> On 11/12/14 09:03, Marti Christof (mach) wrote: >>> Hi Dmitri >>> >>> This operator was introduced with Java 7 (javac 1.7), as many other >>> nice enhancements. >>> (Before you had to type Map m = new >>> HashMap() ) >>> That is one of the reasons, I want to go to 1.7 or 1.8 asap. >>> >>> To fix this you must change the ?sourceCompatibility" entry in >>> build.gradle to 1.7 or higher. >>> But then we start getting the problems with the antlr4 annotation >>> processor. >>> Another option would be to disable the annotation processor (?) or >>> provide our own version of (4.4.1) which is on the antlr4 master tree. >>> >>> BR, >>> Christof >>> >>>> On 12.11.2014, at 00:38, Dmitri Rubinstein >>>> wrote: >>>> >>>> I created gradle project with your project file, but diamond operator >>>> does not work: >>>> >>>> Map m = new HashMap<>(); >>>> >>>> Best, >>>> >>>> Dmitri >>>> >>>> On 11/11/14 20:32, Marti Christof (mach) wrote: >>>>> Hi everybody >>>>> >>>>> I put together some starter links about gradle and created a >>>>> template project for kiara, which adds some plugins and >>>>> configuration to support and integrate with antlr4, maven, eclipse >>>>> and IntelliJ Idea. >>>>> >>>>> Gradle-UserGuide & References: >>>>> http://www.gradle.org/docs/current/userguide/userguide.html >>>>> (you'll find almost everything there) >>>>> Gradle-Plugins registry: http://plugins.gradle.org >>>>> (e.g. the antlr4 plugin entry is here: >>>>> http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>>>> >>>>> Good-Intro about why and how (compared to Ant/Maven) from the >>>>> creator Hans Dockter (if you have time: 85?): >>>>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>>>> >>>>> Here you?ll find the kiara-gradle-template project: >>>>> https://github.com/christofmarti/kiara-gradle-template >>>>> (it does not contain any KIARA specific files yet; only a typical >>>>> project hierarchy and configuration for the plugins) >>>>> >>>>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call >>>>> the correct version of gradle, without preinstalling gradle. (e.g. >>>>> change to project dir and execute "./gradlew tasks" to list all >>>>> available tasks) >>>>> The main advantage of the wrapper is, that always the correct >>>>> version of the tool is used. If not available it will be downloaded >>>>> and installed locally from the path defined in >>>>> ./gradle/wrapper/gradle-wrapper.properties. >>>>> >>>>> To create eclipse project files type "./gradlew eclipse" >>>>> To create IntelliJ IDEA project files type "./gradlew idea" >>>>> "./gradlew build" builds and assembles the whole project (incl. >>>>> processing antlr4 files) >>>>> ?./gradlew clean? removes all generated files (but not eclipse or >>>>> idea configs; use cleanEclipse or cleanIdea for this). >>>>> >>>>> I included a community plugin for antlr4. Sources have to be in >>>>> src/main/antlr4/ (configureable). >>>>> I had to add some Java version fixes, because the annotation >>>>> processor of antlr only supports Java 7&8 from version 4.4.1 which >>>>> is not yet in the repositories (see: >>>>> https://github.com/antlr/antlr4/issues/487) >>>>> >>>>> >>>>> @Dmitry: >>>>> If you have a maven (pom) project, you can create an initial gradle >>>>> configuration using: >>>>> "gradle init --type pom? >>>>> This needs a full gradle installation, not the wrapper >>>>> (see >>>>> http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA >>>>> >>>>> for details) >>>>> >>>>> >>>>> Best regards >>>>> Christof >>>>> ---- >>>>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>>>> Institut of Applied Information Technology - InIT >>>>> Zurich University of Applied Sciences - ZHAW >>>>> School of Engineering >>>>> Phone: +41 58 934 70 63 >>>>> Skype: christof-marti >>>>> >>>>> >>>>> _______________________________________________ >>>>> Fiware-middleware mailing list >>>>> Fiware-middleware at lists.fi-ware.org >>>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>>> >>>> >>>> _______________________________________________ >>>> Fiware-middleware mailing list >>>> Fiware-middleware at lists.fi-ware.org >>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>> >> > > > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware > From mach at zhaw.ch Wed Nov 12 14:06:41 2014 From: mach at zhaw.ch (Marti Christof (mach)) Date: Wed, 12 Nov 2014 13:06:41 +0000 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> <54631D8E.2090406@dfki.de> <54632606.7020308@dfki.de> Message-ID: <300609C5-1932-4B4F-A697-D41EC718CD21@zhaw.ch> Hi Dimitri I will look into this tonight. I think it has to to with a missing sourceSet definition for antlr4. Normally the IDE plugins take all the sourceSets and add source locations in the IDE config files. At the moment you will have to add the antrl4 output location "build/generated-src" manually in the IDE. Christof > On 12.11.2014, at 13:36, Dmitri Rubinstein wrote: > > I was not able to import Gradle project to Intellij IDE. Intellij does > not see source code files generated by Antlr4. > > Best, > > Dmitri > > On 11/12/14 10:19, Dmitri Rubinstein wrote: >> Problem solved by adding this: >> >> antlr4.extraArgs=['-package', 'com.kiara'] >> >> Now I finished porting my KIARA Maven project to Gradle (see >> attachment). Everything seems to work besides annotation problem: >> >> warning: Supported source version 'RELEASE_6' from annotation processor >> 'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '1.7' >> >> Best, >> >> Dmitri >> >> On 11/12/14 09:42, Dmitri Rubinstein wrote: >>> I have also another problem. When I add following class: >>> >>> package com.kiara; >>> >>> public abstract class MyListener implements ExprListener { >>> >>> } >>> >>> in file: src/main/java/com/kiara/MyListener.java >>> >>> I get errors: >>> >>> /home/rubinste/proj_de3/kiara-gradle-template/src/main/java/com/kiara/MyListener.java:12: >>> >>> error: cannot find symbol >>> public abstract class MyListener implements ExprListener { >>> >>> But having MyListener class in the default package works. >>> >>> Any ideas ? >>> >>> Best, >>> >>> Dmitri >>> >>> On 11/12/14 09:03, Marti Christof (mach) wrote: >>>> Hi Dmitri >>>> >>>> This operator was introduced with Java 7 (javac 1.7), as many other >>>> nice enhancements. >>>> (Before you had to type Map m = new >>>> HashMap() ) >>>> That is one of the reasons, I want to go to 1.7 or 1.8 asap. >>>> >>>> To fix this you must change the ?sourceCompatibility" entry in >>>> build.gradle to 1.7 or higher. >>>> But then we start getting the problems with the antlr4 annotation >>>> processor. >>>> Another option would be to disable the annotation processor (?) or >>>> provide our own version of (4.4.1) which is on the antlr4 master tree. >>>> >>>> BR, >>>> Christof >>>> >>>>> On 12.11.2014, at 00:38, Dmitri Rubinstein >>>>> wrote: >>>>> >>>>> I created gradle project with your project file, but diamond operator >>>>> does not work: >>>>> >>>>> Map m = new HashMap<>(); >>>>> >>>>> Best, >>>>> >>>>> Dmitri >>>>> >>>>> On 11/11/14 20:32, Marti Christof (mach) wrote: >>>>>> Hi everybody >>>>>> >>>>>> I put together some starter links about gradle and created a >>>>>> template project for kiara, which adds some plugins and >>>>>> configuration to support and integrate with antlr4, maven, eclipse >>>>>> and IntelliJ Idea. >>>>>> >>>>>> Gradle-UserGuide & References: >>>>>> http://www.gradle.org/docs/current/userguide/userguide.html >>>>>> (you'll find almost everything there) >>>>>> Gradle-Plugins registry: http://plugins.gradle.org >>>>>> (e.g. the antlr4 plugin entry is here: >>>>>> http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>>>>> >>>>>> Good-Intro about why and how (compared to Ant/Maven) from the >>>>>> creator Hans Dockter (if you have time: 85?): >>>>>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>>>>> >>>>>> Here you?ll find the kiara-gradle-template project: >>>>>> https://github.com/christofmarti/kiara-gradle-template >>>>>> (it does not contain any KIARA specific files yet; only a typical >>>>>> project hierarchy and configuration for the plugins) >>>>>> >>>>>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call >>>>>> the correct version of gradle, without preinstalling gradle. (e.g. >>>>>> change to project dir and execute "./gradlew tasks" to list all >>>>>> available tasks) >>>>>> The main advantage of the wrapper is, that always the correct >>>>>> version of the tool is used. If not available it will be downloaded >>>>>> and installed locally from the path defined in >>>>>> ./gradle/wrapper/gradle-wrapper.properties. >>>>>> >>>>>> To create eclipse project files type "./gradlew eclipse" >>>>>> To create IntelliJ IDEA project files type "./gradlew idea" >>>>>> "./gradlew build" builds and assembles the whole project (incl. >>>>>> processing antlr4 files) >>>>>> ?./gradlew clean? removes all generated files (but not eclipse or >>>>>> idea configs; use cleanEclipse or cleanIdea for this). >>>>>> >>>>>> I included a community plugin for antlr4. Sources have to be in >>>>>> src/main/antlr4/ (configureable). >>>>>> I had to add some Java version fixes, because the annotation >>>>>> processor of antlr only supports Java 7&8 from version 4.4.1 which >>>>>> is not yet in the repositories (see: >>>>>> https://github.com/antlr/antlr4/issues/487) >>>>>> >>>>>> >>>>>> @Dmitry: >>>>>> If you have a maven (pom) project, you can create an initial gradle >>>>>> configuration using: >>>>>> "gradle init --type pom? >>>>>> This needs a full gradle installation, not the wrapper >>>>>> (see >>>>>> http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA >>>>>> >>>>>> for details) >>>>>> >>>>>> >>>>>> Best regards >>>>>> Christof >>>>>> ---- >>>>>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>>>>> Institut of Applied Information Technology - InIT >>>>>> Zurich University of Applied Sciences - ZHAW >>>>>> School of Engineering >>>>>> Phone: +41 58 934 70 63 >>>>>> Skype: christof-marti >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Fiware-middleware mailing list >>>>>> Fiware-middleware at lists.fi-ware.org >>>>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Fiware-middleware mailing list >>>>> Fiware-middleware at lists.fi-ware.org >>>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>> >>> >> >> >> >> _______________________________________________ >> Fiware-middleware mailing list >> Fiware-middleware at lists.fi-ware.org >> https://lists.fi-ware.org/listinfo/fiware-middleware >> > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware From Dmitri.Rubinstein at dfki.de Wed Nov 12 14:17:44 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Wed, 12 Nov 2014 14:17:44 +0100 Subject: [Fiware-middleware] Links and template-project to start with gradle In-Reply-To: <300609C5-1932-4B4F-A697-D41EC718CD21@zhaw.ch> References: <98428BAB-4188-4724-9A39-BA7DD0A091E8@zhaw.ch> <9cd878200eda4c518d9f1f2c002bfb29@SRV-MAIL-001.zhaw.ch> <15C5FC1E-28CB-4204-8E16-9BC4DD58D8F9@zhaw.ch> <54631D8E.2090406@dfki.de> <54632606.7020308@dfki.de> <300609C5-1932-4B4F-A697-D41EC718CD21@zhaw.ch> Message-ID: <54635DF8.2040904@dfki.de> On 11/12/14 14:06, Marti Christof (mach) wrote: > Hi Dimitri > > I will look into this tonight. I think it has to to with a missing sourceSet definition for antlr4. Normally the IDE plugins take all the sourceSets and add source locations in the IDE config files. I tested this by adding this command at the end of file: println idea.module.sourceDirs; output: [/home/rubinste/proj_de3/kiara-gradle-template/src/main/resources, /home/rubinste/proj_de3/kiara-gradle-template/src/main/java, /home/rubinste/proj_de3/kiara-gradle-template/build/generated-src] generated-src is in the list. > > At the moment you will have to add the antrl4 output location "build/generated-src" manually in the IDE. OK, I figured out that build/generated-src is really added but ignored since build directory is ignored by Intellij. When I remove build directory from exclude list it works. Best, Dmitri > > Christof > >> On 12.11.2014, at 13:36, Dmitri Rubinstein wrote: >> >> I was not able to import Gradle project to Intellij IDE. Intellij does >> not see source code files generated by Antlr4. >> >> Best, >> >> Dmitri >> >> On 11/12/14 10:19, Dmitri Rubinstein wrote: >>> Problem solved by adding this: >>> >>> antlr4.extraArgs=['-package', 'com.kiara'] >>> >>> Now I finished porting my KIARA Maven project to Gradle (see >>> attachment). Everything seems to work besides annotation problem: >>> >>> warning: Supported source version 'RELEASE_6' from annotation processor >>> 'org.antlr.v4.runtime.misc.NullUsageProcessor' less than -source '1.7' >>> >>> Best, >>> >>> Dmitri >>> >>> On 11/12/14 09:42, Dmitri Rubinstein wrote: >>>> I have also another problem. When I add following class: >>>> >>>> package com.kiara; >>>> >>>> public abstract class MyListener implements ExprListener { >>>> >>>> } >>>> >>>> in file: src/main/java/com/kiara/MyListener.java >>>> >>>> I get errors: >>>> >>>> /home/rubinste/proj_de3/kiara-gradle-template/src/main/java/com/kiara/MyListener.java:12: >>>> >>>> error: cannot find symbol >>>> public abstract class MyListener implements ExprListener { >>>> >>>> But having MyListener class in the default package works. >>>> >>>> Any ideas ? >>>> >>>> Best, >>>> >>>> Dmitri >>>> >>>> On 11/12/14 09:03, Marti Christof (mach) wrote: >>>>> Hi Dmitri >>>>> >>>>> This operator was introduced with Java 7 (javac 1.7), as many other >>>>> nice enhancements. >>>>> (Before you had to type Map m = new >>>>> HashMap() ) >>>>> That is one of the reasons, I want to go to 1.7 or 1.8 asap. >>>>> >>>>> To fix this you must change the ?sourceCompatibility" entry in >>>>> build.gradle to 1.7 or higher. >>>>> But then we start getting the problems with the antlr4 annotation >>>>> processor. >>>>> Another option would be to disable the annotation processor (?) or >>>>> provide our own version of (4.4.1) which is on the antlr4 master tree. >>>>> >>>>> BR, >>>>> Christof >>>>> >>>>>> On 12.11.2014, at 00:38, Dmitri Rubinstein >>>>>> wrote: >>>>>> >>>>>> I created gradle project with your project file, but diamond operator >>>>>> does not work: >>>>>> >>>>>> Map m = new HashMap<>(); >>>>>> >>>>>> Best, >>>>>> >>>>>> Dmitri >>>>>> >>>>>> On 11/11/14 20:32, Marti Christof (mach) wrote: >>>>>>> Hi everybody >>>>>>> >>>>>>> I put together some starter links about gradle and created a >>>>>>> template project for kiara, which adds some plugins and >>>>>>> configuration to support and integrate with antlr4, maven, eclipse >>>>>>> and IntelliJ Idea. >>>>>>> >>>>>>> Gradle-UserGuide & References: >>>>>>> http://www.gradle.org/docs/current/userguide/userguide.html >>>>>>> (you'll find almost everything there) >>>>>>> Gradle-Plugins registry: http://plugins.gradle.org >>>>>>> (e.g. the antlr4 plugin entry is here: >>>>>>> http://plugins.gradle.org/plugin/me.champeau.gradle.antlr4) >>>>>>> >>>>>>> Good-Intro about why and how (compared to Ant/Maven) from the >>>>>>> creator Hans Dockter (if you have time: 85?): >>>>>>> https://www.youtube.com/watch?v=5a91dBLX8Qc >>>>>>> >>>>>>> Here you?ll find the kiara-gradle-template project: >>>>>>> https://github.com/christofmarti/kiara-gradle-template >>>>>>> (it does not contain any KIARA specific files yet; only a typical >>>>>>> project hierarchy and configuration for the plugins) >>>>>>> >>>>>>> If you clone it, you can use "./gradlew? (resp. gradlew.bat) to call >>>>>>> the correct version of gradle, without preinstalling gradle. (e.g. >>>>>>> change to project dir and execute "./gradlew tasks" to list all >>>>>>> available tasks) >>>>>>> The main advantage of the wrapper is, that always the correct >>>>>>> version of the tool is used. If not available it will be downloaded >>>>>>> and installed locally from the path defined in >>>>>>> ./gradle/wrapper/gradle-wrapper.properties. >>>>>>> >>>>>>> To create eclipse project files type "./gradlew eclipse" >>>>>>> To create IntelliJ IDEA project files type "./gradlew idea" >>>>>>> "./gradlew build" builds and assembles the whole project (incl. >>>>>>> processing antlr4 files) >>>>>>> ?./gradlew clean? removes all generated files (but not eclipse or >>>>>>> idea configs; use cleanEclipse or cleanIdea for this). >>>>>>> >>>>>>> I included a community plugin for antlr4. Sources have to be in >>>>>>> src/main/antlr4/ (configureable). >>>>>>> I had to add some Java version fixes, because the annotation >>>>>>> processor of antlr only supports Java 7&8 from version 4.4.1 which >>>>>>> is not yet in the repositories (see: >>>>>>> https://github.com/antlr/antlr4/issues/487) >>>>>>> >>>>>>> >>>>>>> @Dmitry: >>>>>>> If you have a maven (pom) project, you can create an initial gradle >>>>>>> configuration using: >>>>>>> "gradle init --type pom? >>>>>>> This needs a full gradle installation, not the wrapper >>>>>>> (see >>>>>>> http://www.gradle.org/docs/current/userguide/build_init_plugin.html#N14BBA >>>>>>> >>>>>>> for details) >>>>>>> >>>>>>> >>>>>>> Best regards >>>>>>> Christof >>>>>>> ---- >>>>>>> InIT Cloud Computing Lab - ICCLab http://blog.zhaw.ch/icclab >>>>>>> Institut of Applied Information Technology - InIT >>>>>>> Zurich University of Applied Sciences - ZHAW >>>>>>> School of Engineering >>>>>>> Phone: +41 58 934 70 63 >>>>>>> Skype: christof-marti >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Fiware-middleware mailing list >>>>>>> Fiware-middleware at lists.fi-ware.org >>>>>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Fiware-middleware mailing list >>>>>> Fiware-middleware at lists.fi-ware.org >>>>>> https://lists.fi-ware.org/listinfo/fiware-middleware >>>>> >>>> >>> >>> >>> >>> _______________________________________________ >>> Fiware-middleware mailing list >>> Fiware-middleware at lists.fi-ware.org >>> https://lists.fi-ware.org/listinfo/fiware-middleware >>> >> >> _______________________________________________ >> Fiware-middleware mailing list >> Fiware-middleware at lists.fi-ware.org >> https://lists.fi-ware.org/listinfo/fiware-middleware > From JaimeMartin at eprosima.com Fri Nov 14 13:03:15 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 14 Nov 2014 12:03:15 +0000 Subject: [Fiware-middleware] hang out link and agenda Message-ID: <3ce3c799850243c88a2641722c68c3c1@AM2PR06MB0929.eurprd06.prod.outlook.com> https://plus.google.com/hangouts/_/gxteeonlastg6jw4ly3vaxtlkqa https://docs.google.com/document/d/1A4Q29Dg6G0QdV7uB_H0mOlOFI2bMQaj9b6ajpZAI6vY/edit# Regards, Jaime Martin Losa CEO Twitter: @JaimeMartinLosa [cid:image001.png at 01D0000B.594615F0] The Middleware Experts Phone: + 34 91 804 34 48 / + 34 607 91 37 45 JaimeMartin at eProsima.com www.eProsima.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3800 bytes Desc: image001.png URL: From dmitri.rubinstein at dfki.de Fri Nov 14 15:46:09 2014 From: dmitri.rubinstein at dfki.de (Dmitri Rubinstein) Date: Fri, 14 Nov 2014 15:46:09 +0100 (CET) Subject: [Fiware-middleware] Maven Project File for IDL-Parser Message-ID: <830077575.60106.1415976369685.open-xchange@ox.ucs.dfki.de> Hi all, I just added Maven project file to the https://github.com/FIWARE-Middleware/IDL-Parser repository. I also changed the source code structure as required by Maven. Everything is on the maven branch, so you can check if it works before you merge it with develop branch. As the next step I will create gradle configuration. Best, Dmitri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dmitri.Rubinstein at dfki.de Fri Nov 14 19:10:51 2014 From: Dmitri.Rubinstein at dfki.de (Dmitri Rubinstein) Date: Fri, 14 Nov 2014 19:10:51 +0100 Subject: [Fiware-middleware] Maven Project File for IDL-Parser In-Reply-To: <830077575.60106.1415976369685.open-xchange@ox.ucs.dfki.de> References: <830077575.60106.1415976369685.open-xchange@ox.ucs.dfki.de> Message-ID: <546645AB.8060105@dfki.de> I added Gradle build script to both repositories: https://github.com/FIWARE-Middleware/Prototype (master branch) https://github.com/FIWARE-Middleware/IDL-Parser (maven branch) Best, Dmitri On 11/14/14 15:46, Dmitri Rubinstein wrote: > Hi all, > I just added Maven project file to > the https://github.com/FIWARE-Middleware/IDL-Parser repository. I also > changed the source code structure as required by Maven. Everything is on > the maven branch, so you can check if it works before you merge it with > develop branch. > As the next step I will create gradle configuration. > Best, > Dmitri > > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware > From JaimeMartin at eprosima.com Fri Nov 21 12:51:27 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 21 Nov 2014 11:51:27 +0000 Subject: [Fiware-middleware] KIARA meeting Canceled Message-ID: Hi guys, Christof is sick, and we have nothing to discuss today, besides sync with dmitri. Here is our progress: eProsima: - Finished first release of KIARA parser. Its jars are also generated with gradle. - Finished first prototypes of kiaragen Java application. This application generates source code based on the prototypes. - Defined inner APIs (Transport and Serializer). @dmitri: Reply with your progress please. When do you think your transport module is going to be finished? Regards, Jaime Martin Losa CEO Twitter: @JaimeMartinLosa [cid:image001.png at 01D00589.DD95E0F0] The Middleware Experts Phone: + 34 91 804 34 48 / + 34 607 91 37 45 JaimeMartin at eProsima.com www.eProsima.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3800 bytes Desc: image001.png URL: From dmitri.rubinstein at dfki.de Fri Nov 21 12:58:18 2014 From: dmitri.rubinstein at dfki.de (Dmitri Rubinstein) Date: Fri, 21 Nov 2014 12:58:18 +0100 Subject: [Fiware-middleware] KIARA meeting Canceled In-Reply-To: References: Message-ID: <546F28DA.4000007@dfki.de> TCP Transport is working already and I pushed first working version yesterday (Repository: Prototype, branch: new-transport-api) . Currently I am working on some improvements (code cleanup, refactoring, etc.). You should look into the code and report when you have issues. Best, Dmitri On 21.11.2014 12:51, Jaime Martin Losa wrote: > > Hi guys, > > Christof is sick, and we have nothing to discuss today, besides sync > with dmitri. > > Here is our progress: > > eProsima: > > - Finished first release of KIARA parser. Its jars are also generated > with gradle. > > - Finished first prototypes of kiaragen Java application. This > application generates source code based on the prototypes. > > - Defined inner APIs (Transport and Serializer). > > @dmitri: Reply with your progress please. When do you > think your transport module is going to be finished? > > Regards, > > *Jaime Martin Losa* > > *CEO* > > *Twitter: **@JaimeMartinLosa *** > > *The Middleware Experts* > > > > *Phone: + 34 91 804 34 48 /* > > *+ 34 607 91 37 45* > > *JaimeMartin at eProsima.com* > > *www.eProsima.com* > > > > _______________________________________________ > Fiware-middleware mailing list > Fiware-middleware at lists.fi-ware.org > https://lists.fi-ware.org/listinfo/fiware-middleware -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 3800 bytes Desc: not available URL: From JaimeMartin at eprosima.com Fri Nov 28 13:08:49 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 28 Nov 2014 12:08:49 +0000 Subject: [Fiware-middleware] FW: kiara meeting hang out link Message-ID: <96d6cebe1925426b819a744ab309c340@AM2PR06MB0929.eurprd06.prod.outlook.com> https://plus.google.com/hangouts/_/grr24ubp4kzi3hcra7pjerplvea Regards, Jaime Martin Losa CEO Twitter: @JaimeMartinLosa [cid:image001.png at 01D00B0C.0D2B9EE0] The Middleware Experts Phone: + 34 91 804 34 48 / + 34 607 91 37 45 JaimeMartin at eProsima.com www.eProsima.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3800 bytes Desc: image001.png URL: From JaimeMartin at eprosima.com Fri Nov 28 13:20:22 2014 From: JaimeMartin at eprosima.com (Jaime Martin Losa) Date: Fri, 28 Nov 2014 12:20:22 +0000 Subject: [Fiware-middleware] KIARA Tests Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/calendar Size: 1479 bytes Desc: not available URL: