Griffon
  1. Griffon
  2. GRIFFON-265

CreateApp fails on Windows when fileType parameter is specified

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1a
    • Fix Version/s: 0.9.2-beta-2
    • Component/s: cli
    • Labels:
      None
    • Environment:
       WindowsXpSp3, JDKu22
    • Number of attachments :
      0

      Description

      From the mailing list

      D:\workspace36>griffon create-app Simple -fileType=java
      Welcome to Griffon 0.9.1a - http://griffon.codehaus.org/
      Licensed under Apache Standard License 2.0
      Griffon home is set to: C:\opt\griffon-0.9.1a
      
      Base Directory: D:\workspace36
      Resolving dependencies...
      Dependencies resolved in 313ms.
      Running script C:\opt\griffon-0.9.1a\scripts\CreateApp_.groovy
      Environment set to development
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\keys
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\webstart
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist\applet
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist\jar
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist\shared
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist\webstart
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\dist\zip
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\conf\metainf
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\controllers
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\i18n
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\lifecycle
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\models
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\resources
          [mkdir] Created dir: D:\workspace36\Simple java\griffon-app\views
          [mkdir] Created dir: D:\workspace36\Simple java\lib
          [mkdir] Created dir: D:\workspace36\Simple java\scripts
          [mkdir] Created dir: D:\workspace36\Simple java\src
          [mkdir] Created dir: D:\workspace36\Simple java\src\main
          [mkdir] Created dir: D:\workspace36\Simple java\test
          [mkdir] Created dir: D:\workspace36\Simple java\test\integration
          [mkdir] Created dir: D:\workspace36\Simple java\test\unit
      [propertyfile] Creating new property file: D:\workspace36\Simple java\application.properties
           [copy] Copying 1 resource to D:\workspace36\Simple java
          [unjar] Expanding: D:\workspace36\Simple java\griffon-shared-files.jar into D:\workspace36\Simple java
         [delete] Deleting: D:\workspace36\Simple java\griffon-shared-files.jar
           [copy] Copying 1 resource to D:\workspace36\Simple java
          [unjar] Expanding: D:\workspace36\Simple java\griffon-app-files.jar into D:\workspace36\Simple java
         [delete] Deleting: D:\workspace36\Simple java\griffon-app-files.jar
          [touch] Creating D:\workspace36\Simple java\griffon-app\i18n\messages.properties
      Error executing script CreateApp: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.startsWith() is applicable for argumen
      t types: (java.lang.String) values: [.]
      groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.startsWith() is applicable for argument types: (java.lang.String) values
      : [.]
              at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
              at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
              at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
              at gant.Gant.withBuildListeners(Gant.groovy:427)
              at gant.Gant.this$2$withBuildListeners(Gant.groovy)
              at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
              at gant.Gant.dispatch(Gant.groovy:415)
              at gant.Gant.this$2$dispatch(Gant.groovy)
              at gant.Gant.invokeMethod(Gant.groovy)
              at gant.Gant.executeTargets(Gant.groovy:590)
              at gant.Gant.executeTargets(Gant.groovy:589)
              at org.codehaus.griffon.cli.GriffonScriptRunner.executeWithGantInstance(GriffonScriptRunner.java:652)
              at org.codehaus.griffon.cli.GriffonScriptRunner.callPluginOrGriffonScript(GriffonScriptRunner.java:512)
              at org.codehaus.griffon.cli.GriffonScriptRunner.executeCommand(GriffonScriptRunner.java:295)
              at org.codehaus.griffon.cli.GriffonScriptRunner.main(GriffonScriptRunner.java:137)
              at org.codehaus.griffon.cli.support.GriffonStarter.rootLoader(GriffonStarter.java:208)
              at org.codehaus.griffon.cli.support.GriffonStarter.main(GriffonStarter.java:234)
      Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.startsWith() is applicable for argument types: (java.lang.Str
      ing) values: [.]
              at CreateApp_$_run_closure10.doCall(CreateApp_:221)
              at CreateApp_$_run_closure1.doCall(CreateApp_:35)
              at CreateApp_$_run_closure1.call(CreateApp_)
              at CreateApp_$_run_closure2.doCall(CreateApp_:47)
              at application$_run_closure1.doCall(application.groovy:27)
              at CreateApp_$_run_closure1.doCall(CreateApp_:39)
              at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
              ... 16 more
      Error executing script CreateApp: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.startsWith() is applicable for argumen
      t types: (java.lang.String) values: [.]
      

      The problem lies in how command arguments are parsed on Windows platforms, as the result app is named 'Simple java' but it should be 'Simple' only.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: