[forge-issues] [JBoss JIRA] (FORGE-2369) In commands there are several targetXXX attributes, some are confusing

Antonio Goncalves (JIRA) issues at jboss.org
Mon Jun 22 04:49:01 EDT 2015


Antonio Goncalves created FORGE-2369:
----------------------------------------

             Summary: In commands there are several targetXXX attributes, some are confusing
                 Key: FORGE-2369
                 URL: https://issues.jboss.org/browse/FORGE-2369
             Project: Forge
          Issue Type: Enhancement
          Components: UI - API
    Affects Versions: 2.16.2.Final
            Reporter: Antonio Goncalves


At the moment commands deal with different {{targetXXX}} attributes. Some are easy to understand but some are confusing. We have :

* {{targetClass}} : this mostly targets a Java class
* {{targetDirectory}} : used in {{GitCloneCommand}}, for example, but also in {{NewEJBCommand}} or {{FacesNewBean}} (which relate to Java code and should then be {{targetPackage}})
* {{targetEJB}} : used in {{EJBSetClassTransactionAttributeCommand}}, it should just be {{targetClass}} that filter EJBs
* {{targetEntity}} : used in {{JPANewFieldWizard}} or {{JPANewNamedQueryCommand}}, it should just be {{targetClass}} that filter Entities
* {{targetFolder}} : used in {{CopyCommand}} and {{MoveCommand}} but is fine like that because this parameter is not visible to the user
* {{targetLocation}} : is mostly used when a project doesn't exist, but it is also used in {{JPANewEntityCommand}}
* {{targetPackage}} : for a Java class
* {{targetResource}} : used in {{CopyCommand}} and {{MoveCommand}} but it's not visible for the user
* {{targetSuperClass}} : used in {{JavaNewMethodCommand}} to target the super class, as there is already a {{targetClass}} attribute
* {{targetTypes}} : used in {{CDINewStereotype}} command, it should be {{types}} like most commands





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the forge-issues mailing list