Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-7101

createproject.groovy does not work in Rice 2.0.1

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-5241Test that createproject.groovy script is working correctly
      KULRICE-1639Add /modules to .classpath file generation in createproject.groovy
      KULRICE-5417Get createproject.groovy working for Rice 2.0
      KULRICE-7193Update Demo to be Rice 2.0.1
      KULRICE-6854Fixes to Rice createproject.groovy script
      KULRICE-1843Update createproject.groovy to take into account web content refactoring
      KULRICE-4524Manual execution of createproject.groovy for 1.0.3
      KULRICE-333Look into using Maven Archetypes for our rice_template project (aka createproject.groovy script)
      KULRICE-3676Fix issues with createproject.groovy script and update it for 1.0.1, update and improve related documentation
      KULRICE-4618Update createproject.groovy to have option to create project for use with standalone rice
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      When i try to run it I get the following error:

      rice-dist-2.0.1-src$ groovy scripts/createproject.groovy -name myapp -pdir /java/training -rdir .
      
      ==================================================================
                                  WARNING 
      ==================================================================
      This program will delete the following directory and replace it 
      with a new project:
          /java/training/myapp
      
      It will also create or replace the following files in USER_HOME:
          1) /Users/blah/kuali/main/dev/myapp-config.xml
          2) /Users/blah/kuali/main/dev/rice.keystore
      
      If this is not what you want, please supply more information:
          usage: groovy createproject -name PROJECT_NAME [-pdir PROJECT_DIR] [-rdir RICE_DIR] [-mdir MAVEN_HOME]
      
      Do you want to continue (yes/no)?
      yes
      Detected Maven executable at: /java/tools/maven/bin/mvn
           [copy] Copying 1 file to /java/training/myapp/src/main/java
           [copy] Copying 2 files to /java/training/myapp/src/main/resources/META-INF
           [copy] Copying 1 file to /java/training/myapp/src/main/resources
      Caught: : Warning: Could not find file /Users/blah/Downloads/rice-dist-2.0.1-src/.sampleapp/src/main/resources/log4j.properties to copy.
      : Warning: Could not find file /Users/blah/Downloads/rice-dist-2.0.1-src/.sampleapp/src/main/resources/log4j.properties to copy.
      	at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:619)
      	at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:444)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      	at createproject.run(createproject.groovy:175)
      

      The person who ran into this indicated to me that it looks like an issue with a leading slash on line 74 but I didn't look and confirm.

      Also, we were able to get this working by hacking up the script, but then it looked like the .classpath and .project files for eclipse are no longer generated? But perhaps that change is an intentional one?

        Activity

        Hide
        Viral Chauhan (Inactive) added a comment -

        Added missing slash to path while copying log4j.properties file.

        Show
        Viral Chauhan (Inactive) added a comment - Added missing slash to path while copying log4j.properties file.

          People

          • Assignee:
            Viral Chauhan (Inactive)
            Reporter:
            Eric Westfall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel