[
https://issues.jboss.org/browse/FORGE-1630?page=com.atlassian.jira.plugin...
]
Antonio Goncalves commented on FORGE-1630:
------------------------------------------
Another use case is when I execute a script on a sub-sub-directory. Let's say I
execute a script under {{a/b/c}} directory :
{code}
[Forge]$ run a/b/c/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
{code}
I would expect it to stay under {{testrun}}, the name of the project (see the prompt on
the last line) :
{code}
[Forge]$ run a/b/c/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.
[testrun]$ jpa-new-entity --named MyEntity
{code}
The path is not right
---------------------
Key: FORGE-1630
URL:
https://issues.jboss.org/browse/FORGE-1630
Project: Forge
Issue Type: Sub-task
Components: UI - Shell
Affects Versions: 2.1.1.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
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}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)