[KULRICE-7101] createproject.groovy does not work in Rice 2.0.1 Created: 09/Apr/12  Updated: 06/Sep/12  Resolved: 10/Apr/12

Status: Closed
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Critical
Reporter: Eric Westfall Assignee: Viral Chauhan (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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?

Comment by Viral Chauhan (Inactive) [ 10/Apr/12 ]

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

Generated at Tue Sep 22 09:49:10 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.