开发者

Renaming Grails Project in Netbeans

开发者 https://www.devze.com 2023-02-23 02:22 出处:网络
I have a project that I would like to rename (I\'m using Netbeans) and I can\'t find an option to do so. With a Java pro开发者_运维技巧ject it was as simple as right click project -> rename.

I have a project that I would like to rename (I'm using Netbeans) and I can't find an option to do so. With a Java pro开发者_运维技巧ject it was as simple as right click project -> rename.

Is there a way to rename a Grails project? (Without causing issues with the classes therein)


This has moved to the project.xml file in the most recent versions of NetBeans (I'm running 7.1).

  1. open [project directory]/nbproject/project.xml
  2. change the <name> to reflect the new name of the project:

<name>[new project name]</name>


(1) Close any applications which may be using the app (Netbeans, Grails run-app, etc..)

(2) Update your application.properties file to have your new application name.

app.name=youroldappname

(3) Rename the base directory where your project is to yournewappname.

0

精彩评论

暂无评论...
验证码 换一张
取 消