Priyank Thakkar
Priyank Thakkar

Reputation: 4852

Eclipse Project Name Validation

Why eclipse allows a project to be created with special characters in it name? I can create project with name '!#$!#!#@$!@#$'

Even the eclipse source of eclipse consider only following characters as invalid for project name.

INVALID_RESOURCE_CHARACTERS = new char[] {'\\', '/', ':', '*', '?', '"', '<', '>', '|'};

What is the logic behind it? are those characters having any special meaning for eclipse?

Upvotes: 0

Views: 970

Answers (1)

Chris Gerken
Chris Gerken

Reputation: 16392

By default the project name is used as the root folder name for all resources in the project. That's what drives the naming restrictions.

Upvotes: 3

Related Questions