Skip to content

Commit

Permalink
TEIIDDES-2419 relaxed project name check to NOT ignore case.
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed May 18, 2015
1 parent 4f1ea0b commit 71d61e1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,16 @@ public void validate() {
setStatus(Status.OK_STATUS);
}

//
// Check that view and source model project folders are the SAME
// if NOT, then set error status
// Note that some OS's allow same name/different case folder names
//
if( getStatus().isOK() && viewModelLocation != null && sourceModelLocation != null ) {
if( viewModelLocation.segmentCount() > 0 && sourceModelLocation.segmentCount() > 0 ) {
// Check that locations for source and view model are not different projects
if( ! ( viewModelLocation.segment(0).equalsIgnoreCase(sourceModelLocation.segment(0)) ) ) {
// Sample case using p1 and P1 as different projects (on Linux, etc.)
if( ! ( viewModelLocation.segment(0).equals(sourceModelLocation.segment(0)) ) ) {
setStatus(new Status(IStatus.ERROR, PLUGIN_ID,
Util.getString(I18N_PREFIX + "errorFileLocationsInDifferentProjects") )); //$NON-NLS-1$
}
Expand Down

0 comments on commit 71d61e1

Please sign in to comment.