Quantcast

iCalendar Plugin is not packed into WAR

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

iCalendar Plugin is not packed into WAR

Silvio Wangler
Hi all

I am the author of the iCalendar plugin 0.2.1 (http://grails.org/plugin/ic-alendar) and have just noticed that the plugin is not packed into war when I run grails war on a Grails project.
Currently the plugin is (due to a misconfiguration) only working on Grails 1.1.1 but the behaviour is also reproducible on a unreleased version 0.2.2 of the plugin and Grails 1.2.x.

Here you find the one controller which uses the ic-calendar plugin. 

class CalendarController {

  def index = {

    def from = '11.11.2011 14:00'
    def to = '11.11.2011 16:00'

    render(contentType: 'text/calendar') {
      calendar {
        events {
          event(start: Date.parse('dd.MM.yyyy HH:mm', "${from}"),
                  end: Date.parse('dd.MM.yyyy HH:mm', "${to}"),
                  description: 'description',
                  summary: 'summary',
                  location: 'location')
        }
      }
    }
  }
}

To reproduce you need to do the follwing steps:
  1. Use Grails 1.1.1 to create an app
  2. Install the iCalendar plugin using grails install-plugin ic-alendar
  3. Create a controller called Calendar and paste the code from above into the newly created CalendarController.groovy
  4. Start grails run-app and navigate to the controller. You should get a .ics file
  5. Stop the app.
  6. Run grails clean
  7. Run grails war
The funny part is that as long the plugin runs within Grails (e.g. grails run-app) everything works fine. But if I pack the application into a WAR Grails seems to ignore almost everything except the /src directory. Means it does not include the lib and the grails-app directories. Can anyone help me on this one? Is it because of the plugins name ic-alender that the resources get ignored?

Best regards
Silvio


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: iCalendar Plugin is not packed into WAR

denisP
Hello Silvio,

Do you find the fix for this ?

I'm getting the same behavior and really would like to use it.

Thx,

Denis
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: iCalendar Plugin is not packed into WAR

Silvio Wangler
Hello Denis

What version of the Plug-in and of Grails do you use?

Best regards
Silvio

On 13 January 2012 03:09, denisP <[hidden email]> wrote:
Hello Silvio,

Do you find the fix for this ?

I'm getting the same behavior and really would like to use it.

Thx,

Denis

--
View this message in context: http://grails.1312388.n4.nabble.com/iCalendar-Plugin-is-not-packed-into-WAR-tp2065867p4291159.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: iCalendar Plugin is not packed into WAR

denisP
Hello Silvio,

3.2 for the plugin and 1.3.7 for Grails.

Best regards,

Denis

Le 13 janv. 2012 à 08:49, Silvio Wangler [via Grails] a écrit :

Hello Denis

What version of the Plug-in and of Grails do you use?

Best regards
Silvio

On 13 January 2012 03:09, denisP <<a href="x-msg://6/user/SendEmail.jtp?type=node&amp;node=4291597&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Hello Silvio,

Do you find the fix for this ?

I'm getting the same behavior and really would like to use it.

Thx,

Denis

--
View this message in context: http://grails.1312388.n4.nabble.com/iCalendar-Plugin-is-not-packed-into-WAR-tp2065867p4291159.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/iCalendar-Plugin-is-not-packed-into-WAR-tp2065867p4291597.html
To unsubscribe from iCalendar Plugin is not packed into WAR, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: iCalendar Plugin is not packed into WAR

Marc Palmer Local
In reply to this post by Silvio Wangler

Silvio,

Where is the source for your plugin? The info is not in the portal.

A while ago I tried an ical plugin, I think it was yours, and it was hardcoded to use a Swiss locale for the events. It was therefore not usable :)

Thanks
Marc

~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Founder @ http://noticelocal.com | Developer @ http://weceem.org
Member @ http://spottymushroom.com | Contributor @ http://grails.org
Twitter: http://twitter.com/wangjammer5 | Resumé: http://www.anyware.co.uk/marc/
Blog: http://www.anyware.co.uk | Grails Rocks: http://www.grailsrocks.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: iCalendar Plugin is not packed into WAR

Silvio Wangler
Hello Marc

Where is the source for your plugin? The info is not in the portal.

Good catch. I have updated all missing information (JIRA and SCM link). You find it using this link


A while ago I tried an ical plugin, I think it was yours, and it was hardcoded to use a Swiss locale for the events. It was therefore not usable :)

Well if this is the case the implementation is indeed not very clever and I like to fix it. Could you raise an issue for this ?

Best regards
Silvio
Loading...