[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1003) Wizard support for seam-gen style Seam applications

Max Andersen (JIRA) jira-events at lists.jboss.org
Thu Apr 3 10:34:29 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1003?page=comments#action_12406896 ] 
            
Max Andersen commented on JBIDE-1003:
-------------------------------------

Now it completed for me on the seamgen project I had tested with. Awsome.

But it gives me a nullpointer exception if I don't have a testproject.

This piece of code is too fragile, it assumes everything is specified even though it might not be.

vars.put(IParameter.SEAM_PROJECT_INSTANCE,project);
			vars.put(IParameter.JBOSS_SEAM_HOME, SeamRuntimeManager.getInstance().getRuntimeForProject(project).getHomeDir());
			vars.put(IParameter.SEAM_PROJECT_LOCATION_PATH,project.getLocation().toFile().toString());
			vars.put(IParameter.SEAM_PROJECT_WEBCONTENT_PATH,seamPrjSet.getViewsFolder().getLocation().toFile().toString());
			vars.put(IParameter.SEAM_PROJECT_SRC_ACTION,seamPrjSet.getActionFolder().getLocation().toFile().toString());
			vars.put(IParameter.SEAM_PROJECT_SRC_MODEL,seamPrjSet.getModelFolder().getLocation().toFile().toString());			
			vars.put(IParameter.SEAM_EJB_PROJECT_LOCATION_PATH,seamPrjSet.getEjbProject()!=null?seamPrjSet.getEjbProject().getLocation().toFile().toString():"");
			vars.put(IParameter.SEAM_TEST_PROJECT_LOCATION_PATH,seamPrjSet.getTestProject().getLocation().toFile().toString());
			vars.put(IParameter.TEST_SOURCE_FOLDER,seamPrjSet.getTestsFolder().getLocation().toFile().toString());
			vars.put(IParameter.SESSION_BEAN_PACKAGE_PATH, actionFolder.replace('.','/'));
			vars.put(IParameter.SESSION_BEAN_PACKAGE_NAME, actionFolder);
			vars.put(IParameter.TEST_CASES_PACKAGE_PATH, testFolder.replace('.','/'));			
			vars.put(IParameter.TEST_CASES_PACKAGE_NAME, testFolder);
			vars.put(IParameter.ENTITY_BEAN_PACKAGE_PATH, entityFolder.replace('.','/'));			
			vars.put(IParameter.ENTITY_BEAN_PACKAGE_NAME, entityFolder);



> Wizard support for seam-gen style Seam applications
> ---------------------------------------------------
>
>                 Key: JBIDE-1003
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1003
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Seam
>    Affects Versions: 2.0.0.Beta3, 2.0.0.CR1
>            Reporter: Jacob Orshalick
>         Assigned To: Alexey Kazakov
>            Priority: Critical
>             Fix For: 2.1.0.beta1
>
>
> Currently the Seam wizards only support WTP style projects.  seam-gen style projects are only supported by the this seam-gen wrapper.  Although the seam-gen wrapper works for existing applications, it would be nice to use the wizards.  Please see the forum reference for more information.  Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list