]
George Gastaldi updated FORGE-385:
----------------------------------
Fix Version/s: 1.2.3.Final
(was: 1.2.2.Final)
Current directory is poor default for new-project location when
existing project is detected
--------------------------------------------------------------------------------------------
Key: FORGE-385
URL:
https://issues.jboss.org/browse/FORGE-385
Project: Forge
Issue Type: Enhancement
Components: Builtin Plugins
Affects Versions: 1.0.0.Beta3
Reporter: Dan Allen
Priority: Minor
Labels: Starter
Fix For: 1.2.3.Final
When creating a new project using the new-project command, forge will offer the current
directory as the target location if a project with the same name is found.
{code}
$ new-project --named example --topLevelPackage org.example
***ERROR*** [/home/dallen/example] already contains a project; please use a different
folder.
Where would you like to create the project? [Press ENTER to use the current directory:
dallen]
{code}
This default is a recipe for disaster. If there is a project in the way, then using the
current directory puts that project *in* the project being created. Additionally, if the
current directory is $HOME, then the project will get overlaid in a directory which has
many other files and directories.
A better default is to append a number to the end of the project name. For example:
{code}
$ new-project --named example --topLevelPackage org.example
***ERROR*** [/home/dallen/example] already contains a project; please use a different
folder.
Where would you like to create the project? [Press ENTER to use an alternative directory:
example2]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: