Greg:

       our current project name validation check can only work for maven
project. But for SDK project, we need to add plugin type to make project
name to check with the existed project in workspace. All of them depend on
the build type.


On Fri, Jan 24, 2014 at 9:04 PM, Gregory Amerson
<notifications@github.com>wrote:

> In
> tools/plugins/com.liferay.ide.project.core/src/com/liferay/ide/project/core/model/internal/ProjectNameValidationService.java:
>
> > @@ -114,6 +115,19 @@ else if( isMavenProject( op ) && ! isValidMavenProjectName( currentProjectName )
> >          return retval;
> >      }
> >
> > +    private boolean checkExistProject( String projectName, NewLiferayPluginProjectOp op )
> > +    {
> > +        if ( "ant".equals( op.getProjectProvider().content().getShortName() ))
> > +        {
> > +            return CoreUtil.getProject( projectName + "-" + op.getPluginType().content().toString() ).exists();
> > +        }
> > +        else
> > +        {
> > +            return CoreUtil.getProject( projectName ).exists();
>
> I don't think we need this... if we remove this, the normal project name
> validation still works elsewhere right?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gamerson/liferay-ide/pull/424/files#r9147348>
> .
>