Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grails 1.0.4 is missing critical file (build.properties) #19

Closed
GoogleCodeExporter opened this issue Jun 12, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

svn commit 118 added the following line:

+                <exclude name="build.*"/>

(to samples/grails/build.xml)

Which causes build.properties to be excluded from the package.  This seems
to be a problem...

Having installed the package on Ubuntu 8.10 I get the following symptoms:

---
$ grails create-app test

Welcome to Grails null - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/share/grails        

...
[propertyfile] Updating property file: /tmp/test/application.properties
Created Grails Application at /tmp/test

---

Note the null in "Welcome to Grails null".

The resulting application.properties file contains:

---
#Fri Nov 28 19:09:48 GMT 2008
app.version=0.1
app.servlet.version=2.4
app.grails.version=null
app.name=test

---

Note the "null" for app.grails.version.

Now when trying to run "grails create-domain-class" I get:

---
$ grails create-domain-class test1

Welcome to Grails null - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/share/grails        

Base Directory: /tmp/test
Note: No plugin scripts found
Running script /usr/share/grails/scripts/CreateDomainClass.groovy
Environment set to development
Application expects grails version [null], but GRAILS_HOME is version
[null] - use the correct Grails version or run 'grails upgrade' if this
Grails version is newer than the version your application expects.

---

Manually fixing application.properties to contain
"app.grails.version=1.0.4" alters the error slightly:

---
$ grails create-domain-class test1

Welcome to Grails null - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/share/grails        

Base Directory: /tmp/test
Note: No plugin scripts found
Running script /usr/share/grails/scripts/CreateDomainClass.groovy
Environment set to development
Application expects grails version [1.0.4], but GRAILS_HOME is version
[null] - use the correct Grails version or run 'grails upgrade' if this
Grails version is newer than the version your application expects.

---

Copying the build.properties file from the grails 1.0.4 binary available
from grails.org into /usr/share/grails fixes the problem.

---
$ grails create-domain-class test1

Welcome to Grails 1.0.4 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/share/grails        

Base Directory: /tmp/test
Note: No plugin scripts found
Running script /usr/share/grails/scripts/CreateDomainClass.groovy
Environment set to development
     [copy] Copying 1 file to /tmp/test/grails-app/domain
Created Domain Class for Test1
     [copy] Copying 1 file to /tmp/test/test/integration
Created Tests for Test1

---

Original issue reported on code.google.com by smnpithe...@gmail.com on 28 Nov 2008 at 7:18

@GoogleCodeExporter
Copy link
Author

I was a bit to zealous when I removed unnecessary files from the package. Sorry 
about
that, and thanks for reporting.

Uploading a new deb right now, grails_1.0.4-2_all.deb, should be up shortly. 
Please
give it a try.

If it works then please change the status of this issue.

Original comment by marius.s...@gmail.com on 28 Nov 2008 at 7:43

  • Changed state: Fixed
  • Added labels: Priority-Critical
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

That seems to have fixed it.  :-)

Thank you.

Original comment by smnpithe...@gmail.com on 30 Nov 2008 at 11:51

@GoogleCodeExporter
Copy link
Author

Original comment by marius.s...@gmail.com on 30 Nov 2008 at 6:07

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant