Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7101

createproject.groovy does not work in Rice 2.0.1


    • Type: Bug Fix
    • Status: Closed
    • Priority: 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:
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required


      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 .
      This program will delete the following directory and replace it 
      with a new project:
      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)?
      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?



          Error rendering 'com.atlassian.jira.jira-view-issue-plugin:activitymodule'. Please contact your JIRA administrators.


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


              • Created: