]
George Gastaldi closed FORGE-1630.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.7.1.Final
(was: 2.x Future)
Resolution: Done
The path is not right
---------------------
Key: FORGE-1630
URL:
https://issues.jboss.org/browse/FORGE-1630
Project: Forge
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: UI - Shell
Affects Versions: 2.1.1.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 2.7.1.Final
Let's say I have a simple script which just creates a project :
{code}
project-new --named testrun --topLevelPackage com.testrun --type war --finalName testrun
{code}
When I execute this script, it creates the project {{testrun}} but it goes back to the
root path. So, when I create a new entity, it doesn't create it at the right place :
{code}
[Forge]$ run proj.fsh
[Forge]$ project-new --named testrun --topLevelPackage com.testrun --type war --finalName
testrun
***SUCCESS*** Project named 'testrun' has been created.
[testrun]$ ***SUCCESS*** Project named 'testrun' has been created.
[Forge]$ jpa-new-entity --named MyEntity
***SUCCESS*** Entity MyEntity created
[MyEntity.java]$ pwd
/Users/antoniombp/Documents/Code/temp/Forge/MyEntity.java
[MyEntity.java]$ exit
~/Documents/Code/temp/Forge$ ll
-rw-r--r-- 1 antoniombp staff 1.5K Mar 4 19:34 MyEntity.java
-rw-r--r--@ 1 antoniombp staff 89B Mar 4 19:33 proj.fsh
drwxr-xr-x 4 antoniombp staff 136B Mar 4 19:33 testrun/
{code}